IsPlayerInVehicle
#3

Quote:
Originally Posted by dusk
Посмотреть сообщение
pawn Код:
if(IsPlayerInVehicle(playerid,(519 || 520))) return SendClientMessage(playerid,-1,"You must be in a Plane to Do Work");
think that should work
*
That will not work.

You can use the OR operator !
pawn Код:
if( IsPlayerInVehicle(playerid, some_vehicle_id) || IsPlayerInVehicle(playerid, another_vehicle_id) || ...) return --;
About the 2nd part, why are you using else if there's no code there?
Reply


Messages In This Thread
IsPlayerInVehicle - by Avi Raj - 26.03.2013, 08:15
Re: IsPlayerInVehicle - by dusk - 26.03.2013, 08:21
Re: IsPlayerInVehicle - by RajatPawar - 26.03.2013, 08:22
Re: IsPlayerInVehicle - by Avi Raj - 26.03.2013, 08:31
Re: IsPlayerInVehicle - by Gamer_007 - 26.03.2013, 10:38

Forum Jump:


Users browsing this thread: 2 Guest(s)