04.02.2012, 20:06
Hello everyone, I'm new to the forum, and am a newbie in scripting. Alright, I have got an autosave script, but the problem is it doesn't save your position. How can I make it so you could save your position?
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
new savetimer[MAX_PLAYERS];
savetimer[playerid] = SetTimerEx("asave", 10000, true, "i", playerid);
forward asave(playerid);
public asave(playerid)
{
//Here the pos saving and everything else u want to save, instead of onplayer disconnect
}
killtimer(savetimer[playerid]);