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