vehicle checkpoint
#6

No but you can make it.

pawn Код:
stock IsPlayerOnfoot(playerid)
{
if(!IsPlayerInAnyVehicle(playerid)) return 1;
return 0;
}
Basic, returns 1 if he is onfoot, 0 if he's not, but I don't see much of a point.

But my point being, you don't have to be in a vehicle to check if you're in a vehicle, so it's useless checking if you're in a vehicle in the first place.

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

if(!vehid) return 0;
If vehid returns 0, then he's not in a vehicle.
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)