21.12.2010, 18:23
Um guys i need some help with saving/loading player positions on disconnect/spawn, using .ini files Can you make me the code?
Thanks in advance
Thanks in advance
public OnPlayerDisconnect(playerid,reason)
new Float:x, Float:y, Float:z;
dini_IntSet(file, "Pos", GetPlayerPos(playerid, x, y, z));
public OnPlayerSpawn(playerid)
SetPlayerPos(playerid, dini_Int(file, "Pos"));