14.07.2010, 15:16
This function doesnt exist like you noticed
Just loop through all players and if it found someone inside stop it
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;
}