Death Bug
#4

Код:
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]);
}
Reply


Messages In This Thread
Death Bug - by kevannkw - 26.12.2014, 03:29
Re: Death Bug - by Ryz - 26.12.2014, 03:32
Re: Death Bug - by GuardedMerchant - 26.12.2014, 04:46
Re: Death Bug - by VishvaJeet - 26.12.2014, 11:07
AW: Death Bug - by Flori - 26.12.2014, 11:11
Re: Death Bug - by HY - 26.12.2014, 11:47
Re: Death Bug - by Vince - 26.12.2014, 11:58

Forum Jump:


Users browsing this thread: 1 Guest(s)