How can i kick someone when server restarts?
#1

I know this is a noobish question,but where can i place Kick(playerid); when server restart,instead of having to do /gmx?
Reply
#2

Just create a command that loops through all players, kicks them, and then initiates GameModeExitFunc();

Quote:
Originally Posted by Nazi Germany
This forum requires that you wait 120 seconds between posts. Please try again in 27 seconds.
God dammit..

Like this:

pawn Код:
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;
}
Reply
#3

pawn Код:
if(strcmp(string, "/kickall", true) == 0)
{  
    for(new i=0; i < MAX_PLAYERS; i++)
    {
        Kick(i);
    }
    //Do extra stuff for all here.
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)