24.01.2013, 16:46
Hello, i have a Problem with the GMX Command, my Problem is that after the GMX, some Account Data's lost, and i dont know why, i tried to make something what saving the Playerfiles after an GMX, but it work not so right, can everyone help me?
Код:
COMMAND:gmx(playerid,params[]) { if(PlayerAdmin[playerid] < 4) return SendClientMessage(playerid,COLOR_RED,"You cannot use this Command!"); for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i)) { SavePlayer(i); } } GameTextForAll("~r~Server restart, ~g~be patient!",5000,3); SendRconCommand("gmx"); return 1; }