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 previous message
roszek is currently offline  roszek
Messages: 296
Registered: June 2010
Karma:
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

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


Current Time: Thu Nov 21 17:51:46 MST 2024

Total time taken to generate the page: 0.00890 seconds