Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [SSGM] PlayerSwap.dll
[SSGM] PlayerSwap.dll [message #488280] Wed, 02 July 2014 14:14 Go to next message
roszek is currently offline  roszek
Messages: 296
Registered: June 2010
Karma: 0
Recruit
This plugin is based on the reborn swap plugin.

For some reason there were issues with the swap plugin where players who didn't type !swap were being swapped (happened to me quite a few times). I think maybe this had to do with player IDs?

Anyways I wrote this plugin cuz why not. :/


How it works:

!swap allows you to swap teams with another player or change teams if no one else is in the server, it will also auto balance the teams if they are uneven (swap you with no one). the swap command can only be used once per player per level.

A time limit can be set which will disable the swap command for all players per level after the time has expired.

ssgm.ini
-----------------
[PlayerSwap]

SwapTimeLimit=180
-----------------

The time is set in seconds so 180 seconds (3 minutes)

Setting the time to 0 will disable the time limit.

!cswap allows you to cancel your swap request if you decide to. You can use the !swap command again after doing a cancel.

This was a bit rushed but I think it works the way it is supposed to Smile

[Updated on: Wed, 02 July 2014 20:53]

Report message to a moderator

Re: [SSGM] PlayerSwap.dll [message #488281 is a reply to message #488280] Wed, 02 July 2014 14:32 Go to previous messageGo to next message
zunnie is currently offline  zunnie
Messages: 2959
Registered: September 2003
Location: Netherlands
Karma: 0
General (2 Stars)

Good stuff.
reborns plugin was alright with the exception of the bug after a gameover where it would sometimes swao ppl over when they didnt type swap..


https://multiplayerforums.com/uploads/monthly_2018_03/TCW2_Signature.png.6236a0dbc6e1e53472a18fe8cd15e47b.png
Re: [SSGM] PlayerSwap.dll [message #488285 is a reply to message #488280] Wed, 02 July 2014 17:43 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)
I fixed this along time ago but I think I forgot to send it to TT LOL.
  • Attachment: Swap.dll
    (Size: 17.00KB, Downloaded 78 times)


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] PlayerSwap.dll [message #488289 is a reply to message #488280] Wed, 02 July 2014 20:58 Go to previous messageGo to next message
roszek is currently offline  roszek
Messages: 296
Registered: June 2010
Karma: 0
Recruit
That would have been helpful Big Grin That's okay because I like the idea of manually canceling a swap request.

[Updated on: Wed, 02 July 2014 20:58]

Report message to a moderator

Re: [SSGM] PlayerSwap.dll [message #488291 is a reply to message #488289] Wed, 02 July 2014 21:35 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)
roszek wrote on Wed, 02 July 2014 23:58

That would have been helpful Big Grin That's okay because I like the idea of manually canceling a swap request.


Does that in mine when you just type !swap again. Also have it where you're swapped to the other team if teams are unbalanced.


Not trying to slam your topic lol. I just didn't know people had this issue still in the current build in TT XD

But good job nonetheless. Big Grin Thumbs Up


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, 02 July 2014 21:35]

Report message to a moderator

Re: [SSGM] PlayerSwap.dll [message #488300 is a reply to message #488280] Thu, 03 July 2014 04:26 Go to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
Cool! Smile Thumbs Up


Previous Topic: Dragonade 1.0
Next Topic: Dragonade 1.6
Goto Forum:
  


Current Time: Fri Nov 08 15:19:51 MST 2024

Total time taken to generate the page: 0.00829 seconds