Quote:
Originally Posted by Glad2BeHere
replace OnGMX(); with SetTimer("OnGMX", 1000, false); && ensure ur admin lvl iz 5
|
I don't get you. Could you type in the code? From my understanding, that doesn't make any sense at all.
Quote:
Originally Posted by pds2012
As stock doesn't get called when using timer... only public are called if you want to use a timer
try this one
pawn Код:
CMD:gmrestart(playerid, params[]) { if(Player[playerid][pAdmin] < 5) return SendClientMessage(playerid, -1,"You're not authorized to use this command"); GameTextForAll("~w~Server Restarting...", 20000, 5); SetTimer("OnServerRestart", 10000, 0); return 1; }
public OnServerRestart() { SendRconCommand("gmx"); return 1; }
|
That's what I already have, it only saves player data just before doing the RCON gmx command.