08.03.2011, 11:34
Is there any way that when you exit a RC car youll be put back where you where before you enterd? I'm trying to make a RP server and Its not realy RP if the player TPs to the RC car after they exit it :/
new Float:PlayerCoord[MAX_PLAYERS][4];
GetPlayerPos(playerid, PlayerCoord[playerid][0], PlayerCoord[playerid][1], PlayerCoord[playerid][2]);
GetPlayerFacingAngle(playerid, PlayerCoord[playerid][3]);
SetPlayerPos(playerid, PlayerCoord[playerid][0], PlayerCoord[playerid][1], PlayerCoord[playerid][2]);
SetPlayerFacingAngle(playerid, PlayerCoord[playerid][3]);