save player position !
#1

Hey guys !!

how can i save position when player disconnected and when he is connect again he start in the same position when he disconnected??
Reply
#2

You would need to save it within your account database, but somthing like..


((on your Enum))

Code:
Float:pX,
Float:pY,
Float:pZ,
((On player Disconnect))

Code:
GetPlayerPos(playerid,pInfo[playerid][pX],pInfo[playerid][pY],pInfo[playerid][pZ]);
Somthing along the lines of there. then load it from the file.
Reply
#3

tried that with dini but it didnt save it as a float value for me which made me switch to mysql
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)