Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [SSGM 4.0 Plugin] TeamDonate Plugin
[SSGM 4.0 Plugin] TeamDonate Plugin [message #455775] Fri, 23 September 2011 16:44 Go to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
This plugin adds support for !teamdonate, !td and !tdonate (case insensitive). It's ported from the TeamDonate plugin that reborn made for ssgm 2.0.2. I've added the following changes:

1. Players running scripts 2.9.2 or higher get a green coloured message instead of an annoying PM.
2. The amount of credits that's shared per every member of the team can't be lower than 100.
3. You get a page telling you the amount of credit per team member that was donated to them.
4. The command that was typed in isn't displayed.
5. If you don't specify an amount of credits to donate, all of your credits are donated.

To install copy TeamDonate.dll to your FDS folder and add an entry for 'TeamDonate.dll' in the [Plugins] section of ssgm.ini.


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

[Updated on: Mon, 02 July 2012 06:40]

Report message to a moderator

Re: [SSGM 4.0 Plugin] TeamDonate Plugin [message #455790 is a reply to message #455775] Fri, 23 September 2011 18:01 Go to previous messageGo to next message
zunnie is currently offline  zunnie
Messages: 2959
Registered: September 2003
Location: Netherlands
Karma: 0
General (2 Stars)

Excellent, thanks man Very Happy

https://multiplayerforums.com/uploads/monthly_2018_03/TCW2_Signature.png.6236a0dbc6e1e53472a18fe8cd15e47b.png
Re: [SSGM 4.0 Plugin] TeamDonate Plugin [message #455802 is a reply to message #455775] Fri, 23 September 2011 22:33 Go to previous messageGo to next message
zunnie is currently offline  zunnie
Messages: 2959
Registered: September 2003
Location: Netherlands
Karma: 0
General (2 Stars)

Sorry to disappoint you but i think it is bugged :/
I can no longer type messages in F2 or F3 lol.

I type a message and hit enter but nothing happens.


https://multiplayerforums.com/uploads/monthly_2018_03/TCW2_Signature.png.6236a0dbc6e1e53472a18fe8cd15e47b.png
Re: [SSGM 4.0 Plugin] TeamDonate Plugin [message #455804 is a reply to message #455802] Fri, 23 September 2011 23:21 Go to previous messageGo to next message
sla.ro(master) is currently offline  sla.ro(master)
Messages: 610
Registered: September 2010
Location: Romania
Karma: 0
Colonel
lol, maybe he had forget to place 'return true' on chat hook.

Creator of Mutant Co-Op
Developer of LuaTT
Re: [SSGM 4.0 Plugin] TeamDonate Plugin [message #455810 is a reply to message #455775] Sat, 24 September 2011 01:33 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
Uploaded a fixed version, thanks for reporting. Big Ups

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] TeamDonate Plugin [message #455823 is a reply to message #455775] Sat, 24 September 2011 04:44 Go to previous messageGo to next message
zunnie is currently offline  zunnie
Messages: 2959
Registered: September 2003
Location: Netherlands
Karma: 0
General (2 Stars)

Thanks, i will download it tonight, im on laptop now Smile
Ownage man Wink Good work.


https://multiplayerforums.com/uploads/monthly_2018_03/TCW2_Signature.png.6236a0dbc6e1e53472a18fe8cd15e47b.png
Re: [SSGM 4.0 Plugin] TeamDonate Plugin [message #455974 is a reply to message #455775] Sun, 25 September 2011 05:57 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
Very cool! Thumbs Up


Re: [SSGM 4.0 Plugin] TeamDonate Plugin [message #470501 is a reply to message #455775] Mon, 02 July 2012 06:36 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
Updated the responses this plugin pages to player, I didn't like the original responses.

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] TeamDonate Plugin [message #472595 is a reply to message #455775] Wed, 01 August 2012 15:00 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
You can't team donate if it results in every player getting less than 100 credits but it still removes your money if you try, I'll release a fix for that tomorrow.

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] TeamDonate Plugin [message #472596 is a reply to message #455775] Wed, 01 August 2012 15:11 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)
You should make it where you can't team donate if your credits is less than the amount of players on your team.

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] TeamDonate Plugin [message #472598 is a reply to message #455775] Wed, 01 August 2012 15:27 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
neh if it's less than team player count x 100 is good enough

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] TeamDonate Plugin [message #472599 is a reply to message #455775] Wed, 01 August 2012 16:26 Go to previous messageGo to next message
roszek is currently offline  roszek
Messages: 296
Registered: June 2010
Karma: 0
Recruit
You should make it so it works with the time limit.
Re: [SSGM 4.0 Plugin] TeamDonate Plugin [message #472600 is a reply to message #455775] Wed, 01 August 2012 16:27 Go to previous messageGo to next message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma: 0
Colonel

Quote:

If you don't specify an amount of credits to donate, all of your credits are donated.


What if I didn't mean to type that? 0_o, All my credits would be gone, and I myself as a player would be pissed if I didn't mean to type it, and it takes all my credits.!


Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide
Re: [SSGM 4.0 Plugin] TeamDonate Plugin [message #472601 is a reply to message #472598] Wed, 01 August 2012 16:39 Go to previous messageGo to next message
iScripters is currently offline  iScripters
Messages: 27
Registered: January 2007
Karma: 0
Recruit
iRANian wrote on Wed, 01 August 2012 15:27

neh if it's less than team player count x 100 is good enough


I'd make that optional.. If you have no ref it helps to get 40-50 cred donates, have a couple of them and you're making money.
Good work tho

[Updated on: Wed, 01 August 2012 16:40]

Report message to a moderator

Re: [SSGM 4.0 Plugin] TeamDonate Plugin [message #472619 is a reply to message #455775] Thu, 02 August 2012 00:08 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
You're better off donating a few guys then

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] TeamDonate Plugin [message #472786 is a reply to message #472619] Sat, 04 August 2012 18:18 Go to previous messageGo to next message
roszek is currently offline  roszek
Messages: 296
Registered: June 2010
Karma: 0
Recruit
I wanted to add a timer to your team donate (like the !donate) as it had none and I also wanted to change some other things.

It seems to work okay.

TeamDonate.h
Toggle Spoiler


TeamDonate.cpp
Toggle Spoiler


ssgm.ini stuff
[TeamDonate]


; WaitTime=
;
; Number of seconds before players can team donate.

WaitTime=180


I've never messed with the ssgm plugins before and wouldn't mind some tips.

[Updated on: Wed, 15 August 2012 03:55]

Report message to a moderator

Re: [SSGM 4.0 Plugin] TeamDonate Plugin [message #472807 is a reply to message #455775] Sun, 05 August 2012 00:41 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
You need to move

Commands->Give_Money(Get_GameObj(PlayerID),(Credits * -1),false);


To directly above or under this line:

PPage(PlayerID, GREEN, "You have donated %i credits to every member of your team.", DonateAmount);


Else you still get the bug.


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] TeamDonate Plugin [message #472809 is a reply to message #472807] Sun, 05 August 2012 01:25 Go to previous message
roszek is currently offline  roszek
Messages: 296
Registered: June 2010
Karma: 0
Recruit
iRANian wrote on Sun, 05 August 2012 00:41

You need to move

Commands->Give_Money(Get_GameObj(PlayerID),(Credits * -1),false);


To directly above or under this line:

PPage(PlayerID, GREEN, "You have donated %i credits to every member of your team.", DonateAmount);


Else you still get the bug.


Done did it.
Previous Topic: [SSGM 4.0 Plugin] Building Revival Console Commands
Next Topic: [SSGM 4.0 Plugin] DDE Channel
Goto Forum:
  


Current Time: Thu Apr 18 06:00:30 MST 2024

Total time taken to generate the page: 0.00989 seconds