AloneZ

Untitled

Aug 7th, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.48 KB | None | 0 0
  1. if(strcmp(cmd, "/rc", true) == 0)
  2.     {
  3.         if(IsPlayerConnected(playerid))
  4.         {
  5.             if(PlayerInfo[playerid][pAdmin] < 1336)
  6.             {
  7.                 SendClientMessage(playerid, COLOR_GRAD1, "   Você não está autorizado a usar este comando !");
  8.                 return 1;
  9.             }
  10.             if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 3000)
  11.             {
  12.                 SendClientMessage(playerid, -1, "Você não está trabalhando! {E31919}(/trabalhar)");
  13.                 return 1;
  14.             }
  15.             GetPlayerName(playerid, playername, sizeof(playername));
  16.             format(string, sizeof(string), "• |BSP| • {FFFFFF}Admin {80E3FF}%s {FFFFFF}deu Respawn, todos os carros foram para seu local de inicio.", playername);
  17.             SendClientMessageToAll(0xFF8080AA,string);
  18.             new bool:unwanted[MAX_VEHICLES];
  19.             for(new player=0; player<MaiorID; player++)
  20.             {
  21.                 if(IsPlayerConnected(player) && IsPlayerInAnyVehicle(player))
  22.                 {
  23.                     unwanted[GetPlayerVehicleID(player)]=true;
  24.                 }
  25.             }
  26.             for(new car = 1; car <= MAX_VEHICLES; car++)
  27.             {
  28.                 if (veiculoaprendido[car] = 1;)
  29.                 {
  30.                     unwanted[GetPlayerVehicleID(car)]=true;
  31.                 }
  32.             }
  33.             for(new car = 1; car <= MAX_VEHICLES; car++)
  34.             {
  35.                 if(!unwanted[car]) SetVehicleToRespawn(car);
  36.             }
  37.             return true;
  38.         }
  39.         return 1;
  40.     }
Advertisement
Add Comment
Please, Sign In to add comment