IsVehicleInUse?
#1

If the car is used, it can not be stolen.

How can I do?

I try with isvehicleinuse
Reply
#2

This function doesnt exist like you noticed

Just loop through all players and if it found someone inside stop it

pawn Код:
stock IsVehicleInUse(vehicleid)
{
    for(new i; i != MAX_PLAYERS; i++)
    {
        if(GetPlayerVehicleID(i) == vehicleid)
        {
            return i;
        }
    }
    return INVALID_PLAYER_ID;
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)