Quote:
Originally Posted by fazhu23
So, I'm trying to find a plugin for a vsh map that I play frequently on, and this is where the problem occurs. The list of the next player to be Hale is random after 2rounds, and it will stay in the order if nothing occurs. However if a player is the hale and does not want to be, the first thing they'll do is to switch team. While that does end the round, the next hale is messed up, it'll skip the next person that was suppose to be Hale and go on to the 2nd person. This is what we're looking for, some kind of plugin where they could type "!giveup, or !lose" or something along that line that has the effect of "explode" when in console in the chat box, so that the player that is Hale stays on team and the list is not messed for the next round. Any help would be appreciated!! Thanks
|
PHP Code:
#pragma semicolon 1
#include <sourcemod>
public OnPluginStart() {
RegConsoleCmd("giveup", Command_Suicide);
RegConsoleCmd("lose", Command_Suicide);
}
public Action:Command_Suicide(client, args) {
FakeClientCommand(client, "explode");
return Plugin_Handled;
}
!giveup or !lose in chat will make a client explode.
__________________