Quote:
Originally Posted by Reklez
PAWN TIPS:
Create a timer for GMX,
Save The Position
Send a RCON Command that will restart the server
Done.
something like this
pawn Код:
new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); Enum[playerid][PosX] = x; Enum[playerid][PosY] = y; Enum[playerid][PosZ] = z; INI_WriteFloat(file, "PosX", Enum[playerid][PosX]); INI_WriteFloat(file, "PosY", Enum[playerid][PosY]); INI_WriteFloat(file, "PosZ", Enum[playerid][PosZ]); SendRconCommand("gmx");
don't copy it, its example only
Do this tip on your restart command
|
That can work on gmx but if the player or the server get crash will not work
You can add a timer to save player data on every X minutes.