26.12.2014, 11:07
Код:
new SavePos[MAX_PLAYERS][4]; // declare array for store player's pos public OnPlayerDisconnect(playerid, reason) { GetPlayerPos(playerid, SavePos[playerid][0], SavePos[playerid][1], SavePos[playerid][2]); // store player data GetPlayerFacingAngle(playerid, SavePos[playerid][3]); } public OnPlayerSpawn(playerid) { SetPlayerPos(playerid, SavePos[playerid][0], SavePos[playerid][1], SavePos[playerid][2]); // load player data SetPlayerFacingAngle(playerid, SavePos[playerid][3]); }