Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [SSGM 4.0 Plugin] Donate and TeamDonate
[SSGM 4.0 Plugin] Donate and TeamDonate [message #484169] Tue, 22 October 2013 05:07 Go to next message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma: 0
General (1 Star)
Donate Plugin:

Yes regulators such as BRenBot and CloudyServ already have a donate function. However, I never liked the idea of the regulators being in control of the donate. If the bot goes down or is restarted, players can't donate and also the donate wait timer is off track. The bots can't also tell how much credits the player is holding and is just assuming the player has the right amount of credits and tries to distribute it.

If you're using BRenBot, set the donate module off from IRC:
!set donate off

You can set the time for how long before a player can donate into the map. The default is set to 300 seconds (5 minutes) if a setting isn't placed.



TeamDonate Plugin:

Credits:
reborn for original plugin from ssgm 2.0.2.
Iran for original conversion to a 4.0 plugin.
roszek for bringing up the idea of adding a timer in Iran's teamdonate plugin topic.

You can set the time for how long before a player can team donate into the map. The default is set to 300 seconds (5 minutes) if a setting isn't placed.

I changed a logic originally placed by Iran. You can't team donate an amount that's less than the amount of players on your team instead of the original logic of 100 or less.



Settings:
Quote:


[Donate]

; WaitTime_Donate=
; WaitTime_TeamDonate=
;
; Time to wait before allowing players to use donations.

WaitTime_Donate=300
WaitTime_TeamDonate=300





http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg

Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.

Part time streamer - https://twitch.tv/gg_wonder

[Updated on: Wed, 13 November 2013 05:36]

Report message to a moderator

Re: [SSGM 4.0 Plugin] Donate and TeamDonate [message #484170 is a reply to message #484169] Tue, 22 October 2013 06:25 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Did you fix the bug where if you team donated less than 100 credits per player the team donation fails AND you lose the money? Always thought it was too funny to fix.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: [SSGM 4.0 Plugin] Donate and TeamDonate [message #484171 is a reply to message #484170] Tue, 22 October 2013 06:44 Go to previous messageGo to next message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma: 0
General (1 Star)
iRANian wrote on Tue, 22 October 2013 09:25

Did you fix the bug where if you team donated less than 100 credits per player the team donation fails AND you lose the money? Always thought it was too funny to fix.


Yes, lol. That bug hasn't existed on Jelly since the scripts update I did a few weeks ago.


http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg

Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.

Part time streamer - https://twitch.tv/gg_wonder
Re: [SSGM 4.0 Plugin] Donate and TeamDonate [message #484174 is a reply to message #484169] Tue, 22 October 2013 07:15 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Oh right I vaguely remember reading about it in the changelog.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: [SSGM 4.0 Plugin] Donate and TeamDonate [message #484445 is a reply to message #484169] Wed, 13 November 2013 05:37 Go to previous message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma: 0
General (1 Star)
Updated both plugins.

Forgot to register the INI functions for TeamDonate. This caused the timer setting not to be read.


Edited donate so that it pages the user how to donate if they enter it incorrectly.


http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg

Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.

Part time streamer - https://twitch.tv/gg_wonder
Previous Topic: [PATCH] 4.0 Patch 1 Client building revival state fix
Next Topic: [SERVERTOOLS] 4.0 Server Tools
Goto Forum:
  


Current Time: Thu Dec 12 07:55:33 MST 2024

Total time taken to generate the page: 0.00662 seconds