19.01.2010, 06:33
im a Respawn All Cars Command 
bassically that is make sure in ur cars define number u select the number of the cars u want to respawn with that command
actually cars wont spawn if someone is on it so u can use for example spawn cars from 1 to the number you have iif you get it
and is set for admins lvl 3 and higher u can change you know modify the command to get your self satisfated let me know if you need something alse or if you have any problems adding it

Код:
if(strcmp(cmd, "/respawnallcars", true) == 0 || strcmp(cmd, "/rac", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] < 3) { SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!"); return 1; } new bool:unwanted[CAR_AMOUNT]; for(new player=0; player<MAX_PLAYERS; player++) { if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; } } for(new car = 1; car <= 268; car++) { if(!unwanted[car]) SetVehicleToRespawn(car); } GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "SERVER: All unused cars respawned by %s.", sendername); BroadCast(COLOR_WHITE,string); } return 1; }
actually cars wont spawn if someone is on it so u can use for example spawn cars from 1 to the number you have iif you get it
and is set for admins lvl 3 and higher u can change you know modify the command to get your self satisfated let me know if you need something alse or if you have any problems adding it