Appear where i last logged out
#1

Hello, i'm trying to script something so that when peoples log out , the next time they log in they are in the same spot. For all my OnPlayerSpawns for all ranks, i've added SetPlayerPos(playerid, x, y, z); and at the beggining of my public call, i've added new Float, Float:y, Float:z;. However, whenever i start it up, i always spawn in some farm area at the edge of the map. In OnPlayerDisconnect i've also put new Float, Float:y, Float:z; and GetPlayerPos(playerid, x, y, z);

Anyone know what's up?
Reply
#2

You don't have the X, Y, and Z variables set to a value when they first spawn.
Reply
#3

Can it be any value? Or does it have to be a specific value?
Reply
#4

You save it to their file in the X, Y and Z format then load it up on "/login"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)