Teleport-Car wont come
#9

Okay so I messed the order up :/

pawn Код:
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) SetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
else SetPlayerPos(playerid, x, y, z);
The reason I use GetPlayerState instead of IsPlayerInAnyVehicle is because passengers shouldn't have control over a vehicle's teleports - only the driver should.
Reply


Messages In This Thread
Teleport-Car wont come - by RubM - 26.01.2012, 16:27
Re: Teleport-Car wont come - by T0pAz - 26.01.2012, 16:30
Re: Teleport-Car wont come - by RubM - 26.01.2012, 16:32
Re: Teleport-Car wont come - by [XST]O_x - 26.01.2012, 16:35
Re: Teleport-Car wont come - by MP2 - 26.01.2012, 16:35
Re: Teleport-Car wont come - by RubM - 26.01.2012, 16:37
Re: Teleport-Car wont come - by [XST]O_x - 26.01.2012, 16:39
Re: Teleport-Car wont come - by Twix[KDZ] - 26.01.2012, 16:39
Re: Teleport-Car wont come - by MP2 - 26.01.2012, 16:42
Re: Teleport-Car wont come - by [XST]O_x - 26.01.2012, 16:45

Forum Jump:


Users browsing this thread: 1 Guest(s)