Autosave Position Saving
#8

top of script:

pawn Код:
new savetimer[MAX_PLAYERS];
At, Onplayerspawn
pawn Код:
savetimer[playerid] = SetTimerEx("asave", 10000, true, "i", playerid);
somewhere else:
pawn Код:
forward asave(playerid);
public asave(playerid)
{
//Here the pos saving and everything else u want to save, instead of onplayer disconnect
}
at OnPlayerDisconnect
pawn Код:
killtimer(savetimer[playerid]);
Reply


Messages In This Thread
Autosave Position Saving - by ~Light~ - 04.02.2012, 20:06
Re: Autosave Position Saving - by milanosie - 04.02.2012, 20:24
Re: Autosave Position Saving - by ~Light~ - 05.02.2012, 08:35
Re: Autosave Position Saving - by milanosie - 05.02.2012, 08:58
Re: Autosave Position Saving - by ~Light~ - 05.02.2012, 09:44
Re: Autosave Position Saving - by milanosie - 05.02.2012, 10:06
Re: Autosave Position Saving - by ~Light~ - 05.02.2012, 11:11
Re: Autosave Position Saving - by milanosie - 05.02.2012, 11:47

Forum Jump:


Users browsing this thread: 6 Guest(s)