Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmd, "/rc", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 1336)
- {
- SendClientMessage(playerid, COLOR_GRAD1, " Você não está autorizado a usar este comando !");
- return 1;
- }
- if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 3000)
- {
- SendClientMessage(playerid, -1, "Você não está trabalhando! {E31919}(/trabalhar)");
- return 1;
- }
- GetPlayerName(playerid, playername, sizeof(playername));
- format(string, sizeof(string), "• |BSP| • {FFFFFF}Admin {80E3FF}%s {FFFFFF}deu Respawn, todos os carros foram para seu local de inicio.", playername);
- SendClientMessageToAll(0xFF8080AA,string);
- new bool:unwanted[MAX_VEHICLES];
- for(new player=0; player<MaiorID; player++)
- {
- if(IsPlayerConnected(player) && IsPlayerInAnyVehicle(player))
- {
- unwanted[GetPlayerVehicleID(player)]=true;
- }
- }
- for(new car = 1; car <= MAX_VEHICLES; car++)
- {
- if (veiculoaprendido[car] = 1;)
- {
- unwanted[GetPlayerVehicleID(car)]=true;
- }
- }
- for(new car = 1; car <= MAX_VEHICLES; car++)
- {
- if(!unwanted[car]) SetVehicleToRespawn(car);
- }
- return true;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment