Position Saving - GMX
#6

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.
Reply


Messages In This Thread
Position Saving - GMX - by iRemix - 02.04.2012, 12:05
Re: Position Saving - GMX - by blank. - 02.04.2012, 12:08
Re: Position Saving - GMX - by Reklez - 02.04.2012, 12:09
Re: Position Saving - GMX - by iRemix - 02.04.2012, 12:09
Re: Position Saving - GMX - by blank. - 02.04.2012, 12:11
Re: Position Saving - GMX - by TzAkS. - 02.04.2012, 12:18
Re: Position Saving - GMX - by ReneG - 02.04.2012, 12:56

Forum Jump:


Users browsing this thread: 1 Guest(s)