How do I check if vehicle has no driver?
#2

Use this function.

pawn Код:
stock IsVehicleOccupied(vehicleid)
{
    foreach(Player,i)
    {
        if(IsPlayerInAnyVehicle(i))
        {
            return (GetPlayerVehicleID(i)==vehicleid);
        }
    }
   
    return 0;
}
Reply


Messages In This Thread
How do I check if vehicle has no driver? - by hydravink - 03.02.2013, 20:58
Re: How do I check if vehicle has no driver? - by T0pAz - 03.02.2013, 21:09
Re: How do I check if vehicle has no driver? - by hydravink - 03.02.2013, 21:09
Re: How do I check if vehicle has no driver? - by CrazyChoco - 03.02.2013, 21:12
Re: How do I check if vehicle has no driver? - by hydravink - 03.02.2013, 21:17
Re: How do I check if vehicle has no driver? - by [rG]Cold - 03.02.2013, 21:20
Re: How do I check if vehicle has no driver? - by hydravink - 03.02.2013, 21:23
Re: How do I check if vehicle has no driver? - by hydravink - 03.02.2013, 21:43

Forum Jump:


Users browsing this thread: 2 Guest(s)