Nem teszteltem, de hátha mûködik.
forward ellenor();
public OnGameModeInit()
{
SetTimer(\"ellenor\", 5*60000, true);
}
public ellenor()
{
for(new vehicle; vehicle<MAX_VEHICLES; vehicle++)
{
if(!IsVehicleOccupied(vehicle)) return DestroyVehicle(vehicle);
}
return 1;
}
stock IsVehicleOccupied (vehicle)
{
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerInVehicle(i, vehicle)) return 1;
}
return 0;
}