Help with saving position and loading it [Dini]
#1

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
Reply
#2

pawn Код:
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"));
Try it
Reply
#3

Will do
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)