01.09.2013, 16:33
Hi-
I'm looking for some way to block out faction vehicles from my /destroyall command. That command will destroy EVERY unused vehicle from my server, But I can't figure out any way to 'mark' or avoid faction cars from being destroyed with them..
This is the function I use for the command. /destroyall
The vehicles, (faction vehicles) are defined as variables. like so:
Any suggestions?
I'm looking for some way to block out faction vehicles from my /destroyall command. That command will destroy EVERY unused vehicle from my server, But I can't figure out any way to 'mark' or avoid faction cars from being destroyed with them..
This is the function I use for the command. /destroyall
Код:
forward DestroyAll(); public DestroyAll() { for( new i; i < MAX_VEHICLES; i++ ) { if( !bVehicleOccupied[ i ] ) DestroyVehicle( i ); } SendClientMessageToAll(ADMIN, "[SERVER] {FFFFFF}ALL unused vehicles removed."); return 1; }
Код:
new SDCars[ 13 ];