14.08.2010, 20:36
GetPlayerPos(playerid, saveX, saveY, saveZ);
if(saveX != 0 && saveY != 0 && saveZ != 0)
{
dini_FloatSet((pname),"spawnX", saveX);
dini_FloatSet((pname),"spawnY", saveY);
dini_FloatSet((pname),"spawnZ", saveZ);
}
else SendClientMessage(playerid, COLOR, "The pos = 0.. the position werent saved!");
Make a timer that saves the pos every 5/30 sec and u have a fix!
if(saveX != 0 && saveY != 0 && saveZ != 0)
{
dini_FloatSet((pname),"spawnX", saveX);
dini_FloatSet((pname),"spawnY", saveY);
dini_FloatSet((pname),"spawnZ", saveZ);
}
else SendClientMessage(playerid, COLOR, "The pos = 0.. the position werent saved!");
Make a timer that saves the pos every 5/30 sec and u have a fix!

