25.11.2011, 14:20
pawn Код:
if(!strcmp(cmd, "/excluirvid", true))
{
new bool:Ocupado[MAX_VEHICLES];
for(new i=0; i<MAX_PLAYERS; i++)
{
if(GetPlayerVehicleID(i) != INVALID_VEHICLE_ID)
Ocupado[GetPlayerVehicleID(i)] = true;
}
for(new i=0; i<MAX_VEHICLES; i++)
{
if(!Ocupado[i])
DestroyVehicle(i);
}
return 1;
}