/restart then whole server restarts over 3 seconds?
#2

how simple it is

Код:
public OnPlayerCommandText(playerid, cmdtext[]) {

  if(strcmp(cmdtext, "/restart", true)==0) {
    if(!IsPlayerAdmin(playerid) return 0;
    else{
       SendClientMessageToAll(COLOR_WHITE,"Server is restarting in 3...");
	  SetTimer("OnGameModeExit",3000,0);
    }
    return 1;
  }
  return 0;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)