06.11.2010, 18:37
Hello, can someone help me make this command respawn ONLY empty cars instead of all? thanks.
Код:
command(vehrespawn, playerid, params[]) { #pragma unused params if( Player[playerid][AdminLevel] >= 5) { for(new i = 0; i < MAX_VEHICLES; i++) { if(Vehicles[i][GameID] >= 1) { SetVehicleToRespawn(Vehicles[i][GameID]); } } SendClientMessage( playerid, WHITE, "All saved vehicles have been respawned." ); } return 1; }