vehicle checkpoint
#4

Quote:
Originally Posted by DJDhan
It doesn't matter if it has the vehicle id parameter on not
Код:
IsPlayerInAnyVehicle(playerid)
{
  new vehid;
  vehid=GetPlayerVehicleID(playerid);
}
There you have the vehicle id.
Use what he said, but make sure the vehicle you're trying to check has a ID (A unuiqe one, All vehicles have an ID)

pawn Код:
new vehid = GetPlayerVehicleID(playerid);

if(vehid != wangscar) return 0;

//Do what you want it to do here
GetPlayerVehicleID Returns the vehicle ID if playerid is in a vehicle, if he isn't in a vehicle, it returns 0.



1 line, works as good.
Reply


Messages In This Thread
vehicle checkpoint - by billiout - 09.06.2010, 08:30
Re: vehicle checkpoint - by DJDhan - 09.06.2010, 09:30
Re: vehicle checkpoint - by billiout - 09.06.2010, 09:47
Re: vehicle checkpoint - by Joe_ - 09.06.2010, 09:48
Re: vehicle checkpoint - by billiout - 09.06.2010, 10:00
Re: vehicle checkpoint - by Joe_ - 09.06.2010, 10:02

Forum Jump:


Users browsing this thread: 1 Guest(s)