Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Deletar carros com excessão:
- // Esta função deleta todos os carros. menos aqueles selecionados*
- DestroyAllVehWidthExeption(...)
- {
- new sVeh[MAX_VEHICLES] = 0;
- for(new i; i < numargs(); ++i) sVeh[i] = getarg(i);
- for(new sVeg = 0; sVeg < MAX_VEHICLES; ++sVeg)
- {
- if(sVeh[sVeg] != sVeg)
- {
- DestroyVehicle(sVeg);
- }
- }
- }
- // Uso
- DestroyAllVehWidthExeption(50,150);
- // Para Deletar todos os carros de todos os players:
- for(new i; i < MAX_PLAYERS; ++i) if(IsPlayerConnected(i)DestroyAllVehWidthExeption(GetVehicleModel(i));
Advertisement
Add Comment
Please, Sign In to add comment