RC Cars
#1

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 :/
Reply
#2

this at the top
pawn Код:
new Float:PlayerCoord[MAX_PLAYERS][4];
this where you enter the rc veh (before "PutPlayerInVehicle")
pawn Код:
GetPlayerPos(playerid, PlayerCoord[playerid][0], PlayerCoord[playerid][1], PlayerCoord[playerid][2]);
GetPlayerFacingAngle(playerid, PlayerCoord[playerid][3]);
and this where you leave it again (at the cmd or wherever you've defined it)
pawn Код:
SetPlayerPos(playerid, PlayerCoord[playerid][0], PlayerCoord[playerid][1], PlayerCoord[playerid][2]);
SetPlayerFacingAngle(playerid, PlayerCoord[playerid][3]);
hope it works
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)