How to spawn player on position player was in this ?
#3

Make Enums for the player for example

oldX,
oldY,
oldZ,

and put under OnPlayerDisconnect

Quote:

GetPlayerPos(PlayerInfo[playerid][oldX], PlayerInfo[playerid][oldY], PlayerInfo[playerid][oldZ]);

and make sure that you save these enums in the player's .ini if u are using DINI or YINI or save it in the player's table if you're using MySQL..

Then go ahead under OnPlayerConnect and put under it
Quote:

SetPlayerPos(PlayerInfo[playerid][oldX], PlayerInfo[playerid][oldY], PlayerInfo[playerid][oldZ]);

and we are done..
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)