IsVehicleInUse?
#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


Messages In This Thread
IsVehicleInUse? - by ZFunn - 14.07.2010, 15:10
Re: IsVehicleInUse? - by Nero_3D - 14.07.2010, 15:16

Forum Jump:


Users browsing this thread: 1 Guest(s)