How to check if vehicle is being driven already.
#2

This should work,
pawn Код:
stock IsSeatTaken(vehicleid, seatid)
{
    for(new i = GetPlayerPoolSize(); i != -1; i--)
    {
        if(!IsPlayerConnected(i)) continue;
        if(GetPlayerVehicleID(i) == vehicleid && GetPlayerVehicleSeat(i) == seatid) return 1;
    }
    return 0;
}
Reply


Messages In This Thread
How to check if vehicle is being driven already. - by Dustly - 29.06.2016, 07:37
Re: How to check if vehicle is being driven already. - by blackeagle1122 - 29.06.2016, 09:00

Forum Jump:


Users browsing this thread: 1 Guest(s)