09.06.2010, 10:02
No but you can make it.
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.
If vehid returns 0, then he's not in a vehicle.
pawn Код:
stock IsPlayerOnfoot(playerid)
{
if(!IsPlayerInAnyVehicle(playerid)) return 1;
return 0;
}
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;