Help with Restarting game mode
#1

How Do i make a script that auto restarts my game mode when TEAM_HIDER 0 has no players on it?
Reply
#2

well you would need to check under onplayerupdate if team hider had 0 players, then if it did you would send the rcon command gmx...

Your using gteam right? If so ill write you out a small code snippet
Reply
#3

Quote:
Originally Posted by marharth
Посмотреть сообщение
well you would need to check under onplayerupdate if team hider had 0 players, then if it did you would send the rcon command gmx...

Your using gteam right? If so ill write you out a small code snippet
yeah im using gTeam id really appreciate it if you wrote me a code because ive been trying to get this on my server for like 3 days its the last thing i need before my server is finished
Reply
#4

//Gamemodeinit
SetTimer("RestartCheck", 1000, true);

//Somewhere in your script
forward RestartCheck();
public RestartCheck()
{
if(TEAM_HIDER == 0) // Im not sure if that would work
{
SendRconCommand("gmx");
}
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)