15.07.2010, 19:04
Might try this:
Unsure about it though.
pawn Код:
stock IsVehicleEmpty(vehicleid)
{
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i) && GetPlayerVehicleID(i) == vehicleid) return 0;
}
return 1;
}