Saving the player's position on disconnect?
#2

You need to create three number Integer variables similar to pAdmin. Those can be pX , pY ,pZ. These all three will be saved separately. Put pX , pY ,pZ to 0 when a player registers.

Add up these variables in LoadUser_data too along with the same format used above.

then OnPlayerSpawn use
pawn Код:
if(PlayerInfo[playerid][pX] != 0 && PlayerInfo[playerid][pY] != 0 && PlayerInfo[playerid][pZ] != 0) return SetPlayerPos(playerid,pX ,pY, pZ);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)