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

hmm.. u guys seem confident that it WILL Work so.. i copied it edited it like i like:

Mσик3у's one:

pawn Код:
if(strcmp(cmd,"/restart", true)==0) {
        if(!IsPlayerAdmin(playerid)) {
          SendClientMessageToAll(BRIGHTRED,"Server is restarting in 3...");
          SetTimer("OnGameModeExit",3000,0);
          return 1;
         } else {
          SendClientMessage(playerid,BRIGHTRED,"=> This command does not exsist, type ''help'' for help.");
          return 1; } }
Eddy's one:

pawn Код:
if(strcmp(cmdtext, "/restart", true) ==0) {
          if(IsPlayerAdmin(playerid)) {
          SendClientMessageToAll(BRIGHTRED, "Server is restarting in 3 seconds...");
          SetTimer("OnGameModeExit", 3000, 0); }
          return 1; }
and they both dont work :[ help plz? is there something i need to add like the OnGameModeExit thing or something?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)