14.07.2011, 19:06
I know this is a noobish question,but where can i place Kick(playerid); when server restart,instead of having to do /gmx?
Originally Posted by Nazi Germany
This forum requires that you wait 120 seconds between posts. Please try again in 27 seconds.
|
COMMAND:restart(playerid, params[])
{
SendClientMessageToAll(-1, "{FFFFFF}Restarting, please rejoin the server!");
for(new i = 0; i < MAX_PLAYERS; i++)
{
Kick(i);
}
GameModeExit();
return 1;
}
if(strcmp(string, "/kickall", true) == 0)
{
for(new i=0; i < MAX_PLAYERS; i++)
{
Kick(i);
}
//Do extra stuff for all here.
}