06.09.2017, 11:26
Make Enums for the player for example
oldX,
oldY,
oldZ,
and put under OnPlayerDisconnect
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
and we are done..
oldX,
oldY,
oldZ,
and put under OnPlayerDisconnect
Quote:
GetPlayerPos(PlayerInfo[playerid][oldX], PlayerInfo[playerid][oldY], PlayerInfo[playerid][oldZ]); |
Then go ahead under OnPlayerConnect and put under it
Quote:
SetPlayerPos(PlayerInfo[playerid][oldX], PlayerInfo[playerid][oldY], PlayerInfo[playerid][oldZ]); |