11.01.2011, 14:26
I have add'ed this:
In enum pInfo:
In OnPlayerConnect(playerid):
In OnPlayerDisconnect(playerid):
WHAT I WANT TO DO? : When you disconnect from the server, your positions save, and after you log in to be in that positions ..
In enum pInfo:
Код:
Float:pCrashPos_x, Float:pCrashPos_y, Float:pCrashPos_z,
Код:
SetPlayerPos(playerid, PlayerInfo[playerid][pCrashPos_x], PlayerInfo[playerid][pCrashPos_y], PlayerInfo[playerid][pCrashPos_z]);
Код:
GetPlayerPos(playerid, PlayerInfo[playerid][pCrashPos_x], PlayerInfo[playerid][pCrashPos_y], PlayerInfo[playerid][pCrashPos_z]);