06.07.2012, 19:09
Код:
//Spawn Carros if(strcmp(cmd, "/respawncarros", true) == 0 || strcmp(cmd, "/rc", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pAdmin] < 3) { SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo estб autorizado a usar este comando !"); return 1; } if(admadministrando[playerid] < 1) { SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/profadmin)"); return 1; } GetPlayerName(playerid, playername, sizeof(playername)); //format(string, sizeof(string), "[RHB]] O Admin %s recolocou todos os veiculos para seus locais de origem.", playername); SendClientMessageToAll(COLOR_WHITE,string); SendClientMessage(playerid,COLOR_GRAD1,"Carros Respanados Com Susseso!"); 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 <= CAR_RESPAW; car++) { if(!unwanted[car]) SetVehicleToRespawn(car); } } return 1; }