daily pastebin goal
21%
SHARE
TWEET

Untitled

a guest Jun 24th, 2018 89 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1.      if(strcmp(cmd,"/convidar", true) == 0)
  2.      {
  3.         tmp = strtok(cmdtext, idx);
  4.         if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "Uso correto: /convidar [ id ].");
  5.         new para1,ftext[30];
  6.         para1 = ReturnUser(tmp);
  7.         if (PlayerInfo[playerid][pLider] >= 1 || PlayerInfo[playerid][pMembro] >= 1 && PlayerInfo[playerid][pCargo] == 444 || PlayerInfo[playerid][pMembro] >= 1 && PlayerInfo[playerid][pCargo] == 555)
  8.         {
  9.         if(!IsPlayerConnected(para1)) return SendClientMessage(playerid,COLOR_GREY,"Player não conectado.");
  10.         if(PlayerInfo[para1][pLevel] < 2) return SendClientMessage(playerid, COLOR_GREY, "So pode convidar quem é nivel 2 ou acima de 2!!!");
  11.         if (PlayerInfo[para1][pMembro] > 0 || PlayerInfo[para1][pLider] > 0) return SendClientMessage(playerid,-1,"Jogador já tem Org.");
  12.         new orgl;
  13.         if(PlayerInfo[playerid][pMembro] >= 1)
  14.         {
  15.         orgl = PlayerInfo[playerid][pMembro];
  16.         }
  17.         if(PlayerInfo[playerid][pLider] >= 1)
  18.         {
  19.         orgl = PlayerInfo[playerid][pLider];
  20.         }
  21.         if(InfoorgGeral(para1, orgl)) { } else { SendClientMessage(playerid,azulagua,"A org está cheia libere uma vaga (/limparVaga)."); }
  22.         if(orgl == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Policia Militar"; ChosenSkin[para1] = 192;}
  23.         else if(orgl == 2) {PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "ROTA"; ChosenSkin[para1] = 172; SetPlayerSkin(para1, 172);}
  24.         else if(orgl == 3) {PlayerInfo[para1][pTeam] = 3; gTeam[para1] = 3; ftext = "Exército"; ChosenSkin[para1] = 191; SetPlayerSkin(para1, 191);}
  25.         else if(orgl == 4) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Médicos"; ChosenSkin[para1] = 274; SetPlayerSkin(para1, 274);}
  26.         else if(orgl == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Varrios Los Aztecas"; ChosenSkin[para1] = 115; SetPlayerSkin(para1, 115);}
  27.         else if(orgl == 6) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "FARC"; ChosenSkin[para1] = 222; SetPlayerSkin(para1, 222);}
  28.         else if(orgl == 7) { PlayerInfo[para1][pTeam] = 7; gTeam[para1] = 7; ftext = "Prefeitura"; ChosenSkin[para1] = 163; SetPlayerSkin(para1, 163);}
  29.         else if(orgl == 8) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Nos Hitmans"; ChosenSkin[para1] = 261; SetPlayerSkin(para1, 261); }
  30.         else if(orgl == 9) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Reporteres"; ChosenSkin[para1] = 227; SetPlayerSkin(para1, 227);}
  31.         else if(orgl == 10) {PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Taxistas"; ChosenSkin[para1] = 255; SetPlayerSkin(para1, 255);}
  32.         else if(orgl == 11) {PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Detran"; ChosenSkin[para1] = 59; SetPlayerSkin(para1, 59);}
  33.         else if(orgl == 15) {PlayerInfo[para1][pTeam] = 15; gTeam[para1] = 12; ftext = "Groove Street"; ChosenSkin[para1] = 105; SetPlayerSkin(para1, 105);}
  34.         else if(orgl == 16) {PlayerInfo[para1][pTeam] = 16; gTeam[para1] = 12; ftext = "Guerrilheiros Israelitas"; ChosenSkin[para1] = 272; SetPlayerSkin(para1, 272); }
  35.         else if(orgl == 17) {PlayerInfo[para1][pTeam] = 17; gTeam[para1] = 2; ftext = "Policia Federal"; ChosenSkin[para1] = 285; SetPlayerSkin(para1, 285);}
  36.         else if(orgl == 18) {PlayerInfo[para1][pTeam] = 18; gTeam[para1] = 12; ftext = "Front Yard Ballas"; ChosenSkin[para1] = 103; SetPlayerSkin(para1, 103);}
  37.         else if(orgl == 19) {PlayerInfo[para1][pTeam] = 19; gTeam[para1] = 12; ftext = "Los Santos Vagos"; ChosenSkin[para1] = 109; SetPlayerSkin(para1, 109);}
  38.         else if(orgl == 20) { PlayerInfo[para1][pTeam] = 20; gTeam[para1] = 20; ftext = "Mafia Yakuza"; ChosenSkin[para1] = 111; SetPlayerSkin(para1, 111);}
  39.         else if(orgl == 20) { PlayerInfo[para1][pTeam] = 21; gTeam[para1] = 20; ftext = "Son of Anarchy"; ChosenSkin[para1] = 21; SetPlayerSkin(para1, 21);}
  40.         else if(orgl == 22) { PlayerInfo[para1][pTeam] = 22; gTeam[para1] = 22; ftext = "Máfia Cosa Nostra"; ChosenSkin[para1] = 120; SetPlayerSkin(para1, 120);}
  41.         else if(orgl == 23) {PlayerInfo[para1][pTeam] = 23; gTeam[para1] = 23; ftext = "Comando Vermelho"; ChosenSkin[para1] = 19; SetPlayerSkin(para1, 19);}
  42.         else if(orgl == 24) {PlayerInfo[para1][pTeam] = 24; gTeam[para1] = 24; ftext = "PCC"; ChosenSkin[para1] = 28; SetPlayerSkin(para1, 241);}
  43.         else if(orgl == 26){ PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "CORE"; ChosenSkin[para1] = 285;}
  44.         else { return 1; }
  45.         SetPlayerToTeamColor(playerid);
  46.         GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  47.         GetPlayerName(playerid, sendername, sizeof(sendername));
  48.         PlayerInfo[para1][pMembro] = orgl;
  49.         PlayerInfo[para1][pCargo] = 1;
  50.         printf("ADMIN CMD: %s convidou %s para entrar %s.", sendername, giveplayer, ftext);
  51.         format(string, sizeof(string), "Voce foi convidado para a %s, pelo Líder %s.", ftext, sendername);
  52.         SendClientMessage(para1, COLOR_LIGHTBLUE, string);
  53.         format(string, sizeof(string), "Voce convidou %s para a %s.", giveplayer,ftext);
  54.         SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  55.         SetPlayerInterior(para1,0);
  56.         PlayerInfo[playerid][pCarLic] = 1;
  57.         PlayerInfo[playerid][pFlyLic] = 1;
  58.         PlayerInfo[playerid][pBoatLic] = 1;
  59.         PlayerInfo[playerid][pFishLic] = 1;
  60.         PlayerInfo[playerid][pGunLic] = 1;
  61.         new rand = random(sizeof(gInviteSpawns));
  62.         SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
  63.         SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
  64.         SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  65.         SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
  66.         TogglePlayerControllable(para1, 0);
  67.         SelectChar[para1] = 255;
  68.         SelectCharID[para1] = PlayerInfo[para1][pMembro];
  69.         SelectCharPlace[para1] = 1;
  70.         PlayerInfo[para1][pModel] = ChosenSkin[para1];
  71.         PlayerInfo[para1][pChar] = ChosenSkin[para1];
  72.         format(string,sizeof(string),"%s para ter mais opções de skins clique em próximo.\nCaso já tenha escolhido a skin clique em Confirma.",pNome(para1));
  73.         ShowPlayerDialog(para1,717,DIALOG_STYLE_MSGBOX,"Selecionando skin para a org que foi convidado.",string,"Proximo","Confirma");
  74.         }
  75.         else {  SendClientMessage(playerid, COLOR_GRAD1, "   Voce nao esta autorizado para usar este cmd ( Apenas Lideres )!");
  76.         }
  77.         return 1;
  78.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top