Advertisement
StraliotiF

GameMode Base Torcidas

Oct 29th, 2015
1,192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 134.15 KB | None | 0 0
  1. /* FEITO POR FÁBIO STRALIOTI
  2. COPYRIGHT © 2015
  3. VOCÊ PODERÁ SER PUNIDO SEVERAMENTE SE USAR O GAMEMODE SEM AUTORIZAÇÃO DO AUTOR.
  4. */
  5.  
  6. #include <a_samp>
  7. #include <zcmd>
  8. #include <sscanf>
  9. #include <dof2>
  10.  
  11. new Text:Registro[19];
  12.  
  13. new
  14. IP[26],
  15. Arquivo[40],
  16. String[256],
  17. Administrador[MAX_PLAYERS],
  18. Level[MAX_PLAYERS],
  19. Skin[MAX_PLAYERS],
  20. Matou[MAX_PLAYERS],
  21. Morreu[MAX_PLAYERS],
  22. PlayerERRO[MAX_PLAYERS],
  23. Nome[MAX_PLAYER_NAME]
  24. //ANome[MAX_PLAYER_NAME]
  25. ;
  26.  
  27. enum pInfo {
  28.     pAdministrador,
  29.     pPresidente,
  30.     pOrg,
  31.     pCone,
  32.     pGrade,
  33.     pPux,
  34.     pPM,
  35.     pTrafico,
  36.     pTorcidas,
  37.     pVPresidente,
  38.     bool:LerPM,
  39.     bool:BlockPM,
  40.     bool:BlockIR,
  41.     bool:BlockTR,
  42.     FilaRGT,
  43.     FilaHELPER,
  44.     pReporter,
  45.     pBtr,
  46.     pHelper
  47. };
  48. new Stralioti[MAX_PLAYERS][pInfo];
  49. new Id;
  50. new stralioti[128];
  51. new Escudo[MAX_PLAYERS];
  52. new stralioti2[128];
  53. new Straliotii[128];
  54. new Senha;
  55. new SenhaRGT;
  56. new straliotiadmin[256];
  57. new NumeroPlayers[74];
  58. new texto;
  59. new Vip[MAX_PLAYERS];
  60. new minutos;
  61. new motivo;
  62. new Float:FX, Float:FY, Float:FZ;
  63. new Float:X, Float:Y, Float:Z, Float: Angle;
  64. new Float:vida;
  65. new Float:colete;
  66. new straliotiid[MAX_PLAYERS];
  67. new HighestID;
  68. new gPlayerUsingLoopingAnim[MAX_PLAYERS];
  69. new Text:txtAnimHelper;
  70. new animation[200];
  71. new IDHELPER[MAX_PLAYERS];
  72. new bool:Acusado[MAX_PLAYERS];
  73. new Mensagens[4][128] =
  74. {
  75.     "Saiba quem foi o criador do GameMode digitando /creditos",
  76.     "Viu algo ilegal no servidor use /reportar id motivo nossos administradores estarão pronto para atende-los",
  77.     "Nunca disrespeite nenhum mémbro do servidor pois não é permitido e deselegante , Bom Jogo !",
  78.     "Não use nenhum tipo de hacker em nosso servidor pois nossos Administradores estão atentos."
  79. };
  80.  
  81. new Cores[] =
  82. {
  83.     0x5EB7E3AA,
  84. };
  85. new
  86. bool:EnqueteAberta,
  87. SringEnquete[128],
  88. TotalDeVotosSim,
  89. TotalDeVotosNao,
  90. Votos[500]
  91. ;
  92. new NomeEnquete[128] = "N/A";
  93. new False=false;
  94.  
  95. new Text:Textdraw19;
  96. new Text:Textdraw20;
  97. new Text:Textdraw21;
  98. new Text:Textdraw22;
  99. new Text:Textdraw23;
  100.  
  101. forward hora(playerid);
  102. forward SendMessageToAdminsEx(const string[]);
  103. forward SendMensagens();
  104.  
  105. #define  DIALOG_REGISTRO ( 1 )
  106. #define  DIALOG_LOGIN    ( 2 )
  107. #define  DIALOG_AVISO    ( 3 )
  108. #define  ARMAS 4
  109. #define  DIALOG_EN 5
  110. #define  ANUNCIAR 6
  111. #define  MUDARLUTA 7
  112. #define  Torcidas 8
  113. #define  SUDESTE 9
  114. #define  SUL 10
  115. #define  NORTE 11
  116. #define RJ 12
  117. #define SP 13
  118. #define MG 14
  119. #define PR 15
  120. #define BAHIA 16
  121. #define PE 17
  122. #define CE 18
  123. #define Funçoes "Funcao/%s.ini"
  124. #define VALOR 5000
  125. #define DIALOG_ENQUETE 25
  126.  
  127. #define SPECIAL_ACTION_PISSING      68
  128.  
  129. #define COR_AZUL_ADMIN  0x4876FFFF
  130. #define COR_AVISO       0x8B8B83FF
  131. #define COR_SUCESSO     0x54FF9FFF
  132. #define COR_GROOVE 0x00800096
  133. #define COR_BALLAS 0xFF00CDFF
  134. #define COR_AMARELO         0xFFFF00AA
  135. #define COR_ERRO        0xFF0000FF
  136. #define COR_TEXTO           0xE3E3E3FF
  137. #define COR_USOCORRETO  0x2641FEAA
  138. #define COR_VERMELHO    0xFF0000FF
  139. #define COR_TGT         0xAFAFAFAA
  140. #define COR_TOIC        0x57B0E6AA
  141. #define COR_PCA         0x33AA33AA
  142. #define COR_UPC         0xAA3333AA
  143. #define COR_LDB         0xFFFF00AA
  144. #define COR_MVP         0x800080AA
  145. #define COR_PDA         0x80800096
  146. #define COR_SALMAO      0xFA8072FF
  147. #define COR_AZULC       0x66CCFFFF
  148. #define COR_HELPER      0x33CCFFFF
  149. #define COR_ROSA        0xFF66CCFF
  150. #define COR_LARANJA     0xF4A460FF
  151. #define COR_KICK        0xCC3300FF
  152. #define COR_VERDE       0x006400FF
  153. #define COR_ADMIN       0x0000FFFF
  154. #define COR_TRF         0xCD853FFF
  155.  
  156. #define VEH 1
  157. #define Kick(%0) SetTimerEx("Kicka", 100, false, "i", %0)
  158. #define Ban(%0) SetTimerEx("Bana", 100, false, "i", %0)
  159. #define banido "Banidos\\%s.ini"
  160.  
  161. #define SendFormattedMessage(%0,%1,%2,%3) do{new _string[128]; format(_string,sizeof(_string),%2,%3); SendClientMessage(%0,%1,_string);} while(False)
  162. #define SendFormattedMessageToAll(%0,%1,%2) do{new _string[128]; format(_string,sizeof(_string),%1,%2); SendClientMessageToAll(%0,_string);} while(False)
  163.  
  164. main()
  165. {
  166.     print("GameMode Torcidas ON");
  167.     print("GameMode Feito por: FÁBIO STRALIOTI");
  168. }
  169.  
  170. public OnGameModeInit()
  171. {
  172.  
  173.     UsePlayerPedAnims();
  174.     LimitGlobalChatRadius(30);
  175.     DisableInteriorEnterExits();
  176.  
  177.  
  178.     Textdraw19 = TextDrawCreate(462.000000, 372.000000, "NOME DO SERVIDOR");
  179.     TextDrawBackgroundColor(Textdraw19, 255);
  180.     TextDrawFont(Textdraw19, 2);
  181.     TextDrawLetterSize(Textdraw19, 0.589999, 2.599999);
  182.     TextDrawColor(Textdraw19, -16776961);
  183.     TextDrawSetOutline(Textdraw19, 0);
  184.     TextDrawSetProportional(Textdraw19, 1);
  185.     TextDrawSetShadow(Textdraw19, 1);
  186.     TextDrawSetSelectable(Textdraw19, 0);
  187.  
  188.     Textdraw20 = TextDrawCreate(483.000000, 397.000000, "SITE");
  189.     TextDrawBackgroundColor(Textdraw20, 255);
  190.     TextDrawFont(Textdraw20, 2);
  191.     TextDrawLetterSize(Textdraw20, 0.180000, 1.200000);
  192.     TextDrawColor(Textdraw20, -16776961);
  193.     TextDrawSetOutline(Textdraw20, 0);
  194.     TextDrawSetProportional(Textdraw20, 1);
  195.     TextDrawSetShadow(Textdraw20, 1);
  196.     TextDrawSetSelectable(Textdraw20, 0);
  197.  
  198.     Textdraw21 = TextDrawCreate(496.000000, 411.000000, "Players: 30/30");
  199.     TextDrawBackgroundColor(Textdraw21, 255);
  200.     TextDrawFont(Textdraw21, 2);
  201.     TextDrawLetterSize(Textdraw21, 0.290000, 1.000000);
  202.     TextDrawColor(Textdraw21, -16776961);
  203.     TextDrawSetOutline(Textdraw21, 0);
  204.     TextDrawSetProportional(Textdraw21, 1);
  205.     TextDrawSetShadow(Textdraw21, 1);
  206.     TextDrawSetSelectable(Textdraw21, 0);
  207.  
  208.     Textdraw22 = TextDrawCreate(539.000000, 14.000000, "00/00/00");
  209.     TextDrawBackgroundColor(Textdraw22, 255);
  210.     TextDrawFont(Textdraw22, 2);
  211.     TextDrawLetterSize(Textdraw22, 0.500000, 1.000000);
  212.     TextDrawColor(Textdraw22, -16776961);
  213.     TextDrawSetOutline(Textdraw22, 0);
  214.     TextDrawSetProportional(Textdraw22, 1);
  215.     TextDrawSetShadow(Textdraw22, 1);
  216.     TextDrawSetSelectable(Textdraw22, 0);
  217.  
  218.     Textdraw23 = TextDrawCreate(544.000000, 27.000000, "00:00:00");
  219.     TextDrawBackgroundColor(Textdraw23, 255);
  220.     TextDrawFont(Textdraw23, 2);
  221.     TextDrawLetterSize(Textdraw23, 0.500000, 1.000000);
  222.     TextDrawColor(Textdraw23, -16776961);
  223.     TextDrawSetOutline(Textdraw23, 0);
  224.     TextDrawSetProportional(Textdraw23, 1);
  225.     TextDrawSetShadow(Textdraw23, 1);
  226.     TextDrawSetSelectable(Textdraw23, 0);
  227.  
  228.     Registro[0] = TextDrawCreate(640.000000, 0.000000, "         ");
  229.     TextDrawBackgroundColor(Registro[0], 255);
  230.     TextDrawFont(Registro[0], 1);
  231.     TextDrawLetterSize(Registro[0], 0.500000, 8.000000);
  232.     TextDrawColor(Registro[0], -1);
  233.     TextDrawSetOutline(Registro[0], 0);
  234.     TextDrawSetProportional(Registro[0], 1);
  235.     TextDrawSetShadow(Registro[0], 1);
  236.     TextDrawUseBox(Registro[0], 1);
  237.     TextDrawBoxColor(Registro[0], 35);
  238.     TextDrawTextSize(Registro[0], -30.000000, 19.000000);
  239.  
  240.     Registro[1] = TextDrawCreate(388.000000, 161.000000, "          ");
  241.     TextDrawBackgroundColor(Registro[1], 255);
  242.     TextDrawFont(Registro[1], 1);
  243.     TextDrawLetterSize(Registro[1], 0.500000, 0.199999);
  244.     TextDrawColor(Registro[1], -1);
  245.     TextDrawSetOutline(Registro[1], 0);
  246.     TextDrawSetProportional(Registro[1], 1);
  247.     TextDrawSetShadow(Registro[1], 1);
  248.     TextDrawUseBox(Registro[1], 1);
  249.     TextDrawBoxColor(Registro[1], 60);
  250.     TextDrawTextSize(Registro[1], 257.000000, -20.000000);
  251.  
  252.     Registro[2] = TextDrawCreate(388.000000, 190.000000, "          ");
  253.     TextDrawBackgroundColor(Registro[2], 255);
  254.     TextDrawFont(Registro[2], 1);
  255.     TextDrawLetterSize(Registro[2], 0.500000, 0.199999);
  256.     TextDrawColor(Registro[2], -1);
  257.     TextDrawSetOutline(Registro[2], 0);
  258.     TextDrawSetProportional(Registro[2], 1);
  259.     TextDrawSetShadow(Registro[2], 1);
  260.     TextDrawUseBox(Registro[2], 1);
  261.     TextDrawBoxColor(Registro[2], 70);
  262.     TextDrawTextSize(Registro[2], 257.000000, -20.000000);
  263.  
  264.     Registro[3] = TextDrawCreate(388.000000, 218.000000, "          ");
  265.     TextDrawBackgroundColor(Registro[3], 255);
  266.     TextDrawFont(Registro[3], 1);
  267.     TextDrawLetterSize(Registro[3], 0.500000, 0.199999);
  268.     TextDrawColor(Registro[3], -1);
  269.     TextDrawSetOutline(Registro[3], 0);
  270.     TextDrawSetProportional(Registro[3], 1);
  271.     TextDrawSetShadow(Registro[3], 1);
  272.     TextDrawUseBox(Registro[3], 1);
  273.     TextDrawBoxColor(Registro[3], 70);
  274.     TextDrawTextSize(Registro[3], 257.000000, -20.000000);
  275.  
  276.     Registro[4] = TextDrawCreate(388.000000, 247.000000, "          ");
  277.     TextDrawBackgroundColor(Registro[4], 255);
  278.     TextDrawFont(Registro[4], 1);
  279.     TextDrawLetterSize(Registro[4], 0.500000, 0.199999);
  280.     TextDrawColor(Registro[4], -1);
  281.     TextDrawSetOutline(Registro[4], 0);
  282.     TextDrawSetProportional(Registro[4], 1);
  283.     TextDrawSetShadow(Registro[4], 1);
  284.     TextDrawUseBox(Registro[4], 1);
  285.     TextDrawBoxColor(Registro[4], 70);
  286.     TextDrawTextSize(Registro[4], 257.000000, -20.000000);
  287.  
  288.     Registro[5] = TextDrawCreate(282.000000, 162.000000, "Registrar");
  289.     TextDrawBackgroundColor(Registro[5], 255);
  290.     TextDrawFont(Registro[5], 2);
  291.     TextDrawLetterSize(Registro[5], 0.349999, 1.500000);
  292.     TextDrawColor(Registro[5], -1);
  293.     TextDrawSetOutline(Registro[5], 1);
  294.     TextDrawSetProportional(Registro[5], 1);
  295.  
  296.     Registro[6] = TextDrawCreate(298.000000, 191.000000, "Logar");
  297.     TextDrawBackgroundColor(Registro[6], 255);
  298.     TextDrawFont(Registro[6], 2);
  299.     TextDrawLetterSize(Registro[6], 0.349999, 1.500000);
  300.     TextDrawColor(Registro[6], -1);
  301.     TextDrawSetOutline(Registro[6], 1);
  302.     TextDrawSetProportional(Registro[6], 1);
  303.  
  304.     Registro[7] = TextDrawCreate(306.000000, 218.000000, "Info");
  305.     TextDrawBackgroundColor(Registro[7], 255);
  306.     TextDrawFont(Registro[7], 2);
  307.     TextDrawLetterSize(Registro[7], 0.349999, 1.500000);
  308.     TextDrawColor(Registro[7], -1);
  309.     TextDrawSetOutline(Registro[7], 1);
  310.     TextDrawSetProportional(Registro[7], 1);
  311.  
  312.     Registro[8] = TextDrawCreate(305.000000, 247.000000, "Sair");
  313.     TextDrawBackgroundColor(Registro[8], 255);
  314.     TextDrawFont(Registro[8], 2);
  315.     TextDrawLetterSize(Registro[8], 0.349999, 1.500000);
  316.     TextDrawColor(Registro[8], -1);
  317.     TextDrawSetOutline(Registro[8], 1);
  318.     TextDrawSetProportional(Registro[8], 1);
  319.  
  320.     Registro[9] = TextDrawCreate(650.000000, 68.000000, "         ");
  321.     TextDrawBackgroundColor(Registro[9], 255);
  322.     TextDrawFont(Registro[9], 1);
  323.     TextDrawLetterSize(Registro[9], 0.800000, 0.000000);
  324.     TextDrawColor(Registro[9], -1);
  325.     TextDrawSetOutline(Registro[9], 0);
  326.     TextDrawSetProportional(Registro[9], 1);
  327.     TextDrawSetShadow(Registro[9], 1);
  328.     TextDrawUseBox(Registro[9], 1);
  329.     TextDrawBoxColor(Registro[9], 1131343615);
  330.     TextDrawTextSize(Registro[9], -11.000000, 0.000000);
  331.  
  332.     Registro[10] = TextDrawCreate(650.000000, 378.000000, "         ");
  333.     TextDrawBackgroundColor(Registro[10], 255);
  334.     TextDrawFont(Registro[10], 1);
  335.     TextDrawLetterSize(Registro[10], 0.800000, -0.099999);
  336.     TextDrawColor(Registro[10], -1);
  337.     TextDrawSetOutline(Registro[10], 0);
  338.     TextDrawSetProportional(Registro[10], 1);
  339.     TextDrawSetShadow(Registro[10], 1);
  340.     TextDrawUseBox(Registro[10], 1);
  341.     TextDrawBoxColor(Registro[10], 1131343615);
  342.     TextDrawTextSize(Registro[10], -11.000000, 0.000000);
  343.  
  344.     Registro[11] = TextDrawCreate(261.000000, 161.000000, "   ");
  345.     TextDrawBackgroundColor(Registro[11], 255);
  346.     TextDrawFont(Registro[11], 1);
  347.     TextDrawLetterSize(Registro[11], 0.500000, 0.899999);
  348.     TextDrawColor(Registro[11], -1);
  349.     TextDrawSetOutline(Registro[11], 0);
  350.     TextDrawSetProportional(Registro[11], 1);
  351.     TextDrawSetShadow(Registro[11], 1);
  352.     TextDrawUseBox(Registro[11], 1);
  353.     TextDrawBoxColor(Registro[11], 255);
  354.     TextDrawTextSize(Registro[11], 262.000000, 0.000000);
  355.  
  356.     Registro[12] = TextDrawCreate(261.000000, 190.000000, "   ");
  357.     TextDrawBackgroundColor(Registro[12], 255);
  358.     TextDrawFont(Registro[12], 1);
  359.     TextDrawLetterSize(Registro[12], 0.500000, 0.899999);
  360.     TextDrawColor(Registro[12], -1);
  361.     TextDrawSetOutline(Registro[12], 0);
  362.     TextDrawSetProportional(Registro[12], 1);
  363.     TextDrawSetShadow(Registro[12], 1);
  364.     TextDrawUseBox(Registro[12], 1);
  365.     TextDrawBoxColor(Registro[12], 1131343615);
  366.     TextDrawTextSize(Registro[12], 262.000000, 0.000000);
  367.  
  368.     Registro[13] = TextDrawCreate(261.000000, 218.000000, "   ");
  369.     TextDrawBackgroundColor(Registro[13], 255);
  370.     TextDrawFont(Registro[13], 1);
  371.     TextDrawLetterSize(Registro[13], 0.500000, 0.899999);
  372.     TextDrawColor(Registro[13], -1);
  373.     TextDrawSetOutline(Registro[13], 0);
  374.     TextDrawSetProportional(Registro[13], 1);
  375.     TextDrawSetShadow(Registro[13], 1);
  376.     TextDrawUseBox(Registro[13], 1);
  377.     TextDrawBoxColor(Registro[13], 255);
  378.     TextDrawTextSize(Registro[13], 262.000000, 0.000000);
  379.  
  380.     Registro[14] = TextDrawCreate(261.000000, 247.000000, "   ");
  381.     TextDrawBackgroundColor(Registro[14], 255);
  382.     TextDrawFont(Registro[14], 1);
  383.     TextDrawLetterSize(Registro[14], 0.500000, 0.899999);
  384.     TextDrawColor(Registro[14], -1);
  385.     TextDrawSetOutline(Registro[14], 0);
  386.     TextDrawSetProportional(Registro[14], 1);
  387.     TextDrawSetShadow(Registro[14], 1);
  388.     TextDrawUseBox(Registro[14], 1);
  389.     TextDrawBoxColor(Registro[14], 1131343615);
  390.     TextDrawTextSize(Registro[14], 262.000000, 0.000000);
  391.  
  392.     Registro[15] = TextDrawCreate(388.000000, 247.000000, "   ");
  393.     TextDrawBackgroundColor(Registro[15], 255);
  394.     TextDrawFont(Registro[15], 1);
  395.     TextDrawLetterSize(Registro[15], 0.500000, 0.899999);
  396.     TextDrawColor(Registro[15], -1);
  397.     TextDrawSetOutline(Registro[15], 0);
  398.     TextDrawSetProportional(Registro[15], 1);
  399.     TextDrawSetShadow(Registro[15], 1);
  400.     TextDrawUseBox(Registro[15], 1);
  401.     TextDrawBoxColor(Registro[15], 1131343615);
  402.     TextDrawTextSize(Registro[15], 379.000000, 0.000000);
  403.  
  404.     Registro[16] = TextDrawCreate(388.000000, 190.000000, "   ");
  405.     TextDrawBackgroundColor(Registro[16], 255);
  406.     TextDrawFont(Registro[16], 1);
  407.     TextDrawLetterSize(Registro[16], 0.500000, 0.899999);
  408.     TextDrawColor(Registro[16], -1);
  409.     TextDrawSetOutline(Registro[16], 0);
  410.     TextDrawSetProportional(Registro[16], 1);
  411.     TextDrawSetShadow(Registro[16], 1);
  412.     TextDrawUseBox(Registro[16], 1);
  413.     TextDrawBoxColor(Registro[16], 1131343615);
  414.     TextDrawTextSize(Registro[16], 379.000000, 0.000000);
  415.  
  416.     Registro[17] = TextDrawCreate(388.000000, 218.000000, "   ");
  417.     TextDrawBackgroundColor(Registro[17], 255);
  418.     TextDrawFont(Registro[17], 1);
  419.     TextDrawLetterSize(Registro[17], 0.500000, 0.899999);
  420.     TextDrawColor(Registro[17], -1);
  421.     TextDrawSetOutline(Registro[17], 0);
  422.     TextDrawSetProportional(Registro[17], 1);
  423.     TextDrawSetShadow(Registro[17], 1);
  424.     TextDrawUseBox(Registro[17], 1);
  425.     TextDrawBoxColor(Registro[17], 255);
  426.     TextDrawTextSize(Registro[17], 379.000000, 0.000000);
  427.  
  428.     Registro[18] = TextDrawCreate(388.000000, 161.000000, "   ");
  429.     TextDrawBackgroundColor(Registro[18], 255);
  430.     TextDrawFont(Registro[18], 1);
  431.     TextDrawLetterSize(Registro[18], 0.500000, 0.899999);
  432.     TextDrawColor(Registro[18], -1);
  433.     TextDrawSetOutline(Registro[18], 0);
  434.     TextDrawSetProportional(Registro[18], 1);
  435.     TextDrawSetShadow(Registro[18], 1);
  436.     TextDrawUseBox(Registro[18], 1);
  437.     TextDrawBoxColor(Registro[18], 255);
  438.     TextDrawTextSize(Registro[18], 379.000000, 0.000000);
  439.  
  440.     TextDrawSetSelectable(Registro[5], 1);
  441.     TextDrawSetSelectable(Registro[6], 1);
  442.     TextDrawSetSelectable(Registro[7], 1);
  443.     TextDrawSetSelectable(Registro[8], 1);
  444.  
  445.     SetTimer("hora",1000,1);
  446.  
  447.     SetGameModeText("[STRALIOTI] 0.1");
  448.     AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  449.  
  450.     AddStaticVehicle(560,-650.0338,953.2648,11.8363,89.1446,34,17); // CARRO 1
  451.     AddStaticVehicle(560,-649.1215,948.1012,11.8381,89.8796,34,17); // CARRO 2
  452.     AddStaticVehicle(560,-649.1294,944.2753,11.8381,89.8796,34,17); // CARRO 3
  453.     AddStaticVehicle(468,-648.3530,963.2564,11.3940,88.0687,49,27); // MOTO 1
  454.     AddStaticVehicle(468,-648.2696,965.6953,11.4074,87.7955,49,27); // MOTO 2
  455.     AddStaticVehicle(468,-648.1522,968.7085,11.4042,87.7636,49,27); // MOTO 3
  456.     AddStaticVehicle(426,-2034.4573,168.1870,28.5792,270.9384,11,11); // CARRO 1 TGT
  457.     AddStaticVehicle(426,-2034.5299,172.6149,28.5901,270.9325,11,11); // CARRO 2 TGT
  458.     AddStaticVehicle(521,-2036.0078,179.8637,28.4092,271.6842,92,3); // MOTO 1 TGT
  459.     AddStaticVehicle(521,-2035.9353,177.3569,28.4190,271.6894,92,3); // MOTO 1 TGT
  460.     AddStaticVehicle(426,2505.2727,-1675.4595,13.1142,93.2120,62,62); // Carro 1 TTI
  461.     AddStaticVehicle(426,2504.9685,-1670.0515,13.1139,93.2222,62,62); // Carro 2 TTI
  462.     AddStaticVehicle(426,2504.6663,-1664.7096,13.1411,93.2162,62,62); // Carro 3 TTI
  463.     AddStaticVehicle(521,2494.8706,-1657.0642,12.9307,179.5098,75,13); // MOTO TTI 1
  464.     AddStaticVehicle(521,2490.9744,-1657.0304,12.9409,179.5043,75,13); // MOTO TTI 2
  465.     AddStaticVehicle(521,2487.3606,-1656.9972,12.9503,179.5200,75,13); // MOTO TTI 3
  466.     AddStaticVehicle(560,2227.7861,-1159.2892,25.4933,89.9428,0,2); // CARRO 1 TPI
  467.     AddStaticVehicle(560,2227.7832,-1162.6473,25.4842,89.9417,0,2); // CARRO TPI 2
  468.     AddStaticVehicle(560,2227.7803,-1166.0625,25.4749,89.9431,0,2); // CARRO 3
  469.     AddStaticVehicle(522,2205.7742,-1157.3494,25.3076,271.1021,50,60); // MOTO TPI 1
  470.     AddStaticVehicle(522,2205.8445,-1160.9905,25.3133,271.1053,50,60); // MOTO TPI 2
  471.     AddStaticVehicle(522,2205.9170,-1164.7578,25.3201,271.1031,50,60); // MOTO TPI 3
  472.     AddStaticVehicle(560,-1822.5997,-79.2030,14.8146,89.6448,0,0); // carro 1 tfi
  473.     AddStaticVehicle(560,-1822.6267,-83.5638,14.8266,89.6457,0,0); // carro 2 tfi
  474.     AddStaticVehicle(560,-1822.6512,-87.5659,14.8379,89.6444,0,0); // carro 3 tfi
  475.     AddStaticVehicle(522,-1821.4625,-93.8358,14.6814,95.1366,9,85); // moto TFI 1
  476.     AddStaticVehicle(522,-1821.2418,-96.2906,14.6814,95.1366,9,85); // moto TFI 2
  477.     AddStaticVehicle(522,-1820.9875,-99.1265,14.6940,95.1319,9,85); // moto TFI 3
  478.  
  479.     SetTimer("@pagamento", 60000, true);
  480.  
  481.     return 1;
  482. }
  483.  
  484. public OnPlayerRequestClass(playerid, classid)
  485. {
  486.     InterpolateCameraPos(playerid, -2328.572021, 1456.048095, 141.509216, -2928.397460, 1388.436035, 164.589508, 15000);
  487.     InterpolateCameraLookAt(playerid, -2332.968994, 1457.633422, 139.733627, -2924.312500, 1390.837646, 162.994110, 15000);
  488.     return 1;
  489. }
  490.  
  491. public OnPlayerConnect(playerid)
  492. {
  493.  
  494.     SendClientMessage(playerid, -1,"Seja bem vindo a{FF0000} Nome do seu servidor{FFFFFF} aqui você encontra diversão !");
  495.     SendClientMessage(playerid, -1,"Não use nenhum tipo de hack em nosso servidor , administração está atenta.");
  496.     SendClientMessage(playerid, -1,"Não fazemos apologia a briga de torcidas apenas jogamos por diversão {FF0000}#PAZNOSESTADIOS");
  497.  
  498.     PlayAudioStreamForPlayer(playerid, "https://dl.dropboxusercontent.com/s/beiaiyk7gwu8co8/DJ%20Cleber%20mix%20feat%20%20Edy%20Lemond%20-%20Copia%20Ai%20da%20gente%20%20%28OS%20ENVOLVIDOS%202012%29.mp3", X, Y, Z, 100.0, 1);
  499.  
  500.     straliotiid[playerid] = SetTimerEx("StraliotiTag", 5000, true, "d", playerid);
  501.  
  502.     new arquivoadmin[34];
  503.     format(arquivoadmin, sizeof(arquivoadmin), "Admins/%s.ini", PlayerNome(playerid));
  504.  
  505.     new arquivoadmin2[34];
  506.     format(arquivoadmin2, sizeof(arquivoadmin2), "Presidentes/%s.ini", PlayerNome(playerid));
  507.  
  508.     new arquivoadmin3[34];
  509.     format(arquivoadmin3, sizeof(arquivoadmin3), "Orgs/%s.ini", PlayerNome(playerid));
  510.  
  511.     new arquivoadmin4[34];
  512.     format(arquivoadmin4, sizeof(arquivoadmin4), "Puxs/%s.ini", PlayerNome(playerid));
  513.  
  514.     new arquivoadmin5[34];
  515.     format(arquivoadmin5, sizeof(arquivoadmin5), "PMs/%s.ini", PlayerNome(playerid));
  516.  
  517.     new arquivoadmin6[34];
  518.     format(arquivoadmin6, sizeof(arquivoadmin6), "Traficantes/%s.ini", PlayerNome(playerid));
  519.  
  520.     new arquivoadmin7[34];
  521.     format(arquivoadmin7, sizeof(arquivoadmin7), "VPresidente/%s.ini", PlayerNome(playerid));
  522.  
  523.     new arquivoadmin8[34];
  524.     format(arquivoadmin8, sizeof(arquivoadmin8), "Reporteres/%s.ini", PlayerNome(playerid));
  525.  
  526.     new arquivoadmin9[34];
  527.     format(arquivoadmin9, sizeof(arquivoadmin9), "Helpers/%s.ini", PlayerNome(playerid));
  528.  
  529.     new arquivoadmin10[34];
  530.     format(arquivoadmin10, sizeof(arquivoadmin10), "Bateria/%s.ini", PlayerNome(playerid));
  531.  
  532.     SelectTextDraw(playerid, 0x00EEEEFF);
  533.     TextDrawShowForPlayer(playerid, Registro[0]);
  534.     TextDrawShowForPlayer(playerid, Registro[1]);
  535.     TextDrawShowForPlayer(playerid, Registro[2]);
  536.     TextDrawShowForPlayer(playerid, Registro[3]);
  537.     TextDrawShowForPlayer(playerid, Registro[4]);
  538.     TextDrawShowForPlayer(playerid, Registro[5]);
  539.     TextDrawShowForPlayer(playerid, Registro[6]);
  540.     TextDrawShowForPlayer(playerid, Registro[7]);
  541.     TextDrawShowForPlayer(playerid, Registro[8]);
  542.     TextDrawShowForPlayer(playerid, Registro[9]);
  543.     TextDrawShowForPlayer(playerid, Registro[10]);
  544.     TextDrawShowForPlayer(playerid, Registro[11]);
  545.     TextDrawShowForPlayer(playerid, Registro[12]);
  546.     TextDrawShowForPlayer(playerid, Registro[13]);
  547.     TextDrawShowForPlayer(playerid, Registro[14]);
  548.     TextDrawShowForPlayer(playerid, Registro[15]);
  549.     TextDrawShowForPlayer(playerid, Registro[16]);
  550.     TextDrawShowForPlayer(playerid, Registro[17]);
  551.     TextDrawShowForPlayer(playerid, Registro[18]);
  552.  
  553.     TextDrawShowForPlayer(playerid, Text:Textdraw19);
  554.     TextDrawShowForPlayer(playerid, Text:Textdraw20);
  555.     TextDrawShowForPlayer(playerid, Text:Textdraw21);
  556.     TextDrawShowForPlayer(playerid, Text:Textdraw22);
  557.     TextDrawShowForPlayer(playerid, Text:Textdraw23);
  558.  
  559.     Stralioti[playerid][LerPM] = false;
  560.     Stralioti[playerid][BlockPM] = false;
  561.     Stralioti[playerid][pTorcidas] = 0;
  562.     IDHELPER[playerid] = 0;
  563.     gPlayerUsingLoopingAnim[playerid] = 0;
  564.  
  565.     new string[80];
  566.     format(string, sizeof(string), "/vips/%s.ini", PlayerNome(playerid));
  567.     if(DOF2_FileExists(string))
  568.     {
  569.         Vip[playerid] = DOF2_GetInt(string,"VipExpira");
  570.         if(gettime() > Vip[playerid])
  571.         {
  572.             DOF2_RemoveFile(string);
  573.             Vip[playerid] = 0;
  574.             SendClientMessage(playerid, COR_ERRO, "Seu vip expirou!");
  575.         }
  576.         else
  577.         {
  578.             format(string, sizeof(string), "Seu vip expira em %s.", convertNumber(Vip[playerid]-gettime()));
  579.             SendClientMessage(playerid, COR_ERRO, string);
  580.         }
  581.     }
  582.     return 1;
  583. }
  584.  
  585. public OnPlayerDeath(playerid, killerid, reason)
  586. {
  587.     if(gPlayerUsingLoopingAnim[playerid])
  588.     {
  589.         gPlayerUsingLoopingAnim[playerid] = 0;
  590.         TextDrawHideForPlayer(playerid,txtAnimHelper);
  591.     }
  592.  
  593.     if(Acusado[playerid] == true)
  594.     {
  595.         format(stralioti, sizeof(stralioti), "O Policial %s prendeu o %s", PlayerNome(playerid), PlayerNome(Id));
  596.         SendClientMessageToAll(COR_KICK, stralioti);
  597.         SetPlayerPos(playerid, 264.9138,77.6319,1001.0391);
  598.     }
  599.     return 1;
  600. }
  601.  
  602. public OnPlayerDisconnect(playerid, reason)
  603. {
  604.     new arquivoadmin[34];
  605.     format(arquivoadmin, sizeof(arquivoadmin), "Admins/%s.ini", PlayerNome(playerid));
  606.     if (!DOF2_FileExists(arquivoadmin)) {
  607.         DOF2_CreateFile(arquivoadmin);
  608.  
  609.         DOF2_SetInt(arquivoadmin, "Level", Stralioti[playerid][pAdministrador]);
  610.         DOF2_SaveFile();
  611.     }
  612.     else {
  613.         DOF2_SetInt(arquivoadmin, "Level", Stralioti[playerid][pAdministrador]);
  614.         DOF2_SaveFile();
  615.     }
  616.  
  617.     new arquivoadmin2[34];
  618.     format(arquivoadmin2, sizeof(arquivoadmin2), "Presidentes/%s.ini", PlayerNome(playerid));
  619.     if (!DOF2_FileExists(arquivoadmin2)) {
  620.         DOF2_CreateFile(arquivoadmin2);
  621.  
  622.         DOF2_SetInt(arquivoadmin2, "Level", Stralioti[playerid][pPresidente]);
  623.         DOF2_SaveFile();
  624.     }
  625.     else {
  626.         DOF2_SetInt(arquivoadmin2, "Level", Stralioti[playerid][pPresidente]);
  627.         DOF2_SaveFile();
  628.     }
  629.  
  630.     new arquivoadmin3[34];
  631.     format(arquivoadmin3, sizeof(arquivoadmin3), "Orgs/%s.ini", PlayerNome(playerid));
  632.     if (!DOF2_FileExists(arquivoadmin3)) {
  633.         DOF2_CreateFile(arquivoadmin3);
  634.  
  635.         DOF2_SetInt(arquivoadmin3, "Level", Stralioti[playerid][pOrg]);
  636.         DOF2_SaveFile();
  637.     }
  638.     else {
  639.         DOF2_SetInt(arquivoadmin3, "Level", Stralioti[playerid][pOrg]);
  640.         DOF2_SaveFile();
  641.     }
  642.  
  643.     new arquivoadmin4[34];
  644.     format(arquivoadmin4, sizeof(arquivoadmin4), "Puxs/%s.ini", PlayerNome(playerid));
  645.     if (!DOF2_FileExists(arquivoadmin4)) {
  646.         DOF2_CreateFile(arquivoadmin4);
  647.  
  648.         DOF2_SetInt(arquivoadmin4, "Level", Stralioti[playerid][pPux]);
  649.         DOF2_SaveFile();
  650.     }
  651.     else {
  652.         DOF2_SetInt(arquivoadmin4, "Level", Stralioti[playerid][pPux]);
  653.         DOF2_SaveFile();
  654.     }
  655.  
  656.     new arquivoadmin5[34];
  657.     format(arquivoadmin5, sizeof(arquivoadmin3), "PMs/%s.ini", PlayerNome(playerid));
  658.     if (!DOF2_FileExists(arquivoadmin5)) {
  659.         DOF2_CreateFile(arquivoadmin5);
  660.  
  661.         DOF2_SetInt(arquivoadmin5, "Level", Stralioti[playerid][pPM]);
  662.         DOF2_SaveFile();
  663.     }
  664.     else {
  665.         DOF2_SetInt(arquivoadmin5, "Level", Stralioti[playerid][pPM]);
  666.         DOF2_SaveFile();
  667.     }
  668.  
  669.     new arquivoadmin6[34];
  670.     format(arquivoadmin6, sizeof(arquivoadmin6), "Traficantes/%s.ini", PlayerNome(playerid));
  671.     if (!DOF2_FileExists(arquivoadmin6)) {
  672.         DOF2_CreateFile(arquivoadmin6);
  673.  
  674.         DOF2_SetInt(arquivoadmin6, "Level", Stralioti[playerid][pTrafico]);
  675.         DOF2_SaveFile();
  676.     }
  677.     else {
  678.         DOF2_SetInt(arquivoadmin6, "Level", Stralioti[playerid][pTrafico]);
  679.         DOF2_SaveFile();
  680.     }
  681.  
  682.     new arquivoadmin7[34];
  683.     format(arquivoadmin7, sizeof(arquivoadmin7), "VPresidente/%s.ini", PlayerNome(playerid));
  684.     if (!DOF2_FileExists(arquivoadmin7)) {
  685.         DOF2_CreateFile(arquivoadmin7);
  686.  
  687.         DOF2_SetInt(arquivoadmin7, "Level", Stralioti[playerid][pVPresidente]);
  688.         DOF2_SaveFile();
  689.     }
  690.     else {
  691.         DOF2_SetInt(arquivoadmin7, "Level", Stralioti[playerid][pVPresidente]);
  692.         DOF2_SaveFile();
  693.     }
  694.  
  695.     new arquivoadmin8[34];
  696.     format(arquivoadmin8, sizeof(arquivoadmin8), "Reporteres/%s.ini", PlayerNome(playerid));
  697.     if (!DOF2_FileExists(arquivoadmin8)) {
  698.         DOF2_CreateFile(arquivoadmin8);
  699.  
  700.         DOF2_SetInt(arquivoadmin8, "Level", Stralioti[playerid][pReporter]);
  701.         DOF2_SaveFile();
  702.     }
  703.     else {
  704.         DOF2_SetInt(arquivoadmin8, "Level", Stralioti[playerid][pReporter]);
  705.         DOF2_SaveFile();
  706.     }
  707.  
  708.     new arquivoadmin9[34];
  709.     format(arquivoadmin9, sizeof(arquivoadmin9), "Helpers/%s.ini", PlayerNome(playerid));
  710.     if (!DOF2_FileExists(arquivoadmin9)) {
  711.         DOF2_CreateFile(arquivoadmin9);
  712.  
  713.         DOF2_SetInt(arquivoadmin9, "Level", Stralioti[playerid][pHelper]);
  714.         DOF2_SaveFile();
  715.     }
  716.     else {
  717.         DOF2_SetInt(arquivoadmin9, "Level", Stralioti[playerid][pHelper]);
  718.         DOF2_SaveFile();
  719.     }
  720.  
  721.     new arquivoadmin10[34];
  722.     format(arquivoadmin10, sizeof(arquivoadmin10), "Bateria/%s.ini", PlayerNome(playerid));
  723.     if (!DOF2_FileExists(arquivoadmin10)) {
  724.         DOF2_CreateFile(arquivoadmin10);
  725.  
  726.         DOF2_SetInt(arquivoadmin10, "Level", Stralioti[playerid][pBtr]);
  727.         DOF2_SaveFile();
  728.     }
  729.     else {
  730.         DOF2_SetInt(arquivoadmin10, "Level", Stralioti[playerid][pBtr]);
  731.         DOF2_SaveFile();
  732.     }
  733.  
  734.     Stralioti[playerid][LerPM] = false;
  735.     Stralioti[playerid][BlockPM] = false;
  736.     Stralioti[playerid][pTorcidas] = 0;
  737.     IDHELPER[playerid] = 0;
  738.     new Torcida = Stralioti[playerid][pTorcidas];
  739.     NumeroPlayers[Torcida - 1]--;
  740.     if(playerid == HighestID)
  741.     {
  742.  
  743.  
  744.         new highID=0;
  745.         for(new x=0; x < MAX_PLAYERS; x++)
  746.         {
  747.  
  748.  
  749.             if(IsPlayerConnected(x))
  750.             {
  751.  
  752.  
  753.                 if(x>highID) {
  754.                     highID = x;
  755.                 }
  756.             }
  757.         }
  758.         HighestID = highID;
  759.     }
  760.  
  761.     SavePlayer(playerid);
  762.     return 1;
  763. }
  764.  
  765. public OnPlayerClickTextDraw(playerid, Text:clickedid)
  766. {
  767.     GetPlayerName(playerid, Nome, sizeof(Nome));
  768.     format(Arquivo, sizeof(Arquivo), "Registros/%s.ini", Nome);
  769.     GetPlayerIp(playerid, IP, sizeof(IP));
  770.  
  771.     if(clickedid == Registro[5] )
  772.     {
  773.  
  774.  
  775.  
  776.  
  777.  
  778.         if(DOF2_FileExists(Arquivo))
  779.         {
  780.  
  781.  
  782.  
  783.  
  784.  
  785.             SendClientMessage(playerid, COR_AVISO, "| AVISO | Atenção Você ja tem uma Conta, Clique em Logar para Logar.");
  786.         }
  787.         else
  788.         {
  789.  
  790.  
  791.  
  792.  
  793.  
  794.             format(String, sizeof(String), "{F8F8FF}Bem Vindo ao Servidor {FF4040}%s{F8F8FF}\n\nVocê ainda nao tem uma Conta Registrada\n\nDigite Digite uma Senha para se Registrar\n\nStatus: {FF4040}N/A Registrado.\n\n{F8F8FF}IP:{FF4040}%s", Nome, IP);
  795.             ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_PASSWORD, "-- REGISTRANDO --", String, "Registrar", "Cancelar");
  796.         }
  797.     }
  798.     if(clickedid == Registro[6])
  799.     {
  800.  
  801.  
  802.  
  803.  
  804.  
  805.         if(DOF2_FileExists(Arquivo))
  806.         {
  807.  
  808.  
  809.  
  810.  
  811.  
  812.             format(String, sizeof(String), "{F8F8FF}Bem Vindo ao Servidor {FF4040}%s{F8F8FF}\n\nVocê ja tem uma Conta Registrada\n\nDigite sua senha para Logar\n\nStatus:{FF4040}Registrado.\n\n{F8F8FF}IP:{FF4040}%s", Nome, IP);
  813.             ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "-- LOGANDO --", String, "Logar", "Cancelar");
  814.         }
  815.         else
  816.         {
  817.  
  818.  
  819.  
  820.  
  821.  
  822.             SendClientMessage(playerid, COR_AVISO, "| AVISO | Atenção Você não tem uma Conta, Clique em Registrar para Registrar.");
  823.         }
  824.     }
  825.     if(clickedid == Registro[7])
  826.     {
  827.  
  828.  
  829.  
  830.  
  831.  
  832.         SendClientMessage(playerid, COR_AVISO, "| AVISO | INFO.");
  833.     }
  834.     if(clickedid == Registro[8])
  835.     {
  836.  
  837.  
  838.  
  839.  
  840.  
  841.         format(String, sizeof(String), "| INFO | O Jogador(a) %s Saiu do Servidor", Nome);
  842.         SendClientMessageToAll(COR_AZUL_ADMIN, String);
  843.     }
  844.     return 1;
  845. }
  846.  
  847. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  848. {
  849.     return 1;
  850. }
  851.  
  852. public OnPlayerSpawn(playerid)
  853. {
  854.     SetPlayerSkin(playerid, Skin[playerid]);
  855.     TextDrawHideForPlayer(playerid, Registro[0]);
  856.     TextDrawHideForPlayer(playerid, Registro[1]);
  857.     TextDrawHideForPlayer(playerid, Registro[2]);
  858.     TextDrawHideForPlayer(playerid, Registro[3]);
  859.     TextDrawHideForPlayer(playerid, Registro[4]);
  860.     TextDrawHideForPlayer(playerid, Registro[5]);
  861.     TextDrawHideForPlayer(playerid, Registro[6]);
  862.     TextDrawHideForPlayer(playerid, Registro[7]);
  863.     TextDrawHideForPlayer(playerid, Registro[8]);
  864.     TextDrawHideForPlayer(playerid, Registro[9]);
  865.     TextDrawHideForPlayer(playerid, Registro[10]);
  866.     TextDrawHideForPlayer(playerid, Registro[11]);
  867.     TextDrawHideForPlayer(playerid, Registro[12]);
  868.     TextDrawHideForPlayer(playerid, Registro[13]);
  869.     TextDrawHideForPlayer(playerid, Registro[14]);
  870.     TextDrawHideForPlayer(playerid, Registro[15]);
  871.     TextDrawHideForPlayer(playerid, Registro[16]);
  872.     TextDrawHideForPlayer(playerid, Registro[17]);
  873.     TextDrawHideForPlayer(playerid, Registro[18]);
  874.  
  875.     if(Vip[playerid] > 0)
  876.     {
  877.         if(gettime() > Vip[playerid])
  878.         {
  879.             new string[40];
  880.             format(string, sizeof(string), "/vips/%s.ini", PlayerNome(playerid));
  881.             DOF2_RemoveFile(string);
  882.             Vip[playerid] = 0;
  883.             SendClientMessage(playerid, 0xF6FF00AA, "* Seu vip expirou!");
  884.         }
  885.         else
  886.         {
  887.             SetPlayerArmour(playerid, 100);
  888.             SetPlayerHealth(playerid, 100);
  889.         }
  890.     }
  891.  
  892.     new Torcida = Stralioti[playerid][pTorcidas];
  893.     NumeroPlayers[Torcida - 1]++;
  894.     //--------------------------------------------//
  895.     if(Stralioti[playerid][pTorcidas] == 1)
  896.     {
  897.  
  898.  
  899.         TogglePlayerControllable(playerid, 1);
  900.         SetPlayerPos(playerid,-2023.5206, 156.3955, 28.8359);
  901.         SetPlayerFacingAngle(playerid, 139.8051);
  902.         SetPlayerInterior(playerid, 0);
  903.         SetPlayerColor(playerid, COR_TGT);
  904.         SetPlayerSkin(playerid, 101);
  905.     }
  906.     //TGT
  907.     if(Stralioti[playerid][pTorcidas] == 2)
  908.     {
  909.  
  910.  
  911.         TogglePlayerControllable(playerid, 1);
  912.         SetPlayerPos(playerid,-2023.5206, 156.3955, 28.8359);
  913.         SetPlayerFacingAngle(playerid, 139.8051);
  914.         SetPlayerInterior(playerid, 0);
  915.         SetPlayerColor(playerid, COR_TOIC);
  916.         SetPlayerSkin(playerid, 0);
  917.     }
  918.     //TOIC
  919.     if(Stralioti[playerid][pTorcidas] == 3)
  920.     {
  921.  
  922.  
  923.         TogglePlayerControllable(playerid, 1);
  924.         SetPlayerPos(playerid,2798.7351,1256.2622,11.0299);
  925.         SetPlayerFacingAngle(playerid, 139.8051);
  926.         SetPlayerInterior(playerid, 0);
  927.         SetPlayerColor(playerid, COR_TOIC);
  928.         SetPlayerSkin(playerid, 0);
  929.     }
  930.     //MCR
  931.     if(Stralioti[playerid][pTorcidas] == 4)
  932.     {
  933.  
  934.  
  935.         TogglePlayerControllable(playerid, 1);
  936.         SetPlayerPos(playerid,2495.1240,-1686.4613,13.5136);
  937.         SetPlayerFacingAngle(playerid, 139.8051);
  938.         SetPlayerInterior(playerid, 0);
  939.         SetPlayerColor(playerid, COR_UPC);
  940.         SetPlayerSkin(playerid, 0);
  941.     }
  942.     //TTI
  943.     if(Stralioti[playerid][pTorcidas] == 5)
  944.     {
  945.  
  946.  
  947.         TogglePlayerControllable(playerid, 1);
  948.         SetPlayerPos(playerid,2216.4272,-1169.1475,25.7266);
  949.         SetPlayerFacingAngle(playerid, 139.8051);
  950.         SetPlayerInterior(playerid, 0);
  951.         SetPlayerColor(playerid, COR_UPC);
  952.         SetPlayerSkin(playerid, 155);
  953.     }
  954.     //TPI
  955.     if(Stralioti[playerid][pTorcidas] == 6)
  956.     {
  957.  
  958.  
  959.         TogglePlayerControllable(playerid, 1);
  960.         SetPlayerPos(playerid,-1831.1797,-42.9260,15.1094);
  961.         SetPlayerFacingAngle(playerid, 139.8051);
  962.         SetPlayerInterior(playerid, 0);
  963.         SetPlayerColor(playerid, COR_PCA);
  964.         SetPlayerSkin(playerid, 155);
  965.     }
  966.     //TFI
  967.     if(Stralioti[playerid][pTorcidas] == 7)
  968.     {
  969.  
  970.  
  971.         TogglePlayerControllable(playerid, 1);
  972.         SetPlayerPos(playerid,2090.7610,2224.0571,11.0234);
  973.         SetPlayerFacingAngle(playerid, 139.8051);
  974.         SetPlayerInterior(playerid, 0);
  975.         SetPlayerColor(playerid, COR_UPC);
  976.         SetPlayerSkin(playerid, 0);
  977.     }
  978.     //TUI
  979.     if(Stralioti[playerid][pTorcidas] == 8)
  980.     {
  981.  
  982.  
  983.         TogglePlayerControllable(playerid, 1);
  984.         SetPlayerPos(playerid,2566.4116,1397.6351,11.0294);
  985.         SetPlayerFacingAngle(playerid, 139.8051);
  986.         SetPlayerInterior(playerid, 0);
  987.         SetPlayerColor(playerid, COR_LDB);
  988.         SetPlayerSkin(playerid, 0);
  989.     }
  990.     //TOC
  991.     if(Stralioti[playerid][pTorcidas] == 10)
  992.     {
  993.  
  994.  
  995.         TogglePlayerControllable(playerid, 1);
  996.         SetPlayerPos(playerid,1679.7507,13.5469,275.7722);
  997.         SetPlayerFacingAngle(playerid, 139.8051);
  998.         SetPlayerInterior(playerid, 0);
  999.         SetPlayerColor(playerid, COR_MVP);
  1000.         SetPlayerSkin(playerid, 0);
  1001.     }
  1002.     //P9
  1003.     if(Stralioti[playerid][pTorcidas] == 11)
  1004.     {
  1005.  
  1006.  
  1007.         TogglePlayerControllable(playerid, 1);
  1008.         SetPlayerPos(playerid,1679.7507,13.5469,275.7722);
  1009.         SetPlayerFacingAngle(playerid, 139.8051);
  1010.         SetPlayerInterior(playerid, 0);
  1011.         SetPlayerColor(playerid, COR_TGT);
  1012.         SetPlayerSkin(playerid, 0);
  1013.     }
  1014.     //GDF
  1015.     if(Stralioti[playerid][pTorcidas] == 12)
  1016.     {
  1017.  
  1018.  
  1019.         TogglePlayerControllable(playerid, 1);
  1020.         SetPlayerPos(playerid,1679.7507,13.5469,275.7722);
  1021.         SetPlayerFacingAngle(playerid, 139.8051);
  1022.         SetPlayerInterior(playerid, 0);
  1023.         SetPlayerColor(playerid, COR_PDA);
  1024.         SetPlayerSkin(playerid, 0);
  1025.     }
  1026.     //CMA
  1027.     if(Stralioti[playerid][pTorcidas] == 13)
  1028.     {
  1029.  
  1030.  
  1031.         TogglePlayerControllable(playerid, 1);
  1032.         SetPlayerPos(playerid,1679.7507,13.5469,275.7722);
  1033.         SetPlayerFacingAngle(playerid, 139.8051);
  1034.         SetPlayerInterior(playerid, 0);
  1035.         SetPlayerColor(playerid, COR_TOIC);
  1036.         SetPlayerSkin(playerid, 0);
  1037.     }
  1038.     //TOB
  1039.     if(Stralioti[playerid][pTorcidas] == 14)
  1040.     {
  1041.  
  1042.  
  1043.         TogglePlayerControllable(playerid, 1);
  1044.         SetPlayerPos(playerid,1679.7507,13.5469,275.7722);
  1045.         SetPlayerFacingAngle(playerid, 139.8051);
  1046.         SetPlayerInterior(playerid, 0);
  1047.         SetPlayerColor(playerid, COR_UPC);
  1048.         SetPlayerSkin(playerid, 0);
  1049.     }
  1050.     //TJS
  1051.     if(Stralioti[playerid][pTorcidas] == 15)
  1052.     {
  1053.  
  1054.  
  1055.         TogglePlayerControllable(playerid, 1);
  1056.         SetPlayerPos(playerid,1679.7507,13.5469,275.7722); //SEM SAVE
  1057.         SetPlayerFacingAngle(playerid, 139.8051);
  1058.         SetPlayerInterior(playerid, 0);
  1059.         SetPlayerColor(playerid, COR_UPC);
  1060.         SetPlayerSkin(playerid, 0);
  1061.     }
  1062.     //TJF
  1063.     return 1;
  1064. }
  1065.  
  1066. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  1067. {
  1068.  
  1069.     if(dialogid == Torcidas)
  1070.     {
  1071.  
  1072.  
  1073.         if(response)
  1074.         {
  1075.  
  1076.  
  1077.             if(listitem == 0)
  1078.             {
  1079.  
  1080.  
  1081.                 ShowPlayerDialog(playerid, SUDESTE, DIALOG_STYLE_LIST, "SUDESTE", "Rio de Janeiro\nSão Paulo\nMinas Gerais", "Escolher", "Sair");
  1082.             }
  1083.             if(listitem == 1)
  1084.             {
  1085.  
  1086.  
  1087.                 ShowPlayerDialog(playerid, SUL, DIALOG_STYLE_LIST, "SUL/CENTRO", "Paraná", "Escolher", "Sair");
  1088.             }
  1089.             if(listitem == 2)
  1090.             {
  1091.  
  1092.  
  1093.                 ShowPlayerDialog(playerid, NORTE, DIALOG_STYLE_LIST, "Norte/Nordeste", "Bahia\nPernambuco\nCeára", "Escolher", "Sair");
  1094.             }
  1095.         }
  1096.     }
  1097.  
  1098.     if(dialogid == SUDESTE)
  1099.     {
  1100.  
  1101.  
  1102.         if(response)
  1103.         {
  1104.  
  1105.  
  1106.             if(listitem == 0)
  1107.             {
  1108.  
  1109.  
  1110.                 ShowPlayerDialog(playerid, RJ, DIALOG_STYLE_LIST, "Rio de Janeiro", "Torcida Jovem Flamengo\nYoung Flu", "Escolher", "Sair");
  1111.             }
  1112.             if(listitem == 1)
  1113.             {
  1114.  
  1115.  
  1116.                 ShowPlayerDialog(playerid, SP, DIALOG_STYLE_LIST, "São Paulo", "Torcida Tricolor Independente\nPavilhão 9\n Gaviões da Fiel", "Escolher", "Sair");
  1117.             }
  1118.             if(listitem == 2)
  1119.             {
  1120.  
  1121.  
  1122.                 ShowPlayerDialog(playerid, MG, DIALOG_STYLE_LIST, "Minas Gerais", "Comando Máfia Azul\nPavilhão Independente", "Escolher", "Sair");
  1123.             }
  1124.         }
  1125.     }
  1126.  
  1127.     if(dialogid == RJ)
  1128.     {
  1129.  
  1130.  
  1131.         if(response)
  1132.         {
  1133.  
  1134.  
  1135.             if(listitem == 0)
  1136.             {
  1137.                 Stralioti[playerid][pTorcidas] = 15;
  1138.                 SetPlayerSkin(playerid, 107);
  1139.  
  1140.                 new dialogrande[1027];
  1141.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Ótimo, agora que você escolheu sua torcida, vamo as regras:\n");
  1142.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"\nAtropelar - Punição: 20 Minutos Preso;\n");
  1143.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar xiter - Punição: Ban Eterno;\n");
  1144.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Agredir aliados - Punição: 1º vez Kick, 2º vez 20 Minutos Preso;\n");
  1145.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Divulgar outros servidores - Punição: Ban Eterno;\n");
  1146.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar 'ESC' em confrontos - Punição: Kick;\n");
  1147.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Ofender ninguém com ato de racismo - Punição: 10 dias banido;\n");
  1148.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar (/kill) em fuga - Punição: 20 Minutos Preso;\n");
  1149.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Não agredir repórteres em trabalho - Punição: 1º vez Kick, 2º vez 20 Minutos Preso;\n");
  1150.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Respeitar administradores - Punição: 1º vez Kick, 2º vez ban 10 dias;\n");
  1151.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"\nAceita as regras?\n");
  1152.                 ShowPlayerDialog(playerid,6, DIALOG_STYLE_MSGBOX, "TORCIDAS - TUTORIAL", dialogrande, "Aceito", "Não");
  1153.             }
  1154.             if(listitem == 1)
  1155.             {
  1156.  
  1157.  
  1158.             }
  1159.             if(listitem == 2)
  1160.             {
  1161.  
  1162.  
  1163.  
  1164.             }
  1165.         }
  1166.     }
  1167.  
  1168.     if(dialogid == SP)
  1169.     {
  1170.  
  1171.  
  1172.         if(response)
  1173.         {
  1174.  
  1175.  
  1176.             if(listitem == 0)
  1177.             {
  1178.                 Stralioti[playerid][pTorcidas] = 4;
  1179.                 SetPlayerSkin(playerid, 0);
  1180.  
  1181.                 new dialogrande[1027];
  1182.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Ótimo, agora que você escolheu sua torcida, vamo as regras:\n");
  1183.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"\nAtropelar - Punição: 20 Minutos Preso;\n");
  1184.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar xiter - Punição: Ban Eterno;\n");
  1185.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Agredir aliados - Punição: 1º vez Kick, 2º vez 20 Minutos Preso;\n");
  1186.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Divulgar outros servidores - Punição: Ban Eterno;\n");
  1187.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar 'ESC' em confrontos - Punição: Kick;\n");
  1188.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Ofender ninguém com ato de racismo - Punição: 10 dias banido;\n");
  1189.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar (/kill) em fuga - Punição: 20 Minutos Preso;\n");
  1190.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Não agredir repórteres em trabalho - Punição: 1º vez Kick, 2º vez 20 Minutos Preso;\n");
  1191.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Respeitar administradores - Punição: 1º vez Kick, 2º vez ban 10 dias;\n");
  1192.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"\nAceita as regras?\n");
  1193.                 ShowPlayerDialog(playerid,6, DIALOG_STYLE_MSGBOX, " TORCIDAS - TUTORIAL", dialogrande, "Aceito", "Não");
  1194.             }
  1195.             if(listitem == 1)
  1196.             {
  1197.                 Stralioti[playerid][pTorcidas] = 9;
  1198.                 SetPlayerSkin(playerid, 0);
  1199.  
  1200.                 new dialogrande[1027];
  1201.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Ótimo, agora que você escolheu sua torcida, vamo as regras:\n");
  1202.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"\nAtropelar - Punição: 20 Minutos Preso;\n");
  1203.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar xiter - Punição: Ban Eterno;\n");
  1204.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Agredir aliados - Punição: 1º vez Kick, 2º vez 20 Minutos Preso;\n");
  1205.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Divulgar outros servidores - Punição: Ban Eterno;\n");
  1206.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar 'ESC' em confrontos - Punição: Kick;\n");
  1207.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Ofender ninguém com ato de racismo - Punição: 10 dias banido;\n");
  1208.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar (/kill) em fuga - Punição: 20 Minutos Preso;\n");
  1209.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Não agredir repórteres em trabalho - Punição: 1º vez Kick, 2º vez 20 Minutos Preso;\n");
  1210.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Respeitar administradores - Punição: 1º vez Kick, 2º vez ban 10 dias;\n");
  1211.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"\nAceita as regras?\n");
  1212.                 ShowPlayerDialog(playerid,6, DIALOG_STYLE_MSGBOX, " TORCIDAS - TUTORIAL", dialogrande, "Aceito", "Não");
  1213.             }
  1214.             if(listitem == 2)
  1215.             {
  1216.  
  1217.             }
  1218.         }
  1219.     }
  1220.  
  1221.     if(dialogid == MG)
  1222.     {
  1223.  
  1224.  
  1225.         if(response)
  1226.         {
  1227.  
  1228.  
  1229.             if(listitem == 0)
  1230.             {
  1231.                 Stralioti[playerid][pTorcidas] = 12;
  1232.                 SetPlayerSkin(playerid, 155);
  1233.  
  1234.                 new dialogrande[1027];
  1235.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Ótimo, agora que você escolheu sua torcida, vamo as regras:\n");
  1236.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"\nAtropelar - Punição: 20 Minutos Preso;\n");
  1237.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar xiter - Punição: Ban Eterno;\n");
  1238.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Agredir aliados - Punição: 1º vez Kick, 2º vez 20 Minutos Preso;\n");
  1239.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Divulgar outros servidores - Punição: Ban Eterno;\n");
  1240.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar 'ESC' em confrontos - Punição: Kick;\n");
  1241.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Ofender ninguém com ato de racismo - Punição: 10 dias banido;\n");
  1242.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar (/kill) em fuga - Punição: 20 Minutos Preso;\n");
  1243.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Não agredir repórteres em trabalho - Punição: 1º vez Kick, 2º vez 20 Minutos Preso;\n");
  1244.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Respeitar administradores - Punição: 1º vez Kick, 2º vez ban 10 dias;\n");
  1245.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"\nAceita as regras?\n");
  1246.                 ShowPlayerDialog(playerid,6, DIALOG_STYLE_MSGBOX, " TORCIDAS - TUTORIAL", dialogrande, "Aceito", "Não");
  1247.                 //CMA
  1248.             }
  1249.             if(listitem == 1)
  1250.             {
  1251.                 Stralioti[playerid][pTorcidas] = 5;
  1252.                 SetPlayerSkin(playerid, 155);
  1253.  
  1254.                 new dialogrande[1027];
  1255.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Ótimo, agora que você escolheu sua torcida, vamo as regras:\n");
  1256.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"\nAtropelar - Punição: 20 Minutos Preso;\n");
  1257.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar xiter - Punição: Ban Eterno;\n");
  1258.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Agredir aliados - Punição: 1º vez Kick, 2º vez 20 Minutos Preso;\n");
  1259.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Divulgar outros servidores - Punição: Ban Eterno;\n");
  1260.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar 'ESC' em confrontos - Punição: Kick;\n");
  1261.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Ofender ninguém com ato de racismo - Punição: 10 dias banido;\n");
  1262.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar (/kill) em fuga - Punição: 20 Minutos Preso;\n");
  1263.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Não agredir repórteres em trabalho - Punição: 1º vez Kick, 2º vez 20 Minutos Preso;\n");
  1264.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Respeitar administradores - Punição: 1º vez Kick, 2º vez ban 10 dias;\n");
  1265.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"\nAceita as regras?\n");
  1266.                 ShowPlayerDialog(playerid,6, DIALOG_STYLE_MSGBOX, " TORCIDAS - TUTORIAL", dialogrande, "Aceito", "Não");
  1267.                 //TPI
  1268.             }
  1269.             if(listitem == 2)
  1270.             {
  1271.  
  1272.  
  1273.  
  1274.             }
  1275.         }
  1276.     }
  1277.  
  1278.     if(dialogid == SUL)
  1279.     {
  1280.  
  1281.  
  1282.         if(response)
  1283.         {
  1284.  
  1285.  
  1286.             if(listitem == 0)
  1287.             {
  1288.  
  1289.  
  1290.                 ShowPlayerDialog(playerid, PR, DIALOG_STYLE_LIST, "PARANA", "Torcida Galo Terror\nTorcida Fúria Independente", "Escolher", "Sair");
  1291.             }
  1292.             if(listitem == 1)
  1293.             {
  1294.  
  1295.  
  1296.  
  1297.             }
  1298.             if(listitem == 2)
  1299.             {
  1300.  
  1301.  
  1302.  
  1303.             }
  1304.         }
  1305.     }
  1306.  
  1307.     if(dialogid == PR)
  1308.     {
  1309.  
  1310.  
  1311.         if(response)
  1312.         {
  1313.  
  1314.  
  1315.             if(listitem == 0)
  1316.             {
  1317.                 Stralioti[playerid][pTorcidas] = 1;
  1318.                 SetPlayerSkin(playerid, 101);
  1319.  
  1320.                 new dialogrande[1027];
  1321.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Ótimo, agora que você escolheu sua torcida, vamo as regras:\n");
  1322.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"\nAtropelar - Punição: 20 Minutos Preso;\n");
  1323.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar xiter - Punição: Ban Eterno;\n");
  1324.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Agredir aliados - Punição: 1º vez Kick, 2º vez 20 Minutos Preso;\n");
  1325.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Divulgar outros servidores - Punição: Ban Eterno;\n");
  1326.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar 'ESC' em confrontos - Punição: Kick;\n");
  1327.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Ofender ninguém com ato de racismo - Punição: 10 dias banido;\n");
  1328.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar (/kill) em fuga - Punição: 20 Minutos Preso;\n");
  1329.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Não agredir repórteres em trabalho - Punição: 1º vez Kick, 2º vez 20 Minutos Preso;\n");
  1330.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Respeitar administradores - Punição: 1º vez Kick, 2º vez ban 10 dias;\n");
  1331.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"\nAceita as regras?\n");
  1332.                 ShowPlayerDialog(playerid,6, DIALOG_STYLE_MSGBOX, " TORCIDAS - TUTORIAL", dialogrande, "Aceito", "Não");
  1333.             }
  1334.             if(listitem == 1)
  1335.             {
  1336.                 Stralioti[playerid][pTorcidas] = 6;
  1337.                 SetPlayerSkin(playerid, 0);
  1338.  
  1339.                 new dialogrande[1027];
  1340.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Ótimo, agora que você escolheu sua torcida, vamo as regras:\n");
  1341.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"\nAtropelar - Punição: 20 Minutos Preso;\n");
  1342.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar xiter - Punição: Ban Eterno;\n");
  1343.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Agredir aliados - Punição: 1º vez Kick, 2º vez 20 Minutos Preso;\n");
  1344.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Divulgar outros servidores - Punição: Ban Eterno;\n");
  1345.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar 'ESC' em confrontos - Punição: Kick;\n");
  1346.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Ofender ninguém com ato de racismo - Punição: 10 dias banido;\n");
  1347.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar (/kill) em fuga - Punição: 20 Minutos Preso;\n");
  1348.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Não agredir repórteres em trabalho - Punição: 1º vez Kick, 2º vez 20 Minutos Preso;\n");
  1349.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Respeitar administradores - Punição: 1º vez Kick, 2º vez ban 10 dias;\n");
  1350.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"\nAceita as regras?\n");
  1351.                 ShowPlayerDialog(playerid,6, DIALOG_STYLE_MSGBOX, " TORCIDAS - TUTORIAL", dialogrande, "Aceito", "Não");
  1352.             }
  1353.             if(listitem == 2)
  1354.             {
  1355.  
  1356.  
  1357.  
  1358.             }
  1359.         }
  1360.     }
  1361.  
  1362.     if(dialogid == NORTE)
  1363.     {
  1364.  
  1365.  
  1366.         if(response)
  1367.         {
  1368.  
  1369.  
  1370.             if(listitem == 0)
  1371.             {
  1372.  
  1373.  
  1374.                 ShowPlayerDialog(playerid, BAHIA, DIALOG_STYLE_LIST, "Bahia", "Torcida Organizada Bamor\nTorcida Uniformizada Os Imbativeis", "Escolher", "Sair");
  1375.             }
  1376.             if(listitem == 1)
  1377.             {
  1378.  
  1379.  
  1380.                 ShowPlayerDialog(playerid, PE, DIALOG_STYLE_LIST, "Pernambuco", "Torcida Organizada Inferno Coral\nTorcida Organizada Jovem Sport\n", "Escolher", "Sair");
  1381.             }
  1382.             if(listitem == 2)
  1383.             {
  1384.  
  1385.  
  1386.                 ShowPlayerDialog(playerid, CE, DIALOG_STYLE_LIST, "Ceara", "Torcida Organizada Cearamor", "Escolher", "Sair");
  1387.             }
  1388.         }
  1389.     }
  1390.  
  1391.     if(dialogid == BAHIA)
  1392.     {
  1393.  
  1394.  
  1395.         if(response)
  1396.         {
  1397.  
  1398.  
  1399.             if(listitem == 0)
  1400.             {
  1401.  
  1402.                 Stralioti[playerid][pTorcidas] = 13;
  1403.                 SetPlayerSkin(playerid, 101);
  1404.  
  1405.                 new dialogrande[1027];
  1406.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Ótimo, agora que você escolheu sua torcida, vamo as regras:\n");
  1407.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"\nAtropelar - Punição: 20 Minutos Preso;\n");
  1408.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar xiter - Punição: Ban Eterno;\n");
  1409.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Agredir aliados - Punição: 1º vez Kick, 2º vez 20 Minutos Preso;\n");
  1410.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Divulgar outros servidores - Punição: Ban Eterno;\n");
  1411.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar 'ESC' em confrontos - Punição: Kick;\n");
  1412.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Ofender ninguém com ato de racismo - Punição: 10 dias banido;\n");
  1413.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar (/kill) em fuga - Punição: 20 Minutos Preso;\n");
  1414.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Não agredir repórteres em trabalho - Punição: 1º vez Kick, 2º vez 20 Minutos Preso;\n");
  1415.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Respeitar administradores - Punição: 1º vez Kick, 2º vez ban 10 dias;\n");
  1416.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"\nAceita as regras?\n");
  1417.                 ShowPlayerDialog(playerid,6, DIALOG_STYLE_MSGBOX, " TORCIDAS - TUTORIAL", dialogrande, "Aceito", "Não");
  1418.  
  1419.             }
  1420.             if(listitem == 1)
  1421.             {
  1422.                 Stralioti[playerid][pTorcidas] = 7;
  1423.                 SetPlayerSkin(playerid, 101);
  1424.  
  1425.                 new dialogrande[1027];
  1426.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Ótimo, agora que você escolheu sua torcida, vamo as regras:\n");
  1427.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"\nAtropelar - Punição: 20 Minutos Preso;\n");
  1428.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar xiter - Punição: Ban Eterno;\n");
  1429.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Agredir aliados - Punição: 1º vez Kick, 2º vez 20 Minutos Preso;\n");
  1430.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Divulgar outros servidores - Punição: Ban Eterno;\n");
  1431.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar 'ESC' em confrontos - Punição: Kick;\n");
  1432.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Ofender ninguém com ato de racismo - Punição: 10 dias banido;\n");
  1433.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar (/kill) em fuga - Punição: 20 Minutos Preso;\n");
  1434.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Não agredir repórteres em trabalho - Punição: 1º vez Kick, 2º vez 20 Minutos Preso;\n");
  1435.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Respeitar administradores - Punição: 1º vez Kick, 2º vez ban 10 dias;\n");
  1436.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"\nAceita as regras?\n");
  1437.                 ShowPlayerDialog(playerid,6, DIALOG_STYLE_MSGBOX, " TORCIDAS - TUTORIAL", dialogrande, "Aceito", "Não");
  1438.             }
  1439.             if(listitem == 2)
  1440.             {
  1441.  
  1442.  
  1443.  
  1444.             }
  1445.         }
  1446.     }
  1447.  
  1448.     if(dialogid == PE)
  1449.     {
  1450.  
  1451.  
  1452.         if(response)
  1453.         {
  1454.  
  1455.  
  1456.             if(listitem == 0)
  1457.             {
  1458.                 Stralioti[playerid][pTorcidas] = 2;
  1459.                 SetPlayerSkin(playerid, 0);
  1460.  
  1461.                 new dialogrande[1027];
  1462.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Ótimo, agora que você escolheu sua torcida, vamo as regras:\n");
  1463.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"\nAtropelar - Punição: 20 Minutos Preso;\n");
  1464.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar xiter - Punição: Ban Eterno;\n");
  1465.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Agredir aliados - Punição: 1º vez Kick, 2º vez 20 Minutos Preso;\n");
  1466.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Divulgar outros servidores - Punição: Ban Eterno;\n");
  1467.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar 'ESC' em confrontos - Punição: Kick;\n");
  1468.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Ofender ninguém com ato de racismo - Punição: 10 dias banido;\n");
  1469.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar (/kill) em fuga - Punição: 20 Minutos Preso;\n");
  1470.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Não agredir repórteres em trabalho - Punição: 1º vez Kick, 2º vez 20 Minutos Preso;\n");
  1471.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Respeitar administradores - Punição: 1º vez Kick, 2º vez ban 10 dias;\n");
  1472.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"\nAceita as regras?\n");
  1473.                 ShowPlayerDialog(playerid,6, DIALOG_STYLE_MSGBOX, " TORCIDAS - TUTORIAL", dialogrande, "Aceito", "Não");
  1474.             }
  1475.             if(listitem == 1)
  1476.             {
  1477.  
  1478.  
  1479.                 Stralioti[playerid][pTorcidas] = 14;
  1480.                 SetPlayerSkin(playerid, 0);
  1481.  
  1482.                 new dialogrande[1027];
  1483.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Ótimo, agora que você escolheu sua torcida, vamo as regras:\n");
  1484.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"\nAtropelar - Punição: 20 Minutos Preso;\n");
  1485.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar xiter - Punição: Ban Eterno;\n");
  1486.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Agredir aliados - Punição: 1º vez Kick, 2º vez 20 Minutos Preso;\n");
  1487.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Divulgar outros servidores - Punição: Ban Eterno;\n");
  1488.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar 'ESC' em confrontos - Punição: Kick;\n");
  1489.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Ofender ninguém com ato de racismo - Punição: 10 dias banido;\n");
  1490.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar (/kill) em fuga - Punição: 20 Minutos Preso;\n");
  1491.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Não agredir repórteres em trabalho - Punição: 1º vez Kick, 2º vez 20 Minutos Preso;\n");
  1492.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Respeitar administradores - Punição: 1º vez Kick, 2º vez ban 10 dias;\n");
  1493.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"\nAceita as regras?\n");
  1494.                 ShowPlayerDialog(playerid,6, DIALOG_STYLE_MSGBOX, " TORCIDAS - TUTORIAL", dialogrande, "Aceito", "Não");
  1495.             }
  1496.             if(listitem == 2)
  1497.             {
  1498.  
  1499.  
  1500.  
  1501.             }
  1502.         }
  1503.     }
  1504.  
  1505.     if(dialogid == CE)
  1506.     {
  1507.  
  1508.  
  1509.         if(response)
  1510.         {
  1511.  
  1512.  
  1513.             if(listitem == 0)
  1514.             {
  1515.                 Stralioti[playerid][pTorcidas] = 8;
  1516.                 SetPlayerSkin(playerid, 0);
  1517.  
  1518.                 new dialogrande[1027];
  1519.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Ótimo, agora que você escolheu sua torcida, vamo as regras:\n");
  1520.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"\nAtropelar - Punição: 20 Minutos Preso;\n");
  1521.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar xiter - Punição: Ban Eterno;\n");
  1522.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Agredir aliados - Punição: 1º vez Kick, 2º vez 20 Minutos Preso;\n");
  1523.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Divulgar outros servidores - Punição: Ban Eterno;\n");
  1524.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar 'ESC' em confrontos - Punição: Kick;\n");
  1525.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Ofender ninguém com ato de racismo - Punição: 10 dias banido;\n");
  1526.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Usar (/kill) em fuga - Punição: 20 Minutos Preso;\n");
  1527.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Não agredir repórteres em trabalho - Punição: 1º vez Kick, 2º vez 20 Minutos Preso;\n");
  1528.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"Respeitar administradores - Punição: 1º vez Kick, 2º vez ban 10 dias;\n");
  1529.                 format(dialogrande, sizeof(dialogrande),"%s%s",dialogrande,"\nAceita as regras?\n");
  1530.                 ShowPlayerDialog(playerid,6, DIALOG_STYLE_MSGBOX, " TORCIDAS - TUTORIAL", dialogrande, "Aceito", "Não");
  1531.             }
  1532.             if(listitem == 1)
  1533.             {
  1534.  
  1535.  
  1536.  
  1537.             }
  1538.             if(listitem == 2)
  1539.             {
  1540.  
  1541.  
  1542.  
  1543.             }
  1544.         }
  1545.     }
  1546.  
  1547.  
  1548.     if(dialogid == MUDARLUTA)
  1549.     {
  1550.  
  1551.  
  1552.  
  1553.         if(response)
  1554.         {
  1555.  
  1556.  
  1557.  
  1558.             if(listitem == 0)
  1559.             {
  1560.  
  1561.  
  1562.  
  1563.                 SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
  1564.             }
  1565.             if(listitem == 1)
  1566.             {
  1567.  
  1568.  
  1569.  
  1570.                 SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);
  1571.             }
  1572.             if(listitem == 2)
  1573.             {
  1574.  
  1575.  
  1576.  
  1577.                 SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW);
  1578.             }
  1579.         }
  1580.     }
  1581.  
  1582.     if(dialogid == 888)
  1583.     {
  1584.  
  1585.  
  1586.  
  1587.         if(response == 0)
  1588.         {
  1589.  
  1590.  
  1591.  
  1592.             SendClientMessage(IDHELPER[playerid], COR_HELPER, "O player não reconheceu a sua ajuda!");
  1593.             SendClientMessage(playerid, -1, "Você não reconheceu a ajuda.");
  1594.             IDHELPER[IDHELPER[playerid]] = 0;
  1595.             IDHELPER[playerid] = 0;
  1596.             return 1;
  1597.         }
  1598.         if(response == 1)
  1599.         {
  1600.  
  1601.  
  1602.  
  1603.             SendClientMessage(playerid, -1, "[INFO] Obrigado, caso tenha alguma outra dúvida, mande /duvida que ajudaremos!");
  1604.             SendClientMessage(IDHELPER[playerid], -1, "[INFO] O player reconheceu a sua ajuda!");
  1605.             Stralioti[IDHELPER[playerid]][pHelper] ++;
  1606.             IDHELPER[IDHELPER[playerid]] = 0;
  1607.             IDHELPER[playerid] = 0;
  1608.             return 1;
  1609.         }
  1610.     }
  1611.  
  1612.     if(dialogid == ANUNCIAR)
  1613.     {
  1614.         if(response)
  1615.         {
  1616.             if(listitem == 0)
  1617.             {
  1618.                 format(stralioti, sizeof(stralioti),"%s Chamou outra Torcida para X3 [/PM %d]", PlayerNome(playerid), Id);
  1619.                 SendClientMessageToAll(COR_AMARELO, stralioti);
  1620.             }
  1621.             if(listitem == 1)
  1622.             {
  1623.                 format(stralioti, sizeof(stralioti),"%s Chamou outra Torcida para CF [/PM %d]", PlayerNome(playerid), Id);
  1624.                 SendClientMessageToAll(COR_AMARELO, stralioti);
  1625.             }
  1626.             if(listitem == 2)
  1627.             {
  1628.                 format(stralioti, sizeof(stralioti),"%s Chamou outra Torcida para Treta [/PM %d]", PlayerNome(playerid), Id);
  1629.                 SendClientMessageToAll(COR_AMARELO, stralioti);
  1630.             }
  1631.         }
  1632.     }
  1633.  
  1634.     if(dialogid == ARMAS)
  1635.     {
  1636.         if(response)
  1637.         {
  1638.             if(listitem == 0)
  1639.             {
  1640.                 GivePlayerWeapon(playerid, 1,99999);
  1641.             }
  1642.             if(listitem == 1)
  1643.             {
  1644.                 GivePlayerWeapon(playerid, 2,99999);
  1645.             }
  1646.             if(listitem == 2)
  1647.             {
  1648.  
  1649.                 GivePlayerWeapon(playerid, 46,99999);
  1650.             }
  1651.             if(listitem == 3)
  1652.             {
  1653.                 GivePlayerWeapon(playerid, 29,99999);
  1654.             }
  1655.             if(listitem == 4)
  1656.             {
  1657.                 GivePlayerWeapon(playerid, 4,99999);
  1658.             }
  1659.             if(listitem == 5)
  1660.             {
  1661.                 GivePlayerWeapon(playerid, 8,99999);
  1662.             }
  1663.             if(listitem == 6)
  1664.             {
  1665.                 GivePlayerWeapon(playerid, 24,99999);
  1666.             }
  1667.             if(listitem == 7)
  1668.             {
  1669.                 GivePlayerWeapon(playerid, 25,99999);
  1670.             }
  1671.             if(listitem == 8)
  1672.             {
  1673.                 GivePlayerWeapon(playerid, 27,99999);
  1674.             }
  1675.             if(listitem == 9)
  1676.             {
  1677.                 GivePlayerWeapon(playerid, 34,99999);
  1678.             }
  1679.         }
  1680.     }
  1681.  
  1682.     if(dialogid == VEH)
  1683.     {
  1684.         if(response)
  1685.         {
  1686.             if(listitem == 0)
  1687.             {
  1688.  
  1689.                 GetPlayerPos(playerid, X, Y, Z);
  1690.                 GetPlayerFacingAngle(playerid, Angle);
  1691.                 CreateVehicle(560, X+5, Y, Z+1, Angle, random(100), random(100), -1);
  1692.                 SendClientMessage(playerid, -1,"Você criou um sultan para deleta-lo use /dc ou /dcm");
  1693.             }
  1694.             if(listitem == 1)
  1695.             {
  1696.                 GetPlayerPos(playerid, X, Y, Z);
  1697.                 GetPlayerFacingAngle(playerid, Angle);
  1698.                 CreateVehicle(411, X+5, Y, Z+1, Angle, random(100), random(100), -1);
  1699.                 SendClientMessage(playerid, -1,"Você criou um infernus para deleta-lo use /dc ou /dcm");
  1700.             }
  1701.             if(listitem == 2)
  1702.             {
  1703.                 GetPlayerPos(playerid, X, Y, Z);
  1704.                 GetPlayerFacingAngle(playerid, Angle);
  1705.                 CreateVehicle(522, X+5, Y, Z+1, Angle, random(100), random(100), -1);
  1706.                 SendClientMessage(playerid, -1,"Você criou um nrg-500 para deleta-lo use /dc ou /dcm");
  1707.             }
  1708.             if(listitem == 3)
  1709.             {
  1710.                 GetPlayerPos(playerid, X, Y, Z);
  1711.                 GetPlayerFacingAngle(playerid, Angle);
  1712.                 CreateVehicle(431, X+5, Y, Z+1, Angle, random(100), random(100), -1);
  1713.                 SendClientMessage(playerid, -1,"Você criou um onibus para deleta-lo use /dc ou /dcm");
  1714.             }
  1715.             if(listitem == 4)
  1716.             {
  1717.                 GetPlayerPos(playerid, X, Y, Z);
  1718.                 GetPlayerFacingAngle(playerid, Angle);
  1719.                 CreateVehicle(506, X+5, Y, Z+1, Angle, random(100), random(100), -1);
  1720.                 SendClientMessage(playerid, -1,"Você criou um super-gt para deleta-lo use /dc ou /dcm");
  1721.             }
  1722.         }
  1723.     }
  1724.  
  1725.     if(dialogid == DIALOG_ENQUETE)
  1726.     {
  1727.         if(!response)
  1728.         return SendClientMessage(playerid, COR_ERRO, "Você cancelou a criada da enquete.");
  1729.  
  1730.         SendClientMessageToAll(COR_TEXTO, " ");
  1731.         SendClientMessageToAll(COR_TEXTO, "=============================================================================================");
  1732.         format(SringEnquete,128, "{f6ff00}* O %s %s acaba de abrir uma enquete:", PlayerNome(playerid), PlayerNome(playerid));
  1733.         SendClientMessageToAll(COR_AMARELO, SringEnquete);
  1734.         format(SringEnquete,128, "{f6ff00}* Perguntando: %s", inputtext);
  1735.         SendClientMessageToAll(COR_AMARELO, SringEnquete);
  1736.         SendClientMessageToAll(COR_AMARELO, "Vote /sim ou /nao");
  1737.         SendClientMessageToAll(COR_TEXTO, "=============================================================================================");
  1738.  
  1739.         EnqueteAberta = true;
  1740.         format(NomeEnquete, 128, "%s", inputtext);
  1741.  
  1742.         SendClientMessage(playerid,COR_AMARELO, "[ENQUETE] Caso queira fechar enquete digite /fechar");
  1743.  
  1744.         new string[128];
  1745.         format(string, sizeof(string), "%s criou uma enquete perguntando: %s.", PlayerNome(playerid), inputtext);
  1746.         return true;
  1747.     }
  1748.  
  1749.     if(dialogid == DIALOG_REGISTRO)
  1750.     {
  1751.  
  1752.         if(response)
  1753.         {
  1754.             if(strlen(inputtext) < 5 || strlen(inputtext) > 16 && !strlen(inputtext))
  1755.             {
  1756.                 SendClientMessage(playerid, COR_AVISO,"| AVISO | Atenção a Senha tem que ter no Minimo 5 Caracteres ou no Máximo 16 Caracteres.");
  1757.                 format(String, sizeof(String), "{F8F8FF}Bem Vindo ao Servidor {FF4040}%s{F8F8FF}\n\nVocê ainda nao tem uma Conta Registrada\n\nDigite Digite uma Senha para se Registrar\n\nStatus: {FF4040}N/A Registrado.\n\n{F8F8FF}IP:{FF4040}%s", Nome, IP);
  1758.                 ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_PASSWORD, "-- REGISTRANDO --", String, "Registrar", "Cancelar");
  1759.                 return 1;
  1760.             }
  1761.             GetPlayerName(playerid, Nome, sizeof(Nome));
  1762.             GetPlayerIp(playerid, IP, sizeof(IP));
  1763.             format(Arquivo, sizeof(Arquivo), "Registros/%s.ini", Nome);
  1764.  
  1765.             DOF2_CreateFile(Arquivo);
  1766.             DOF2_SetString(Arquivo, "Senha", inputtext);
  1767.             DOF2_SetInt(Arquivo, "Administrador", 0);
  1768.             DOF2_SetInt(Arquivo, "Level", 0);
  1769.             DOF2_SetInt(Arquivo, "Skin", 98);
  1770.             DOF2_SetInt(Arquivo, "Matou", 0);
  1771.             DOF2_SetInt(Arquivo, "Morreu", 0);
  1772.             DOF2_SetInt(Arquivo, "Dinheiro", 550);
  1773.             DOF2_SaveFile();
  1774.  
  1775.             SendClientMessage(playerid, COR_SUCESSO,"| INFO | Você se Registrou com Sucesso, Agora digite sua Senha para Logar");
  1776.             format(String, sizeof(String), "{F8F8FF}Bem Vindo ao Servidor {FF4040}%s{F8F8FF}\n\nVocê ja tem uma Conta Registrada\n\nDigite sua senha para Logar\n\nStatus:{FF4040}Registrado.\n\n{F8F8FF}IP:{FF4040}%s", Nome, IP);
  1777.             ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "-- LOGANDO --", String, "Logar", "Cancelar");
  1778.             return 1;
  1779.         }
  1780.         else
  1781.         {
  1782.             format(String, sizeof(String), "| INFO | O Jogador(a) %s Foi Kickado do Servidor Motivo: N/A Registrou.", Nome);
  1783.             SendClientMessageToAll(COR_AZUL_ADMIN, String);
  1784.             Kick(playerid);
  1785.         }
  1786.     }
  1787.     if(dialogid == DIALOG_LOGIN)
  1788.     {
  1789.         GetPlayerName(playerid, Nome, sizeof(Nome));
  1790.         GetPlayerIp(playerid, IP, sizeof(IP));
  1791.  
  1792.         if(response)
  1793.         {
  1794.  
  1795.             if(!strlen(inputtext))
  1796.             {
  1797.                 SendClientMessage(playerid, COR_AVISO,"| AVISO | Atenção digite sua Senha para Logar.");
  1798.                 format(String, sizeof(String), "{F8F8FF}Bem Vindo ao Servidor {FF4040}%s{F8F8FF}\n\nVocê ja tem uma Conta Registrada\n\nDigite sua senha para Logar\n\nStatus:{FF4040}Registrado.\n\n{F8F8FF}IP:{FF4040}%s", Nome, IP);
  1799.                 ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "-- LOGANDO --", String, "Logar", "Cancelar");
  1800.                 return 1;
  1801.             }
  1802.             if(!strcmp(inputtext,DOF2_GetString(Arquivo, "Senha"),false))
  1803.             {
  1804.                 Logar(playerid);
  1805.                 return 1;
  1806.             }
  1807.             else
  1808.             {
  1809.  
  1810.                 SendClientMessage(playerid, COR_AVISO,"| AVISO | Senha incorreta digite-a novamente, se errar 3 vezes você sera Kickado.");
  1811.                 format(String, sizeof(String), "{F8F8FF}Bem Vindo ao Servidor {FF4040}%s{F8F8FF}\n\nVocê ja tem uma Conta Registrada\n\nDigite sua senha para Logar\n\nStatus:{FF4040}Registrado.\n\n{F8F8FF}IP:{FF4040}%s", Nome, IP);
  1812.                 ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "-- LOGANDO --", String, "Logar", "Cancelar");
  1813.  
  1814.                 PlayerERRO[playerid]++;
  1815.                 if(PlayerERRO[playerid]==3)
  1816.                 {
  1817.                     format(String, sizeof(String), "| INFO | O Jogador(a) %s Foi Kickado do Servidor Motivo: Limite de Erro.", Nome);
  1818.                     SendClientMessageToAll(COR_AZUL_ADMIN, String);
  1819.                     Kick(playerid);
  1820.                     return 1;
  1821.                 }
  1822.             }
  1823.         }
  1824.         else
  1825.         {
  1826.             format(String, sizeof(String), "| INFO | O Jogador(a) %s Foi Kickado do Servidor Motivo: N/A Registrou.", Nome);
  1827.             SendClientMessageToAll(COR_AZUL_ADMIN, String);
  1828.             Kick(playerid);
  1829.         }
  1830.     }
  1831.     return 1;
  1832. }
  1833.  
  1834. public hora(playerid)
  1835. {
  1836.     new str[128],
  1837.     str2[128],
  1838.     year,
  1839.     month,
  1840.     day,
  1841.     hour,
  1842.     minute,
  1843.     second;
  1844.  
  1845.     getdate(year, month, day);
  1846.     gettime(hour,minute,second);
  1847.     new mes[12];
  1848.  
  1849.     if(month == 1) { mes = "1"; }
  1850.     else if(month == 2) {mes = "2";}
  1851.     else if(month == 3) {mes = "3";}
  1852.     else if(month == 4) {mes = "4";}
  1853.     else if(month == 5) {mes = "5";}
  1854.     else if(month == 6) {mes = "6";}
  1855.     else if(month == 7) {mes = "7";}
  1856.     else if(month == 8) {mes = "8";}
  1857.     else if(month == 9) {mes = "9";}
  1858.     else if(month == 10) {mes = "10";}
  1859.     else if(month == 11) {mes = "11";}
  1860.     else if(month == 12) {mes= "12";}
  1861.     format(str, sizeof(str), "%d/%s/%d", day, mes,year);
  1862.     TextDrawSetString(Text:Textdraw22, str);
  1863.     format(str2, sizeof(str2), "%d:%d:%d", hour, minute, second);
  1864.     TextDrawSetString(Text:Textdraw23, str2);
  1865. }
  1866.  
  1867. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  1868. {
  1869.     if(IsKeyJustDown(KEY_HANDBRAKE,newkeys,oldkeys))
  1870.     {
  1871.         StopLoopingAnim(playerid);
  1872.         TextDrawHideForPlayer(playerid,txtAnimHelper);
  1873.         animation[playerid] = 0;
  1874.     }
  1875.     return 1;
  1876. }
  1877.  
  1878. public OnGameModeExit()
  1879. {
  1880.     DOF2_Exit();
  1881.     return 1;
  1882. }
  1883.  
  1884. SavePlayer(playerid)
  1885. {
  1886.     GetPlayerName(playerid, Nome, sizeof(Nome));
  1887.     format(Arquivo, sizeof(Arquivo), "Registros/%s.ini", Nome);
  1888.  
  1889.     if(DOF2_FileExists(Arquivo))
  1890.     {
  1891.         DOF2_SetInt(Arquivo,"Dinheiro", GetPlayerMoney(playerid));
  1892.         DOF2_SetInt(Arquivo,"Level", Level[playerid]);
  1893.         Skin[playerid] = GetPlayerSkin(playerid);
  1894.         DOF2_SetInt(Arquivo,"Skin", Skin[playerid]);
  1895.         DOF2_SetInt(Arquivo,"Matou", Matou[playerid]);
  1896.         DOF2_SetInt(Arquivo,"Morreu", Morreu[playerid]);
  1897.         DOF2_SaveFile();
  1898.     }
  1899.     return 1;
  1900. }
  1901.  
  1902. Logar(playerid)
  1903. {
  1904.     GetPlayerName(playerid, Nome, sizeof(Nome));
  1905.     format(Arquivo, sizeof(Arquivo), "Registros/%s.ini", Nome);
  1906.  
  1907.     Administrador[playerid] = DOF2_GetInt(Arquivo, "Administrador");
  1908.     Level[playerid] = DOF2_GetInt(Arquivo, "Level");
  1909.     Skin[playerid] = DOF2_GetInt(Arquivo, "Skin");
  1910.     Matou[playerid] = DOF2_GetInt(Arquivo, "Matou");
  1911.     Morreu[playerid] = DOF2_GetInt(Arquivo, "Morreu");
  1912.     GivePlayerMoney(playerid, DOF2_GetInt(Arquivo,"Dinheiro"));
  1913.     CancelSelectTextDraw(playerid);
  1914.     SpawnPlayer(playerid);
  1915.     DOF2_SaveFile();
  1916.  
  1917.     return 1;
  1918. }
  1919.  
  1920. CMD:setadmin(playerid, params[]) {
  1921.     new level, ganhou[MAX_PLAYER_NAME], deu[MAX_PLAYER_NAME];
  1922.     if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Você não é um Administrador Logado Na RCON.");
  1923.     if(sscanf(params, "ud", Id, level)) return SendClientMessage(playerid, -1, "Use /setadmin [Id] [LEVEL]");
  1924.     if (level < 0 || level > 5) return SendClientMessage(playerid, -1, "Level inválido. Use de 1 á 5 .");
  1925.     if(!IsPlayerConnected(Id)) return SendClientMessage(playerid, -1, "Este jogador não está online.");
  1926.     GetPlayerName(Id, ganhou, sizeof(ganhou));
  1927.     GetPlayerName(playerid, deu, sizeof(deu));
  1928.     format(straliotiadmin, sizeof(straliotiadmin), "Você deu admin level %d para o %s", level, ganhou);
  1929.     SendClientMessage(playerid, COR_AZULC, straliotiadmin);
  1930.     format(straliotiadmin, sizeof(straliotiadmin), "O admin %s deu admin level %s para você.", deu, level);
  1931.     SendClientMessage(Id, COR_SALMAO, straliotiadmin);
  1932.     Stralioti[Id][pAdministrador] =  level;
  1933.     return 1;
  1934. }
  1935.  
  1936. CMD:setpres(playerid, params[]) {
  1937.     new level, ganhou[MAX_PLAYER_NAME], deu[MAX_PLAYER_NAME];
  1938.     if(Stralioti[playerid][pAdministrador] <= 4)
  1939.     return SendClientMessage(playerid, COR_VERMELHO, "Você não é um Administrador");
  1940.     if(sscanf(params, "ud", Id, level)) return SendClientMessage(playerid, -1, "Use /setpres [Id] [LEVEL]");
  1941.     if (level < 0 || level > 1) return SendClientMessage(playerid, COR_VERMELHO, "Level inválido. Use de 0 á 1 .");
  1942.     if(!IsPlayerConnected(Id)) return SendClientMessage(playerid, COR_VERMELHO, "Este jogador não está online.");
  1943.     GetPlayerName(Id, ganhou, sizeof(ganhou));
  1944.     GetPlayerName(playerid, deu, sizeof(deu));
  1945.     format(straliotiadmin, sizeof(straliotiadmin), "Você deu presidente level %d para o %s", level, ganhou);
  1946.     SendClientMessage(playerid, COR_AZULC, straliotiadmin);
  1947.     format(straliotiadmin, sizeof(straliotiadmin), "O %s deu presidente level %s para você.", deu, level);
  1948.     SendClientMessage(Id, COR_SALMAO, straliotiadmin);
  1949.     Stralioti[Id][pPresidente] =  level;
  1950.     return 1;
  1951. }
  1952.  
  1953. CMD:setbtr(playerid, params[]) {
  1954.     new level, ganhou[MAX_PLAYER_NAME], deu[MAX_PLAYER_NAME];
  1955.     if(Stralioti[playerid][pAdministrador] <= 4 && Stralioti[playerid][pVPresidente] <= 0 && Stralioti[playerid][pPresidente] <= 0)
  1956.     return SendClientMessage(playerid, -1, "Você não tem permissão");
  1957.     if(sscanf(params, "ud", Id, level)) return SendClientMessage(playerid, COR_VERMELHO, "Use /setbtr [Id] [LEVEL]");
  1958.     if (level < 0 || level > 1) return SendClientMessage(playerid, COR_VERMELHO, "Level inválido. Use de 0 á 1 .");
  1959.     if(!IsPlayerConnected(Id)) return SendClientMessage(playerid, COR_VERMELHO, "Este jogador não está online.");
  1960.     GetPlayerName(Id, ganhou, sizeof(ganhou));
  1961.     GetPlayerName(playerid, deu, sizeof(deu));
  1962.     format(straliotiadmin, sizeof(straliotiadmin), "Você deu bateria level %d para o %s", level, ganhou);
  1963.     SendClientMessage(playerid, COR_AZULC, straliotiadmin);
  1964.     format(straliotiadmin, sizeof(straliotiadmin), "O %s deu bateria level %s para você.", deu, level);
  1965.     SendClientMessage(Id, COR_SALMAO, straliotiadmin);
  1966.     Stralioti[Id][pBtr] =  level;
  1967.     return 1;
  1968. }
  1969.  
  1970. CMD:setvpres(playerid, params[]) {
  1971.     new level, ganhou[MAX_PLAYER_NAME], deu[MAX_PLAYER_NAME];
  1972.     if(Stralioti[playerid][pAdministrador] <= 4 && Stralioti[playerid][pPresidente] <= 0)
  1973.     return SendClientMessage(playerid, COR_VERMELHO, "Você não tem permissão");
  1974.     if(sscanf(params, "ud", Id, level)) return SendClientMessage(playerid, COR_VERMELHO, "Use /setvpres [Id] [LEVEL]");
  1975.     if (level < 0 || level > 1) return SendClientMessage(playerid, COR_VERMELHO, "Level inválido. Use de 0 á 1 .");
  1976.     if(!IsPlayerConnected(Id)) return SendClientMessage(playerid, COR_VERMELHO, "Este jogador não está online.");
  1977.     GetPlayerName(Id, ganhou, sizeof(ganhou));
  1978.     GetPlayerName(playerid, deu, sizeof(deu));
  1979.     format(straliotiadmin, sizeof(straliotiadmin), "Você deu presidente level %d para o %s", level, ganhou);
  1980.     SendClientMessage(playerid, COR_AZULC, straliotiadmin);
  1981.     format(straliotiadmin, sizeof(straliotiadmin), "O admin %s deu presidente level %s para você.", deu, level);
  1982.     SendClientMessage(Id, COR_SALMAO, straliotiadmin);
  1983.     Stralioti[Id][pVPresidente] =  level;
  1984.     return 1;
  1985. }
  1986.  
  1987. CMD:setorg(playerid, params[]) {
  1988.     new level, ganhou[MAX_PLAYER_NAME], deu[MAX_PLAYER_NAME];
  1989.     if(Stralioti[playerid][pAdministrador] <= 4 && Stralioti[playerid][pPresidente] <= 1)
  1990.     return SendClientMessage(playerid, COR_VERMELHO, "Você não tem permisão");
  1991.     if(sscanf(params, "ud", Id, level)) return SendClientMessage(playerid, COR_VERMELHO, "Use /setorg [Id] [LEVEL]");
  1992.     if (level < 0 || level > 1) return SendClientMessage(playerid, COR_VERMELHO, "Level inválido. Use de 0 á 1 .");
  1993.     if(!IsPlayerConnected(Id)) return SendClientMessage(playerid, COR_VERMELHO, "Este jogador não está online.");
  1994.     GetPlayerName(Id, ganhou, sizeof(ganhou));
  1995.     GetPlayerName(playerid, deu, sizeof(deu));
  1996.     format(straliotiadmin, sizeof(straliotiadmin), "Você deu organizador level %d para o %s", level, ganhou);
  1997.     SendClientMessageToAll(COR_AZULC, straliotiadmin);
  1998.     format(straliotiadmin, sizeof(straliotiadmin), "O admin %s deu organizador level %s para você.", deu, level);
  1999.     SendClientMessageToAll(COR_SALMAO, straliotiadmin);
  2000.     Stralioti[Id][pOrg] =  level;
  2001.     return 1;
  2002. }
  2003.  
  2004. CMD:setpux(playerid, params[]) {
  2005.     new level, ganhou[MAX_PLAYER_NAME], deu[MAX_PLAYER_NAME];
  2006.     if(Stralioti[playerid][pAdministrador] <= 4 && Stralioti[playerid][pVPresidente] <= 0 && Stralioti[playerid][pPresidente] <= 0)
  2007.     return SendClientMessage(playerid, COR_VERMELHO, "Você não tem permisão");
  2008.     if(sscanf(params, "ud", Id, level)) return SendClientMessage(playerid, COR_VERMELHO, "Use /setpux [Id] [LEVEL]");
  2009.     if (level < 0 || level > 1) return SendClientMessage(playerid, COR_VERMELHO, "Level inválido. Use de 0 á 1.");
  2010.     if(!IsPlayerConnected(Id)) return SendClientMessage(playerid, COR_VERMELHO, "Este jogador não está online.");
  2011.     GetPlayerName(Id, ganhou, sizeof(ganhou));
  2012.     GetPlayerName(playerid, deu, sizeof(deu));
  2013.     format(straliotiadmin, sizeof(straliotiadmin), "Você deu puxador level %d para o %s", level, ganhou);
  2014.     SendClientMessageToAll(COR_AZULC, straliotiadmin);
  2015.     format(straliotiadmin, sizeof(straliotiadmin), "O %s deu puxador level %s para você.", deu, level);
  2016.     SendClientMessageToAll(COR_SALMAO, straliotiadmin);
  2017.     Stralioti[Id][pPux] =  level;
  2018.     return 1;
  2019. }
  2020.  
  2021. CMD:setpm(playerid, params[]) {
  2022.     new level, ganhou[MAX_PLAYER_NAME], deu[MAX_PLAYER_NAME];
  2023.     if(Stralioti[playerid][pAdministrador] <= 4 && Stralioti[playerid][pPM] <= 5)
  2024.     return SendClientMessage(playerid, COR_VERMELHO, "Você não tem permisão");
  2025.     if(sscanf(params, "ud", Id, level)) return SendClientMessage(playerid, COR_VERMELHO, "Use /setpm [Id] [LEVEL]");
  2026.     if (level < 0 || level > 5) return SendClientMessage(playerid, COR_VERMELHO, "Level inválido. Use de 0 á 5.");
  2027.     if(!IsPlayerConnected(Id)) return SendClientMessage(playerid, COR_VERMELHO, "Este jogador não está online.");
  2028.     GetPlayerName(Id, ganhou, sizeof(ganhou));
  2029.     GetPlayerName(playerid, deu, sizeof(deu));
  2030.     format(straliotiadmin, sizeof(straliotiadmin), "Você deu PM level %d para o %s", level, ganhou);
  2031.     SendClientMessage(playerid, COR_AZULC, straliotiadmin);
  2032.     format(straliotiadmin, sizeof(straliotiadmin), "O %s deu PM level %s para você.", deu, level);
  2033.     SendClientMessage(Id, COR_SALMAO, straliotiadmin);
  2034.     Stralioti[Id][pPM] =  level;
  2035.     return 1;
  2036. }
  2037.  
  2038. CMD:settrafico(playerid, params[]) {
  2039.     new level, ganhou[MAX_PLAYER_NAME], deu[MAX_PLAYER_NAME];
  2040.     if(Stralioti[playerid][pAdministrador] <= 4 && Stralioti[playerid][pTrafico] <= 5)
  2041.     return SendClientMessage(playerid, COR_VERMELHO, "Você não tem permisão");
  2042.     if(sscanf(params, "ud", Id, level)) return SendClientMessage(playerid, COR_VERMELHO, "Use /settrafico [Id] [LEVEL]");
  2043.     if (level < 0 || level > 5) return SendClientMessage(playerid, COR_VERMELHO, "Level inválido. Use de 0 á 5.");
  2044.     if(!IsPlayerConnected(Id)) return SendClientMessage(playerid, COR_VERMELHO, "Este jogador não está online.");
  2045.     GetPlayerName(Id, ganhou, sizeof(ganhou));
  2046.     GetPlayerName(playerid, deu, sizeof(deu));
  2047.     format(straliotiadmin, sizeof(straliotiadmin), "Você deu Tráfico level %d para o %s", level, ganhou);
  2048.     SendClientMessage(playerid, COR_AZULC, straliotiadmin);
  2049.     format(straliotiadmin, sizeof(straliotiadmin), "O %s deu Tráfico level %s para você.", deu, level);
  2050.     SendClientMessage(Id, COR_SALMAO, straliotiadmin);
  2051.     Stralioti[Id][pTrafico] =  level;
  2052.     return 1;
  2053. }
  2054.  
  2055. CMD:setreporter(playerid, params[]) {
  2056.     new level, ganhou[MAX_PLAYER_NAME], deu[MAX_PLAYER_NAME];
  2057.     if(Stralioti[playerid][pAdministrador] <= 4 && Stralioti[playerid][pReporter] <= 3)
  2058.     return SendClientMessage(playerid, COR_VERMELHO, "Você não tem permisão");
  2059.     if(sscanf(params, "ud", Id, level)) return SendClientMessage(playerid, COR_VERMELHO, "Use /setreporter [Id] [LEVEL]");
  2060.     if (level < 0 || level > 3) return SendClientMessage(playerid, COR_VERMELHO, "Level inválido. Use de 0 á 3.");
  2061.     if(!IsPlayerConnected(Id)) return SendClientMessage(playerid, COR_VERMELHO, "Este jogador não está online.");
  2062.     GetPlayerName(Id, ganhou, sizeof(ganhou));
  2063.     GetPlayerName(playerid, deu, sizeof(deu));
  2064.     format(straliotiadmin, sizeof(straliotiadmin), "Você deu Repórter level %d para o %s", level, ganhou);
  2065.     SendClientMessage(playerid, COR_AZULC, straliotiadmin);
  2066.     format(straliotiadmin, sizeof(straliotiadmin), "O %s deu Repórter level %s para você.", deu, level);
  2067.     SendClientMessage(Id, COR_SALMAO, straliotiadmin);
  2068.     Stralioti[Id][pReporter] =  level;
  2069.     return 1;
  2070. }
  2071.  
  2072. CMD:sethelper(playerid, params[]) {
  2073.     new level, ganhou[MAX_PLAYER_NAME], deu[MAX_PLAYER_NAME];
  2074.     if(Stralioti[playerid][pAdministrador] <= 4 && Stralioti[playerid][pHelper] <= 4)
  2075.     return SendClientMessage(playerid, COR_VERMELHO, "Você não tem permisão");
  2076.     if(sscanf(params, "ud", Id, level)) return SendClientMessage(playerid, COR_VERMELHO, "Use /sethelper [Id] [LEVEL]");
  2077.     if (level < 0 || level > 4) return SendClientMessage(playerid, COR_VERMELHO, "Level inválido. Use de 0 á 4.");
  2078.     if(!IsPlayerConnected(Id)) return SendClientMessage(playerid, COR_VERMELHO, "Este jogador não está online.");
  2079.     GetPlayerName(Id, ganhou, sizeof(ganhou));
  2080.     GetPlayerName(playerid, deu, sizeof(deu));
  2081.     format(straliotiadmin, sizeof(straliotiadmin), "Você deu Helper level %d para o %s", level, ganhou);
  2082.     SendClientMessage(playerid,COR_AZULC, straliotiadmin);
  2083.     format(straliotiadmin, sizeof(straliotiadmin), "O %s deu Helper level %s para você.", deu, level);
  2084.     SendClientMessage(Id, COR_SALMAO, straliotiadmin);
  2085.     Stralioti[Id][pHelper] =  level;
  2086.     return 1;
  2087. }
  2088.  
  2089. CMD:comandosadmin(playerid) {
  2090.     ShowPlayerDialog(playerid, 3, DIALOG_STYLE_MSGBOX, "COMANDOS", "/a\n/reports\n/olhar\n/olharoff\n/vidat\n/vida\n/pinfo\n/asay\n/trazer\n/ir\n/veh\n/dc\n/reparar\n/congelar\n/descongelar\n/tapa\n/prender\n/soltar\n/kick\n/ban\n/coletet\n/colete\n/jetpack", "Ok", "");
  2091.     return 1;
  2092. }
  2093.  
  2094. CMD:sim(playerid, params[]) {
  2095.     if(Votos[playerid] == 1)
  2096.     return SendClientMessage(playerid, COR_VERMELHO,"Você já votou!");
  2097.  
  2098.     if(EnqueteAberta == false)
  2099.     return SendClientMessage(playerid, COR_VERMELHO,"Nenhuma enquete está aberta!");
  2100.  
  2101.     TotalDeVotosSim++;
  2102.     SendClientMessage(playerid, COR_AZULC," Seu voto foi armazenado no banco de dados com sucesso - Sim");
  2103.     Votos[playerid] = 1;
  2104.     return 1;
  2105. }
  2106.  
  2107. CMD:nao(playerid, params[])
  2108. {
  2109.     if(Votos[playerid] == 1)
  2110.     return SendClientMessage(playerid, COR_VERMELHO,"Você já votou!");
  2111.  
  2112.     if(EnqueteAberta == false)
  2113.     return SendClientMessage(playerid, COR_VERMELHO,"Nenhuma enquete está aberta!");
  2114.  
  2115.     TotalDeVotosNao++;
  2116.     Votos[playerid] = 1;
  2117.     SendClientMessage(playerid, COR_AZULC," Seu voto foi armazenado no banco de dados com sucesso - Não");
  2118.     return 1;
  2119. }
  2120.  
  2121. CMD:pm(playerid, params[]) {
  2122.     new mensagem;
  2123.     if(sscanf(params, "us", Id, mensagem))return SendClientMessage(playerid, COR_AMARELO,"Use /pm [id] [mensagem]");
  2124.     if(!IsPlayerConnected(Id)) return SendClientMessage(playerid, COR_VERMELHO, "Este jogador não está online.");
  2125.     if(Stralioti[Id][BlockPM] == true)
  2126.     return SendClientMessage(playerid, COR_VERMELHO, "Este jogador está com PM bloqueado!");
  2127.     format(stralioti, sizeof(stralioti),"Enviado para %s (%d): %s", PlayerNome(Id), Id, mensagem);
  2128.     SendClientMessage(playerid, COR_AMARELO, stralioti);
  2129.     format(stralioti, sizeof(stralioti),"Recebido de %s (%d): %s", PlayerNome(playerid), Id, mensagem);
  2130.     SendClientMessage(Id, COR_AMARELO, stralioti);
  2131.     for(new i = 0; i <= HighestID; i ++) {
  2132.         if(Stralioti[i][LerPM] == true) {
  2133.             SendFormattedMessage(i, COR_ADMIN, "%s enviou uma mensagem para %s: %s", PlayerNome(playerid), PlayerNome(Id), mensagem);
  2134.         }
  2135.     }
  2136.     return 1;
  2137. }
  2138.  
  2139. CMD:su(playerid, params[])
  2140. {
  2141.     if(Stralioti[playerid][pPM] <= 0) return SendClientMessage(playerid, COR_VERMELHO, "Você não é um policial");
  2142.     new id, motivo1[128], str[128], nome[MAX_PLAYER_NAME];
  2143.     GetPlayerName(playerid, nome, sizeof(nome));
  2144.     if(sscanf(params, "us", id, motivo)) return SendClientMessage(playerid, COR_VERMELHO, "Use: /su [id] [acusação]");
  2145.     if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COR_VERMELHO, "Este jogador não está online.");
  2146.     format(str,sizeof(str),"O Policial %s lhe acusou de ter cometido um crime: %s", nome, motivo1);
  2147.     SendClientMessage(playerid, COR_VERMELHO, str);
  2148.     Acusado[id] = true;
  2149.     return 1;
  2150. }
  2151.  
  2152. CMD:lerpm(playerid, params[]) {
  2153.     if(Stralioti[playerid][pAdministrador] <= 2) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  2154.     if(Stralioti[playerid][LerPM] == false) {
  2155.         Stralioti[playerid][LerPM] = true;
  2156.         SendClientMessage(playerid, COR_AZULC, "Você está lendo PM's agora.");
  2157.     } else {
  2158.         Stralioti[playerid][LerPM] = false;
  2159.         SendClientMessage(playerid, COR_VERMELHO, "Você parou de ler PM's.");
  2160.     }
  2161.     return 1;
  2162. }
  2163.  
  2164. CMD:bpm(playerid, params[]) {
  2165.     if(Stralioti[playerid][BlockPM] == false) {
  2166.         Stralioti[playerid][BlockPM] = true;
  2167.         SendClientMessage(playerid, COR_VERMELHO, "PM bloqueado.");
  2168.     } else SendClientMessage(playerid, COR_VERMELHO, "Você já está de BPM");
  2169.     return 1;
  2170. }
  2171.  
  2172. CMD:apm(playerid, params[]) {
  2173.     if(Stralioti[playerid][BlockPM] == true) {
  2174.         Stralioti[playerid][BlockPM] = false;
  2175.         SendClientMessage(playerid,  COR_AZULC, "PM desbloqueado.");
  2176.     } else SendClientMessage(playerid,  COR_AZULC, "Você já está de APM");
  2177.     return 1;
  2178. }
  2179.  
  2180. CMD:payday(playerid) {
  2181.     if(Stralioti[playerid][pAdministrador] <= 5) return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão");
  2182.     @pagamento();
  2183.     format(stralioti, sizeof(stralioti), "O GameMaster %s deu Chuva de Payday", PlayerNome(playerid));
  2184.     return SendClientMessageToAll(COR_AZULC, stralioti);
  2185. }
  2186.  
  2187. CMD:reportar(playerid, params[])
  2188. {
  2189.     new id;
  2190.     new texto1[128];
  2191.     new Str[128];
  2192.     new inome[MAX_PLAYER_NAME];
  2193.     new nome[MAX_PLAYER_NAME];
  2194.     if(sscanf(params,"us",id,texto1)) return SendClientMessage(playerid,COR_VERMELHO,"USE: /reportar [id] [motivo]");
  2195.     if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COR_VERMELHO,"Player não conectado");
  2196.     GetPlayerName(id,inome,MAX_PLAYER_NAME);
  2197.     GetPlayerName(id,nome,MAX_PLAYER_NAME);
  2198.     SendClientMessage(playerid,COR_AZULC,"Obrigado Por Reportar...");
  2199.     for(new i=0; i < MAX_PLAYERS; i++)
  2200.     {
  2201.         if(Stralioti[i][pAdministrador] <= 0)
  2202.         {
  2203.             format(Str, sizeof(Str),"AVISO: %s reportou %s motivo: %s",nome,inome,texto1);
  2204.             SendClientMessage(i, COR_VERMELHO,Str);
  2205.         }
  2206.     }
  2207.     return true;
  2208. }
  2209.  
  2210. CMD:bir(playerid, params[])
  2211. {
  2212.     if(Stralioti[playerid][pAdministrador] <= 0)
  2213.     return SendClientMessage(playerid, COR_VERMELHO, "ERRO: Você não está logado para utilizar este comando!");
  2214.  
  2215.     if(Stralioti[playerid][BlockIR] == false) {
  2216.         Stralioti[playerid][BlockIR] = true;
  2217.         SendClientMessage(playerid, COR_VERMELHO, "[INFO] IR bloqueado.");
  2218.     } else SendClientMessage(playerid, COR_VERMELHO, "ERRO: Seu IR já está bloqueado!");
  2219.  
  2220.     return 1;
  2221. }
  2222.  
  2223. CMD:btr(playerid, params[])
  2224. {
  2225.     if(Stralioti[playerid][pAdministrador] <= 0)
  2226.     return SendClientMessage(playerid, COR_VERMELHO, "ERRO: Você não está logado para utilizar este comando!");
  2227.  
  2228.     if(Stralioti[playerid][BlockTR] == false) {
  2229.         Stralioti[playerid][BlockTR] = true;
  2230.         SendClientMessage(playerid, COR_VERMELHO, "[INFO] TR bloqueado.");
  2231.     } else SendClientMessage(playerid, COR_VERMELHO, "ERRO: Seu TR já está bloqueado!");
  2232.  
  2233.     return 1;
  2234. }
  2235.  
  2236. CMD:vips(playerid)
  2237. {
  2238.     new string[85];
  2239.     new count;
  2240.     SendClientMessage(playerid, 0x33AAFFFF, "** Todos os jogadores VIP online:");
  2241.     for(new i = 0; i < MAX_PLAYERS; i++)
  2242.     {
  2243.         if(Vip[i] > 0)
  2244.         {
  2245.             if(IsPlayerConnected(i))
  2246.                {
  2247.                 format(string, sizeof(string), "Vip %s (%d) [%s]", PlayerNome(i), i, convertNumber(Vip[i]-gettime()));
  2248.                 SendClientMessage(playerid, 0xE3E3E3FF, string);
  2249.                 count++;
  2250.                }
  2251.         }
  2252.     }
  2253.     if(count == 0)
  2254.         return SendClientMessage(playerid, 0xD8D8D8FF, "Não tem nenhum jogador vip on-line!");
  2255.  
  2256.     return true;
  2257. }
  2258.  
  2259. CMD:setvip(playerid, params[])
  2260. {
  2261.     new id, days, string[70];
  2262.  
  2263.     if(!IsPlayerAdmin(playerid))
  2264.         return SendClientMessage(playerid, 0xFF0000AA, "ERRO: Você precisa estar logado na RCON para usar este comando!");
  2265.  
  2266.     if(sscanf(params, "ud", id, days))
  2267.         return SendClientMessage(playerid, COR_AZULC, "Modo de uso: /setvip [id] [dias]");
  2268.  
  2269.     if(days < 0)
  2270.     {
  2271.         return SendClientMessage(playerid, 0xFF0000AA, "ERRO: Este jogador não está online!");
  2272.     }
  2273.     else
  2274.     {
  2275.         if(!IsPlayerConnected(id))
  2276.             return SendClientMessage(playerid, 0xFF0000AA, "ERRO: Este jogador não está online!");
  2277.         else
  2278.         {
  2279.             Vip[id] = ConvertDays(days);
  2280.             format(string, sizeof(string), "** Você deu %d dias de VIP para %s.", days, PlayerNome(id));
  2281.             SendClientMessage(playerid, 0x33AAFFFF, string);
  2282.             format(string, sizeof(string), "** Você recebeu %d dias de VIP.", days);
  2283.             SendClientMessage(playerid, 0x33AAFFFF, string);
  2284.  
  2285.             format(string, sizeof(string), "/vips/%s.ini", PlayerNome(id));
  2286.             DOF2_CreateFile(string);
  2287.             DOF2_SetInt(string,"VipExpira", Vip[id]);
  2288.             DOF2_SaveFile();
  2289.         }
  2290.     }
  2291.     return true;
  2292. }
  2293.  
  2294. CMD:admins(playerid, params[]) {
  2295.         SendClientMessage(playerid, 0x0080FFAA, "Administradores Online:");
  2296.         new count=0;
  2297.         for(new i=0; i<MAX_PLAYERS; i++)
  2298.         {
  2299.             if(IsPlayerConnected(i))
  2300.             {
  2301.                         if(Stralioti[i][pAdministrador] == 1)
  2302.                         {
  2303.                         new pname[24];
  2304.                         GetPlayerName(i, pname, 24);
  2305.                         format(Straliotii, 256, "Admin %s [Administrador Teste]", pname);
  2306.                         SendClientMessage(playerid, 0xE3E3E3FF, Straliotii);
  2307.                         count++;
  2308.                         }
  2309.                         if(Stralioti[i][pAdministrador] == 2)
  2310.                         {
  2311.                         new pname[24];
  2312.                         GetPlayerName(i, pname, 24);
  2313.                         format(Straliotii, 256, "Admin %s [Administrador Teste]", pname);
  2314.                         SendClientMessage(playerid, 0xE3E3E3FF, Straliotii);
  2315.                         count++;
  2316.                         }
  2317.                         if(Stralioti[i][pAdministrador] == 3)
  2318.                         {
  2319.                         new NomeA[MAX_PLAYER_NAME];
  2320.                         GetPlayerName(i, NomeA, sizeof(NomeA));
  2321.                         format(Straliotii, sizeof(Straliotii), NomeA);
  2322.                         new pname[24];
  2323.                         GetPlayerName(i, pname, 24);
  2324.                         format(Straliotii, 256, "Admin %s [Administrador Fixo]", pname);
  2325.                         SendClientMessage(playerid, 0xE3E3E3FF, Straliotii);
  2326.                         count++;
  2327.                         }
  2328.                         if(Stralioti[i][pAdministrador] == 4)
  2329.                         {
  2330.                         new NomeA[MAX_PLAYER_NAME];
  2331.                         GetPlayerName(i, NomeA, sizeof(NomeA));
  2332.                         format(Straliotii, sizeof(Straliotii), NomeA);
  2333.                         new pname[24];
  2334.                         GetPlayerName(i, pname, 24);
  2335.                         format(Straliotii, 256, "Admin %s [Sub Game Master] [Função: %s]", pname);
  2336.                         SendClientMessage(playerid, 0xE3E3E3FF, Straliotii);
  2337.                         count++;
  2338.                         }
  2339.                         if(Stralioti[i][pAdministrador] == 5)
  2340.                         {
  2341.                         new NomeA[MAX_PLAYER_NAME];
  2342.                         GetPlayerName(i, NomeA, sizeof(NomeA));
  2343.                         format(Straliotii, sizeof(Straliotii), NomeA);
  2344.                         new pname[24];
  2345.                         GetPlayerName(i, pname, 24);
  2346.                         format(Straliotii, 256, "Admin %s [Game Master Teste] [Função: %s]", pname);
  2347.                         SendClientMessage(playerid, 0xE3E3E3FF, Straliotii);
  2348.                         count++;
  2349.                         }
  2350.                 }
  2351.             }
  2352.         return 1;
  2353. }
  2354.  
  2355. CMD:helpers(playerid, params[]) {
  2356.         SendClientMessage(playerid, 0x0080FFAA, "Helper Online:");
  2357.         new count=0;
  2358.         for(new i=0; i<MAX_PLAYERS; i++)
  2359.         {
  2360.             if(IsPlayerConnected(i))
  2361.             {
  2362.                         if(Stralioti[i][pHelper] == 1)
  2363.                         {
  2364.                         new pname[24];
  2365.                         GetPlayerName(i, pname, 24);
  2366.                         format(Straliotii, 256, "Helper %s [Helper Teste]", pname);
  2367.                         SendClientMessage(playerid, 0xE3E3E3FF, Straliotii);
  2368.                         count++;
  2369.                         }
  2370.                         if(Stralioti[i][pHelper] == 2)
  2371.                         {
  2372.                         new pname[24];
  2373.                         GetPlayerName(i, pname, 24);
  2374.                         format(Straliotii, 256, "Helper %s [Helper Fixo]", pname);
  2375.                         SendClientMessage(playerid, 0xE3E3E3FF, Straliotii);
  2376.                         count++;
  2377.                         }
  2378.                         if(Stralioti[i][pHelper] == 3)
  2379.                         {
  2380.                         new NomeA[MAX_PLAYER_NAME];
  2381.                         GetPlayerName(i, NomeA, sizeof(NomeA));
  2382.                         format(Straliotii, sizeof(Straliotii), NomeA);
  2383.                         new pname[24];
  2384.                         GetPlayerName(i, pname, 24);
  2385.                         format(Straliotii, 256, "Helper %s [Helper]", pname);
  2386.                         SendClientMessage(playerid, 0xE3E3E3FF, Straliotii);
  2387.                         count++;
  2388.                         }
  2389.                         if(Stralioti[i][pHelper] == 4)
  2390.                         {
  2391.                         new NomeA[MAX_PLAYER_NAME];
  2392.                         GetPlayerName(i, NomeA, sizeof(NomeA));
  2393.                         format(Straliotii, sizeof(Straliotii), NomeA);
  2394.                         new pname[24];
  2395.                         GetPlayerName(i, pname, 24);
  2396.                         format(Straliotii, 256, "Helper %s [Sub Líder]", pname);
  2397.                         SendClientMessage(playerid, 0xE3E3E3FF, Straliotii);
  2398.                         count++;
  2399.                         }
  2400.                         if(Stralioti[i][pHelper] == 5)
  2401.                         {
  2402.                         new NomeA[MAX_PLAYER_NAME];
  2403.                         GetPlayerName(i, NomeA, sizeof(NomeA));
  2404.                         format(Straliotii, sizeof(Straliotii), NomeA);
  2405.                         new pname[24];
  2406.                         GetPlayerName(i, pname, 24);
  2407.                         format(Straliotii, 256, "Helper %s [Líder]", pname);
  2408.                         SendClientMessage(playerid, 0xE3E3E3FF, Straliotii);
  2409.                         count++;
  2410.                         }
  2411.                 }
  2412.             }
  2413.         return 1;
  2414. }
  2415.  
  2416. CMD:mudartorcida(playerid) {
  2417.     ShowPlayerDialog(playerid, Torcidas, DIALOG_STYLE_LIST, "Torcidas", "Sudeste\nSul/Centro\nNorte/Nordeste", "Escolher", "Sair");
  2418.     return 1;
  2419. }
  2420.  
  2421. CMD:id(playerid, params[]) {
  2422.     new tmp[256], nick;
  2423.     if(sscanf(params, "us", Id))return SendClientMessage(playerid, COR_AZULC,"Use : /id [parte do nick]");
  2424.     format(stralioti,sizeof(stralioti),"** Procurando por: \"%s\": ",(Id), nick);
  2425.     SendClientMessage(playerid,COR_AZULC,stralioti);
  2426.     new found=0;
  2427.     for(new i = 0; i <= HighestID; i ++)
  2428.     {
  2429.  
  2430.  
  2431.         if(IsPlayerConnected(i))
  2432.         {
  2433.  
  2434.  
  2435.             new foundname[MAX_PLAYER_NAME+1];
  2436.             GetPlayerName(i, foundname, MAX_PLAYER_NAME+1);
  2437.             new namelen = strlen(foundname);
  2438.             new bool:searched=false;
  2439.             for(new pos=0; pos <= namelen; pos++)
  2440.             {
  2441.  
  2442.  
  2443.                 if(searched != true)
  2444.                 {
  2445.  
  2446.  
  2447.                     if(strfind(foundname,tmp,true) == pos)
  2448.                     {
  2449.  
  2450.  
  2451.                         found++;
  2452.                         if(GetPlayerScore(i) < 2)
  2453.                         {
  2454.  
  2455.  
  2456.                             format(stralioti,sizeof(stralioti),"%d. %s (ID %d) {f50000}(Level %d)",found,foundname,i, GetPlayerScore(i));
  2457.                             SendClientMessage(playerid, -1 ,stralioti);
  2458.                         }
  2459.                         else
  2460.                         {
  2461.  
  2462.  
  2463.                             format(stralioti,sizeof(stralioti),"%d. %s (ID %d) {26cf0a}(Level %d)",found,foundname,i, GetPlayerScore(i));
  2464.                             SendClientMessage(playerid, -1 ,stralioti);
  2465.                         }
  2466.  
  2467.                         searched = true;
  2468.                     }
  2469.                 }
  2470.             }
  2471.         }
  2472.     }
  2473.     return 1;
  2474. }
  2475.  
  2476. CMD:atender(playerid, params[]) {
  2477.     if(Stralioti[playerid][pReporter] <= 0 && Stralioti[playerid][pHelper] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão");
  2478.     if(sscanf(params, "u", Id)) return SendClientMessage(playerid, COR_VERMELHO,"Use: /atender [id]");
  2479.     new Float:plocx,Float:plocy,Float:plocz;
  2480.     GetPlayerPos(Id, plocx, plocy, plocz);
  2481.     new intid = GetPlayerInterior(Id);
  2482.     SetPlayerInterior(playerid,intid);
  2483.     SetPlayerPos(playerid,plocx,plocy+2, plocz);
  2484.     return 1;
  2485. }
  2486.  
  2487. CMD:avaliar(playerid, params[]) {
  2488.     if(Stralioti[playerid][pHelper] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão");
  2489.     if(!IsPlayerConnected(Id)) return SendClientMessage(playerid, COR_VERMELHO, "Este jogador não está online.");
  2490.     IDHELPER[Id] = playerid;
  2491.     IDHELPER[playerid] = Id;
  2492.     ShowPlayerDialog(Id,888, DIALOG_STYLE_MSGBOX, stralioti, "Olá, eu sou um helper do servidor, e trabalho ajudando as pessoas. \nCom a sua avaliação eu posso subir de nível e ajudar cada vez mais. \n \nEu ajudei você?", "Sim", "Não");
  2493.     return 1;
  2494. }
  2495.  
  2496. CMD:m(playerid, params[]) {
  2497.     new i;
  2498.     if(Stralioti[playerid][pPM] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão");
  2499.     if(GetDistanceBetweenPlayers(playerid, i) <= 30)
  2500.     {
  2501.  
  2502.  
  2503.  
  2504.  
  2505.         if(sscanf(params, "s", texto)) return SendClientMessage(playerid, COR_VERMELHO,"Use: /m [texto]");
  2506.         format(stralioti, sizeof(stralioti), "[POLICIAL]%s: %s", PlayerNome(playerid), texto);
  2507.         SendClientMessageToAll(COR_VERMELHO, stralioti);
  2508.     }
  2509.     return 1;
  2510. }
  2511.  
  2512. CMD:p(playerid, params[]) {
  2513.     if(Stralioti[playerid][pPM] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão");
  2514.     new text[128], string[128], playername[MAX_PLAYER_NAME];
  2515.     if(sscanf(params, "s", text)) return SendClientMessage(playerid, COR_VERMELHO, "USE: /p [MENSAGEM]");
  2516.     if(Stralioti[playerid][pPM] == 0) return SendClientMessage(playerid, COR_VERMELHO, "Você não participa de nenhuma organização!");
  2517.     GetPlayerName(playerid, playername, sizeof(playername));
  2518.     format(string, sizeof(string), "(Rádio) %s [Cargo: %d] diz: %s", playername, Stralioti[playerid][pPM], text);
  2519.     SendFamilyMessage(Stralioti[playerid][pPM], COR_VERMELHO, string);
  2520.     return 1;
  2521. }
  2522.  
  2523. CMD:anunciar(playerid, params[]) {
  2524.     if(Stralioti[playerid][pPresidente] <= 0 && Stralioti[playerid][pOrg] <= 0 && Stralioti[playerid][pPux] <= 0 && Stralioti[playerid][pVPresidente] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão");
  2525.     ShowPlayerDialog(playerid, ANUNCIAR, DIALOG_STYLE_LIST, "ANUNCIAR", "X3\nCF\nTreta", "Escolher", "Sair");
  2526.     return 1;
  2527. }
  2528.  
  2529. CMD:a(playerid, params[]) {
  2530.     if(Stralioti[playerid][pAdministrador] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  2531.     {
  2532.  
  2533.  
  2534.  
  2535.  
  2536.  
  2537.  
  2538.  
  2539.         for( new i; i < MAX_PLAYERS; i++ )
  2540.         {
  2541.  
  2542.  
  2543.  
  2544.  
  2545.  
  2546.  
  2547.  
  2548.             if(sscanf(params, "s", texto)) return SendClientMessage(playerid, COR_VERMELHO,"Use /a [texto]");
  2549.             format(stralioti, sizeof(stralioti),"Chat Admin: %s: %s", PlayerNome(playerid),texto);
  2550.             SendClientMessage(i,COR_ROSA,stralioti);
  2551.         }
  2552.     }
  2553.     return 1;
  2554. }
  2555.  
  2556. CMD:t(playerid, params[]) {
  2557.     new text[128], string[128], playername[MAX_PLAYER_NAME];
  2558.     if(sscanf(params, "s", text)) return SendClientMessage(playerid, 0xAD0000AA, "USE: /t [MENSAGEM]");
  2559.     if(Stralioti[playerid][pTrafico] == 0) return SendClientMessage(playerid, 0xAD0000AA, "Você não participa de nenhuma organização!");
  2560.     GetPlayerName(playerid, playername, sizeof(playername));
  2561.     format(string, sizeof(string), "(Rádio) %s [Cargo: %d] diz: %s", playername, Stralioti[playerid][pTrafico], text);
  2562.     SendFamilyMessage(Stralioti[playerid][pTrafico], COR_VERMELHO, string);
  2563.     return 1;
  2564. }
  2565.  
  2566. CMD:jetpack(playerid, params[]) {
  2567.     if(Stralioti[playerid][pAdministrador] <= 0 && Stralioti[playerid][pReporter] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  2568.     SetPlayerSpecialAction(playerid, 2);
  2569.     return 1;
  2570. }
  2571.  
  2572. CMD:criar(playerid, params[]) {
  2573.     if(Stralioti[playerid][pAdministrador] <= 3) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  2574.     ShowPlayerDialog(playerid,DIALOG_EN,DIALOG_STYLE_INPUT,"Criar Enquete","Por favor digite sua pergunta para enquete","Criar","Cancelar");
  2575.     return 1;
  2576. }
  2577.  
  2578. CMD:dtp(playerid, params[]) {
  2579.     new i;
  2580.     if(Stralioti[playerid][pAdministrador] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  2581.     if(GetDistanceBetweenPlayers(playerid, i) <= 50)
  2582.     ResetPlayerWeapons(i);
  2583.     return 1;
  2584. }
  2585.  
  2586. CMD:spawn(playerid, params[]) {
  2587.     if(Stralioti[playerid][pAdministrador] <= 0 && Stralioti[playerid][pOrg] <= 0 && Stralioti[playerid][pPresidente] <= 0 && Stralioti[playerid][pTrafico] <= 3 && Stralioti[playerid][pPM] <= 3 && Stralioti[playerid][pReporter] <= 2 && Stralioti[playerid][pHelper] <= 3)
  2588.     return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão");
  2589.     if(sscanf(params, "us", Id, texto)) return SendClientMessage(playerid, COR_VERMELHO,"Use: /spawn [id][motivo]");
  2590.     format(stralioti, sizeof(stralioti),"O %s respawnou %s motivo %s", PlayerNome(playerid),PlayerNome(Id),texto);
  2591.     SendClientMessageToAll( COR_KICK, stralioti);
  2592.     SpawnPlayer(Id);
  2593.     return 1;
  2594. }
  2595.  
  2596. CMD:setskin(playerid, params[]) {
  2597.     new skin;
  2598.     if(Stralioti[playerid][pPresidente] <= 0 && Stralioti[playerid][pOrg] <= 0 && Stralioti[playerid][pVPresidente] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão");
  2599.     if(sscanf(params, "u", skin)) return SendClientMessage(playerid, COR_VERMELHO,"Use: /setskin [id]");
  2600.     format(stralioti, sizeof(stralioti),"%s setou a skin do %s", PlayerNome(playerid), PlayerNome(Id));
  2601.     SendClientMessage(playerid, COR_AZULC, stralioti);
  2602.     SetPlayerSkin(Id, skin);
  2603.     return 1;
  2604. }
  2605.  
  2606. CMD:reporter(playerid, params[]) {
  2607.     if(Stralioti[playerid][pReporter] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Repórter");
  2608.     GivePlayerWeapon(playerid, 13, 999);
  2609.     GivePlayerWeapon(playerid, 43, 999);
  2610.     return 1;
  2611. }
  2612.  
  2613. CMD:hqhelper(playerid, params[]) {
  2614.     if(Stralioti[playerid][pHelper] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Helper");
  2615.     SetPlayerPos(playerid, -1724.4130,1019.4725,17.5859);
  2616.     format(stralioti, sizeof(stralioti), "O Helper %s foi para a HQ", PlayerNome(playerid));
  2617.     MensagemPerto(playerid, COR_KICK, stralioti, 50);
  2618.     return 1;
  2619. }
  2620.  
  2621. CMD:chamar(playerid,params[]) {
  2622.     if(strcmp(params, "reporter", true)==0)
  2623.     {
  2624.         if(Stralioti[playerid][FilaRGT] > 0)
  2625.         return SendClientMessage(playerid, COR_VERMELHO, "Você já chamou um repórter, aguarde, use '/sairfila reporter' para sair da fila caso queira.");
  2626.  
  2627.         SenhaRGT++;
  2628.         Stralioti[playerid][FilaRGT] = SenhaRGT;
  2629.  
  2630.         SendFormattedMessage(playerid, COR_VERMELHO, "[INFO] Você pegou sua senha [%d], aguarde para ser atendido por um repórter.", Stralioti[playerid][FilaRGT]);
  2631.         SendClientMessage(playerid, COR_VERMELHO, "[INFO]Para ver o progresso da fila, use /fila reporter.");
  2632.         SendClientMessage(playerid, COR_AZULC, "[INFO] Caso deseje sair da fila, use /sairfila reporter.");
  2633.  
  2634.         new string[128];
  2635.         format(string, sizeof(string), "[FILA DE REPORTAGÉM] O jogador %s está na fila para ser atendido [Senha: %d] [ID: %d] (/Ir).", PlayerNome(playerid), Stralioti[playerid][FilaRGT], playerid);
  2636.         SendMessageToReporter(COR_LARANJA, string);
  2637.     }
  2638.     else if(strcmp(params, "helper", true)==0)
  2639.     {
  2640.         if(Stralioti[playerid][FilaHELPER] > 0)
  2641.         return SendClientMessage(playerid, COR_HELPER, "Você já chamou um repórter, aguarde, use '/sairfila helper' para sair da fila caso queira.");
  2642.  
  2643.         Senha++;
  2644.         Stralioti[playerid][FilaHELPER] = Senha;
  2645.  
  2646.         SendFormattedMessage(playerid, COR_VERMELHO, "[INFO] Você pegou sua senha [%d], aguarde para ser atendido por um Helper.", Stralioti[playerid][FilaHELPER]);
  2647.         SendClientMessage(playerid, COR_VERMELHO, "[INFO] Para ver o progresso da fila, use /fila helper.");
  2648.         SendClientMessage(playerid, COR_AZULC, "[INFO] Caso deseje sair da fila, use /sairfila helper.");
  2649.  
  2650.         new string[128];
  2651.         format(string, sizeof(string), "[FILA DE HELPER] O jogador %s está na fila para ser atendido [Senha: %d] [ID: %d] (/atender).", PlayerNome(playerid), Stralioti[playerid][FilaHELPER], playerid);
  2652.         SendMessageToAdminsAndHelper(COR_HELPER, string);
  2653.     }
  2654.     return 1;
  2655. }
  2656.  
  2657. CMD:dp(playerid, params[]) {
  2658.     if(Stralioti[playerid][pPM] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um PM");
  2659.  
  2660.     if(Stralioti[playerid][pPM] == 1 || Stralioti[playerid][pPM] == 2)
  2661.     {
  2662.         SetPlayerPos(playerid,1528.9910,-1678.1188,5.8906);
  2663.         SetPlayerArmour(playerid, 100);
  2664.         SetPlayerHealth(playerid, 100);
  2665.         SetPlayerColor(playerid, -1);
  2666.         GivePlayerWeapon(playerid, 22, 9999);
  2667.         GivePlayerWeapon(playerid, 25, 9999);
  2668.     }
  2669.     if(Stralioti[playerid][pPM] == 3)
  2670.     {
  2671.         SetPlayerColor(playerid, -1);
  2672.         SetPlayerPos(playerid,1528.9910,-1678.1188,5.8906);
  2673.         SetPlayerArmour(playerid, 100);
  2674.         SetPlayerHealth(playerid, 100);
  2675.         GivePlayerWeapon(playerid, 22, 9999);
  2676.         GivePlayerWeapon(playerid, 25, 9999);
  2677.         GivePlayerWeapon(playerid, 29, 9999);
  2678.     }
  2679.     if(Stralioti[playerid][pPM] == 4)
  2680.     {
  2681.         SetPlayerColor(playerid, -1);
  2682.         SetPlayerArmour(playerid, 100);
  2683.         SetPlayerHealth(playerid, 100);
  2684.         SetPlayerPos(playerid,1528.9910,-1678.1188,5.8906);
  2685.         GivePlayerWeapon(playerid, 25, 9999);
  2686.         GivePlayerWeapon(playerid, 29, 9999);
  2687.         GivePlayerWeapon(playerid, 24, 9999);
  2688.         GivePlayerWeapon(playerid, 30, 9999);
  2689.     }
  2690.     if(Stralioti[playerid][pPM] == 5)
  2691.     {
  2692.         SetPlayerArmour(playerid, 100);
  2693.         SetPlayerHealth(playerid, 100);
  2694.         SetPlayerPos(playerid,1528.9910,-1678.1188,5.8906);
  2695.         GivePlayerWeapon(playerid, 29, 9999);
  2696.         GivePlayerWeapon(playerid, 24, 9999);
  2697.         GivePlayerWeapon(playerid, 30, 9999);
  2698.         GivePlayerWeapon(playerid, 34, 9999);
  2699.         SetPlayerColor(playerid, -1);
  2700.     }
  2701.     format(stralioti, sizeof(stralioti), "O Polícial %s foi para a DP", PlayerNome(playerid));
  2702.     MensagemPerto(playerid, COR_KICK, stralioti, 50);
  2703.     return 1;
  2704. }
  2705.  
  2706. CMD:fechar(playerid, params[])
  2707. {
  2708.     if(Stralioti[playerid][pAdministrador] <= 2)
  2709.     return SendClientMessage(playerid,COR_ERRO,"Você não é um administrador para criar uma enquete!");
  2710.  
  2711.     if(EnqueteAberta == false)
  2712.     return SendClientMessage(playerid,COR_ERRO,"No momento já existe uma enquete aberta");
  2713.  
  2714.     SendClientMessageToAll(COR_TEXTO, " ");
  2715.     SendClientMessageToAll(COR_TEXTO, "=============================================================================================");
  2716.     SendFormattedMessageToAll(COR_AMARELO, " O %s %s acaba de fechar uma enquete.", PlayerNome(playerid), PlayerNome(playerid));
  2717.     SendFormattedMessageToAll(COR_AMARELO, "A pergunta foi %s", NomeEnquete);
  2718.     SendFormattedMessageToAll(COR_AMARELO, "Total de votos: Sim [%d] | Não [%d] | Votos [%d].", TotalDeVotosSim, TotalDeVotosNao, (TotalDeVotosSim + TotalDeVotosNao));
  2719.     SendClientMessageToAll(COR_TEXTO, "=============================================================================================");
  2720.  
  2721.  
  2722.     TotalDeVotosSim = 0;
  2723.     TotalDeVotosNao = 0;
  2724.     EnqueteAberta = false;
  2725.  
  2726.     for(new i; i <= HighestID; i++)
  2727.     if(Votos[i] == 1)
  2728.     {
  2729.         Votos[i] = 0;
  2730.     }
  2731.  
  2732.     return 1;
  2733. }
  2734.  
  2735. CMD:asay(playerid, params[]) {
  2736.     if(Stralioti[playerid][pAdministrador] <= 0){
  2737.         if(sscanf(params, "s", texto)) return SendClientMessage(playerid, COR_VERMELHO, "Use /asay [texto]");
  2738.         format(stralioti, sizeof(stralioti), "[Administrador]: %s: %s", PlayerNome(playerid), params);
  2739.         SendClientMessageToAll(COR_ADMIN, stralioti);
  2740.     }
  2741.     else if(Stralioti[playerid][pPresidente] <= 0) {
  2742.         if(sscanf(params, "s", texto)) return SendClientMessage(playerid, COR_VERMELHO, "Use /asay [texto]");
  2743.         format(stralioti, sizeof(stralioti), "[Presidente]: %s: %s", PlayerNome(playerid), params);
  2744.         SendClientMessageToAll(COR_VERDE, stralioti);
  2745.     }
  2746.     else if(Stralioti[playerid][pVPresidente] <= 0) {
  2747.         if(sscanf(params, "s", texto)) return SendClientMessage(playerid, COR_VERMELHO, "Use /asay [texto]");
  2748.         format(stralioti, sizeof(stralioti), "[Vice Presidente]: %s: %s", PlayerNome(playerid), params);
  2749.         SendClientMessageToAll(COR_VERDE, stralioti);
  2750.     }
  2751.     else if(Stralioti[playerid][pOrg] <= 0) {
  2752.         if(sscanf(params, "s", texto)) return SendClientMessage(playerid, COR_VERMELHO, "Use /asay [texto]");
  2753.         format(stralioti, sizeof(stralioti), "[Organizador]: %s: %s", PlayerNome(playerid), params);
  2754.         SendClientMessageToAll(COR_VERDE, stralioti);
  2755.     }
  2756.     else if(Stralioti[playerid][pPux] <= 0) {
  2757.         if(sscanf(params, "s", texto)) return SendClientMessage(playerid, COR_VERMELHO, "Use /asay [texto]");
  2758.         format(stralioti, sizeof(stralioti), "[Puxador]: %s: %s", PlayerNome(playerid), params);
  2759.         SendClientMessageToAll(COR_VERDE, stralioti);
  2760.     }
  2761.  
  2762.     return 1;
  2763. }
  2764.  
  2765. CMD:reports(playerid) {
  2766.     if(Stralioti[playerid][pAdministrador] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador"); {
  2767.         format(stralioti2, sizeof(stralioti2), "%s Viu algo de ilegal? use /reportar id motivo", stralioti2);
  2768.         SendClientMessageToAll(COR_ADMIN, stralioti2);
  2769.     }
  2770.     return 1;
  2771. }
  2772.  
  2773. CMD:anunciarreporter(playerid) {
  2774.     if(Stralioti[playerid][pReporter] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão"); {
  2775.         format(stralioti2, sizeof(stralioti2), "%s Precisa de filmagens? use /chamar reporter", stralioti2);
  2776.         SendClientMessageToAll(COR_LARANJA, stralioti2);
  2777.     }
  2778.     return 1;
  2779. }
  2780.  
  2781. CMD:creditos(playerid) {
  2782.     SendClientMessage(playerid, -1,"GameMode feito por: Fábio Stralioti");
  2783.     SendClientMessage(playerid, -1,"Sistema de Registro: Whoo (Fórum Samp)");
  2784.     return 1;
  2785. }
  2786.  
  2787. CMD:anunciarhelper(playerid) {
  2788.     if(Stralioti[playerid][pHelper] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão"); {
  2789.         format(stralioti2, sizeof(stralioti2), "%s Precisa de Ajuda? use /chamar helper", stralioti2);
  2790.         SendClientMessageToAll(COR_HELPER, stralioti2);
  2791.     }
  2792.     return 1;
  2793. }
  2794.  
  2795. CMD:tr(playerid, params[])
  2796. return cmd_trazer(playerid, params);
  2797.  
  2798. CMD:trazer(playerid, params[]) {
  2799.     if(Stralioti[playerid][pAdministrador] <= 0 && Stralioti[playerid][pHelper] <= 0 && Stralioti[playerid][pReporter] <= 0 && Stralioti[playerid][pPM] <= 2 && Stralioti[playerid][pTrafico] <= 2 && Stralioti[playerid][pPux] <= 0 && Stralioti[playerid][pVPresidente] <= 0 && Stralioti[playerid][pPresidente] <= 0 && Stralioti[playerid][pOrg] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  2800.     if(sscanf(params, "u", Id)) return SendClientMessage(playerid, COR_VERMELHO,"Use /trazer [id]");
  2801.     if(!IsPlayerConnected(Id))
  2802.     return SendClientMessage(playerid, COR_VERMELHO,"Este jogador não se encontra online");
  2803.     GetPlayerPos(playerid, FX, FY, FZ);
  2804.     SetPlayerPos(Id, FX, FY, FZ);
  2805.     format(stralioti, sizeof(stralioti), "O %s trouxe o %s", PlayerNome(playerid), PlayerNome(Id));
  2806.     MensagemPerto(playerid, COR_AZULC, stralioti, 50);
  2807.     return 1;
  2808. }
  2809.  
  2810. CMD:dararma(playerid, params[]) {
  2811.     new arma, balas;
  2812.     if(Stralioti[playerid][pAdministrador] <= 0 && Stralioti[playerid][pPresidente] <= 0 && Stralioti[playerid][pOrg] <= 0 && Stralioti[playerid][pHelper] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão");
  2813.     if(sscanf(params, "udd", Id, arma, balas)) return SendClientMessage(playerid, COR_VERMELHO,"Use /dararma [id] [iddaarma][balas]");
  2814.     if(arma == 38 || arma == 44 || arma == 9 || arma == 4 || arma == 8 || arma == 10 || arma == 11 || arma == 12 || arma == 13 || arma == 14 || arma == 15 || arma == 16 || arma == 17 || arma == 18 || arma == 22) return SendClientMessage(playerid, COR_VERMELHO,"Id de arma proibido");
  2815.     if(arma == 23 || arma == 24 || arma == 25 || arma == 26 || arma == 27 || arma == 28 || arma == 29 || arma == 30 || arma == 31 || arma == 32 || arma == 33 || arma == 34 || arma == 35 || arma == 36 || arma == 37 || arma == 38 || arma == 39 || arma == 40 || arma == 41 || arma == 42 || arma == 44 || arma == 45) return SendClientMessage(playerid, COR_VERMELHO,"Id de arma proibido");
  2816.     format(stralioti, sizeof(stralioti), "O %s de uma arma para o %s", PlayerNome(playerid), PlayerNome(Id));
  2817.     MensagemPerto(playerid, COR_AZULC, stralioti, 50);
  2818.     GivePlayerWeapon(Id, arma, balas);
  2819.     return 1;
  2820. }
  2821.  
  2822. CMD:dararmat(playerid, params[]) {
  2823.     new arma, balas, i;
  2824.     if(Stralioti[playerid][pAdministrador] <= 0 && Stralioti[playerid][pPresidente] <= 0 && Stralioti[playerid][pOrg] <= 0 && Stralioti[playerid][pHelper] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão");
  2825.     if(sscanf(params, "dd", arma, balas)) return SendClientMessage(playerid, COR_VERMELHO,"Use /dararmat [arma] [balas]");
  2826.     if(arma == 38 || arma == 44 || arma == 9 || arma == 4 || arma == 8 || arma == 10 || arma == 11 || arma == 12 || arma == 13 || arma == 14 || arma == 15 || arma == 16 || arma == 17 || arma == 18 || arma == 22) return SendClientMessage(playerid, COR_VERMELHO,"Id de arma proibido");
  2827.     if(arma == 23 || arma == 24 || arma == 25 || arma == 26 || arma == 27 || arma == 28 || arma == 29 || arma == 30 || arma == 31 || arma == 32 || arma == 33 || arma == 34 || arma == 35 || arma == 36 || arma == 37 || arma == 38 || arma == 39 || arma == 40 || arma == 41 || arma == 42 || arma == 44 || arma == 45) return SendClientMessage(playerid, COR_VERMELHO,"Id de arma proibido");
  2828.     if(GetDistanceBetweenPlayers(playerid, i) <= 30) {
  2829.         format(stralioti, sizeof(stralioti), "O %s de uma arma para todos perto", PlayerNome(playerid), PlayerNome(Id));
  2830.         MensagemPerto(playerid, COR_AZULC, stralioti, 50);
  2831.         GivePlayerWeapon(i, arma, balas);
  2832.     }
  2833.     return 1;
  2834. }
  2835.  
  2836. CMD:pee(playerid) {
  2837.     SetPlayerSpecialAction(playerid, SPECIAL_ACTION_PISSING);
  2838.     return 1;
  2839. }
  2840.  
  2841. CMD:fall(playerid) {
  2842.     LoopingAnim(playerid,"PED","KO_skid_front",4.1,0,1,1,1,0);
  2843.     return 1;
  2844. }
  2845.  
  2846. CMD:gro(playerid) {
  2847.     LoopingAnim(playerid,"BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
  2848.     return 1;
  2849. }
  2850.  
  2851. CMD:pular(playerid) {
  2852.     new Float:px, Float:py, Float:pz;
  2853.     GetPlayerPos(playerid, px, py, pz);
  2854.     SetPlayerPos(playerid, px, py, pz+0.7);
  2855.     return 1;
  2856. }
  2857.  
  2858. CMD:kill(playerid) {
  2859.     format(stralioti, sizeof(stralioti), "O %s se matou", PlayerNome(playerid));
  2860.     MensagemPerto(playerid, COR_KICK, stralioti, 50);
  2861.     SetPlayerHealth(playerid, 0.00);
  2862.     return 1;
  2863. }
  2864.  
  2865. CMD:hide(playerid) {
  2866.     LoopingAnim(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
  2867.     return 1;
  2868. }
  2869.  
  2870. CMD:mudarluta(playerid) {
  2871.     ShowPlayerDialog(playerid, MUDARLUTA, DIALOG_STYLE_LIST, "MUDARLUTA", "Capoeira\nChute\nCoronhada", "Escolher", "Sair");
  2872.     return 1;
  2873. }
  2874.  
  2875. CMD:onibus(playerid, params[]) {
  2876.     if(Stralioti[playerid][pVPresidente] <= 0 && Stralioti[playerid][pPux] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão");
  2877.     GetPlayerPos(playerid, X, Y, Z);
  2878.     GetPlayerFacingAngle(playerid, Angle);
  2879.     CreateVehicle(437, X+5, Y, Z+1, Angle, random(100), random(100), COR_HELPER);
  2880.     SendClientMessage(playerid, COR_HELPER,"Você criou um Ônibus para deleta-lo use /dc ou /dcm");
  2881.     return 1;
  2882. }
  2883.  
  2884. CMD:veh(playerid) {
  2885.     if(Stralioti[playerid][pAdministrador] <= 0 && Stralioti[playerid][pOrg] <= 0 && Stralioti[playerid][pPresidente] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  2886.     ShowPlayerDialog(playerid, VEH, DIALOG_STYLE_LIST, "VEH", "Sultan\nInfernus\nNRG-500\nOnibus\nSuper-GT", "Escolher", "Sair");
  2887.     return 1;
  2888. }
  2889.  
  2890. CMD:dc(playerid) {
  2891.     if(Stralioti[playerid][pAdministrador] <= 0 && Stralioti[playerid][pOrg] <= 0 && Stralioti[playerid][pPresidente] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  2892.     if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COR_VERMELHO,"Você não está em um veículo");
  2893.     new veiculo;
  2894.     veiculo = GetPlayerVehicleID(playerid);
  2895.     DestroyVehicle(veiculo);
  2896.     SendClientMessage(playerid, COR_VERMELHO,"Você deletou o veiculo");
  2897.     return 1;
  2898. }
  2899.  
  2900. CMD:kick(playerid, params[]) {
  2901.     if(Stralioti[playerid][pAdministrador] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  2902.     if(sscanf(params, "us", Id, motivo)) return SendClientMessage(playerid, COR_VERMELHO,"Use /kick [id] [motivo]");
  2903.     if(!IsPlayerConnected(Id))
  2904.     return SendClientMessage(playerid, COR_VERMELHO,"Este jogador não se enconta online");
  2905.     format(stralioti, sizeof(stralioti), "O Administrador %s kikou o %s motivo: %s", PlayerNome(playerid), PlayerNome(Id), motivo);
  2906.     SendClientMessageToAll(COR_KICK, stralioti);
  2907.     Kick(Id);
  2908.     return 1;
  2909. }
  2910.  
  2911. CMD:ban(playerid, params[]) {
  2912.     if(Stralioti[playerid][pAdministrador] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  2913.     if(sscanf(params, "us", Id, motivo)) return SendClientMessage(playerid, COR_VERMELHO,"Use /ban [id] [motivo]");
  2914.     if(!IsPlayerConnected(Id))
  2915.     return SendClientMessage(playerid, COR_VERMELHO,"Este jogador não se encontra online");
  2916.     format(stralioti, sizeof(stralioti), "O Administrador %s baniu o %s motivo: %s", PlayerNome(playerid), PlayerNome(Id), motivo);
  2917.     format(stralioti,sizeof(stralioti),banido,PlayerNome(Id));
  2918.     DOF2_CreateFile(stralioti);
  2919.     Ban(Id);
  2920.     return 1;
  2921. }
  2922.  
  2923. CMD:tempban(playerid, params[]) {
  2924.     new dias;
  2925.     if(Stralioti[playerid][pAdministrador] <= 5) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  2926.     if(sscanf(params, "uds", Id, dias, motivo)) return SendClientMessage(playerid, COR_VERMELHO,"Use /tempban [id][motivo]");
  2927.     if(!IsPlayerConnected(Id))
  2928.     return SendClientMessage(playerid, COR_VERMELHO,"Este jogador não se encontra online");
  2929.     format(stralioti, sizeof(stralioti), "O Administrador %s baniu o %s dias %d motivo: %s", PlayerNome(playerid), PlayerNome(Id), dias, motivo);
  2930.     SendClientMessageToAll(COR_VERMELHO, stralioti);
  2931.     DOF2_CreateFile(stralioti);
  2932.     Ban(Id);
  2933.     return 1;
  2934. }
  2935.  
  2936. CMD:desban(playerid, params[]) {
  2937.     if(Stralioti[playerid][pAdministrador] <= 5) return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão");
  2938.     if(!strlen(params)) {
  2939.         SendClientMessage(playerid, COR_USOCORRETO, "Uso: /desban [ip ou nick]");
  2940.         return 1;
  2941.     }
  2942.  
  2943.     new file[256];
  2944.     format(file,256,"banidos/%s.ini",params);
  2945.  
  2946.     if(DOF2_FileExists(file))
  2947.     {
  2948.         DOF2_RemoveFile(file);
  2949.         new string[128];
  2950.         format(string, 128,"O %s %s retirou o ban de '%s' (Nick ou IP).", PlayerNome(playerid), PlayerNome(playerid), params);
  2951.         SendMessageToAdminsEx(string);
  2952.  
  2953.         format(string, sizeof(string), "Ban de %s retirado pelo %s.", params, PlayerNome(playerid));
  2954.  
  2955.     }
  2956.     else
  2957.     SendClientMessage(playerid, COR_ERRO, "IP/Nick não encontrado.");
  2958.     return 1;
  2959. }
  2960.  
  2961. CMD:tapa(playerid, params[]) {
  2962.     new Float:pos[3];
  2963.     if(Stralioti[playerid][pAdministrador] <= 0 && Stralioti[playerid][pPux] <= 0 && Stralioti[playerid][pOrg] <= 0 && Stralioti[playerid][pPresidente] <= 0 && Stralioti[playerid][pVPresidente] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  2964.     if(sscanf(params, "u", Id)) return SendClientMessage(playerid, COR_VERMELHO,"Use /tapa [id]");
  2965.     if(!IsPlayerConnected(Id))
  2966.     return SendClientMessage(playerid, COR_VERMELHO,"Este jogador não se encontra online");
  2967.     GetPlayerHealth(Id, vida);
  2968.     SetPlayerHealth(Id, vida-5);
  2969.     GetPlayerPos(Id, pos[0], pos[1], pos[2]);
  2970.     SetPlayerPos(Id, pos[0], pos[1], pos[2]+5);
  2971.     format(stralioti, sizeof(stralioti), "O %s deu um tapa no %s", PlayerNome(playerid), PlayerNome(Id));
  2972.     MensagemPerto(playerid, COR_AZULC, stralioti, 50);
  2973.     return 1;
  2974. }
  2975.  
  2976. CMD:reparar(playerid) {
  2977.     if(Stralioti[playerid][pAdministrador] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  2978.     if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COR_VERMELHO,"Você não está em um veículo");
  2979.     RepairVehicle(GetPlayerVehicleID(playerid));
  2980.     return 1;
  2981. }
  2982.  
  2983. CMD:ir(playerid, params[]) {
  2984.     if(Stralioti[playerid][pAdministrador] <= 0 && Stralioti[playerid][pHelper] <= 0 && Stralioti[playerid][pReporter] <= 0 && Stralioti[playerid][pPM] <= 3 && Stralioti[playerid][pTrafico] <= 4 && Stralioti[playerid][pOrg] <= 0 && Stralioti[playerid][pPresidente] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão");
  2985.     if(sscanf(params, "u", Id)) return SendClientMessage(playerid, COR_VERMELHO,"Use /ir [id]");
  2986.     if(!IsPlayerConnected(Id))
  2987.     return SendClientMessage(playerid, COR_VERMELHO,"Este jogador não se encontra online");
  2988.     GetPlayerPos(Id, FX, FY, FZ);
  2989.     SetPlayerPos(playerid, FX, FY, FZ);
  2990.     format(stralioti, sizeof(stralioti), "O %s foi até o %s", PlayerNome(playerid), PlayerNome(Id));
  2991.     MensagemPerto(playerid, COR_AZULC, stralioti, 50);
  2992.     return 1;
  2993. }
  2994.  
  2995. CMD:atrf(playerid, params[]) {
  2996.     if(Stralioti[playerid][pTrafico] <= 4) return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão");
  2997.     if(sscanf(params, "s", texto)) return SendClientMessage(playerid, COR_VERMELHO,"Use: /atrf [texto]");
  2998.     format(stralioti, sizeof(stralioti), "[TRAFICANTE] %s: ", PlayerNome(playerid), texto);
  2999.     SendClientMessageToAll(COR_ADMIN, stralioti);
  3000.     return 1;
  3001. }
  3002.  
  3003. CMD:gov(playerid, params[]) {
  3004.     if(Stralioti[playerid][pPM] <= 4) return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão");
  3005.     if(sscanf(params, "s", texto)) return SendClientMessage(playerid, COR_VERMELHO,"Use: /gov [texto]");
  3006.     format(stralioti, sizeof(stralioti), "[POLÍCIAL] %s: ", PlayerNome(playerid), texto);
  3007.     SendClientMessageToAll(COR_ADMIN, stralioti);
  3008.     return 1;
  3009. }
  3010.  
  3011. CMD:noticias(playerid, params[]) {
  3012.     if(Stralioti[playerid][pReporter] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão");
  3013.     if(sscanf(params, "s", texto)) return SendClientMessage(playerid, COR_VERMELHO,"Use: /noticias [texto]");
  3014.     format(stralioti, sizeof(stralioti), "[REPÓRTER] %s: ", PlayerNome(playerid), texto);
  3015.     SendClientMessageToAll(COR_LARANJA, stralioti);
  3016.     return 1;
  3017. }
  3018.  
  3019. CMD:jogar(playerid) {
  3020.     if(Stralioti[playerid][pPM] <= 0 && Stralioti[playerid][pHelper] <= 0 && Stralioti[playerid][pReporter] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão");
  3021.     format(stralioti, sizeof(stralioti), "O %s saiu do trabalho ", PlayerNome(playerid));
  3022.     MensagemPerto(playerid, COR_KICK, stralioti, 50);
  3023.     SpawnPlayer(playerid);
  3024.     return 1;
  3025. }
  3026.  
  3027. CMD:bateria(playerid) {
  3028.     if(Stralioti[playerid][pBtr] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão");
  3029.     GivePlayerWeapon(playerid, 6, 999);
  3030.     return 1;
  3031. }
  3032.  
  3033. CMD:pbateria(playerid, params[]) {
  3034.     new i;
  3035.     if(Stralioti[playerid][pBtr] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão");
  3036.     LoopingAnim(playerid,"RAPPING","RAP_C_Loop",4.0,1,0,0,0,0);
  3037.     if(GetDistanceBetweenPlayers(playerid, i) <= 50)
  3038.     {
  3039.  
  3040.  
  3041.  
  3042.         PlayAudioStreamForPlayer(i, "https://dl.dropboxusercontent.com/s/l7izq2z7y4nha8f/Untitled.mp3", X, Y, Z, 100.0, 1);
  3043.     }
  3044.     return 1;
  3045. }
  3046.  
  3047. CMD:traficar(playerid, params[]) {
  3048.     if(Stralioti[playerid][pTrafico] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Tráficante");
  3049.  
  3050.     if(Stralioti[playerid][pTrafico] == 1 || Stralioti[playerid][pTrafico] == 2)
  3051.     {
  3052.  
  3053.  
  3054.  
  3055.  
  3056.         SetPlayerPos(playerid,-688.0933,946.2870,13.0313);
  3057.         SetPlayerArmour(playerid, 100);
  3058.         SetPlayerHealth(playerid, 100);
  3059.         SetPlayerColor(playerid, COR_TRF);
  3060.         GivePlayerWeapon(playerid, 22, 9999);
  3061.         GivePlayerWeapon(playerid, 25, 9999);
  3062.     }
  3063.     if(Stralioti[playerid][pTrafico] == 3)
  3064.     {
  3065.  
  3066.  
  3067.  
  3068.  
  3069.         SetPlayerColor(playerid, COR_TRF);
  3070.         SetPlayerPos(playerid,-688.0933,946.2870,13.0313);
  3071.         SetPlayerArmour(playerid, 100);
  3072.         SetPlayerHealth(playerid, 100);
  3073.         GivePlayerWeapon(playerid, 22, 9999);
  3074.         GivePlayerWeapon(playerid, 25, 9999);
  3075.         GivePlayerWeapon(playerid, 29, 9999);
  3076.     }
  3077.     if(Stralioti[playerid][pTrafico] == 4)
  3078.     {
  3079.  
  3080.  
  3081.  
  3082.  
  3083.         SetPlayerColor(playerid, COR_TRF);
  3084.         SetPlayerArmour(playerid, 100);
  3085.         SetPlayerHealth(playerid, 100);
  3086.         SetPlayerPos(playerid,-688.0933,946.2870,13.0313);
  3087.         GivePlayerWeapon(playerid, 25, 9999);
  3088.         GivePlayerWeapon(playerid, 29, 9999);
  3089.         GivePlayerWeapon(playerid, 24, 9999);
  3090.         GivePlayerWeapon(playerid, 30, 9999);
  3091.     }
  3092.     if(Stralioti[playerid][pTrafico] == 5)
  3093.     {
  3094.  
  3095.  
  3096.  
  3097.         SetPlayerArmour(playerid, 100);
  3098.         SetPlayerHealth(playerid, 100);
  3099.         SetPlayerPos(playerid,-688.0933,946.2870,13.0313);
  3100.         GivePlayerWeapon(playerid, 29, 9999);
  3101.         GivePlayerWeapon(playerid, 24, 9999);
  3102.         GivePlayerWeapon(playerid, 30, 9999);
  3103.         GivePlayerWeapon(playerid, 34, 9999);
  3104.         SetPlayerColor(playerid, COR_TRF);
  3105.     }
  3106.     format(stralioti, sizeof(stralioti), "O Tráficante %s foi para a HQ", PlayerNome(playerid));
  3107.     MensagemPerto(playerid, COR_KICK, stralioti, 50);
  3108.     return 1;
  3109. }
  3110.  
  3111. CMD:olhar(playerid, params[]) {
  3112.     if(Stralioti[playerid][pAdministrador] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  3113.     if(sscanf(params, "u", Id)) return SendClientMessage(playerid, COR_VERMELHO,"Use /olhar [id]");
  3114.     if(!IsPlayerConnected(Id))
  3115.     return SendClientMessage(playerid, COR_VERMELHO, "Este jogador não se encontra online");
  3116.     SendClientMessage(playerid, COR_AZULC,"Você entrou no modo espectador");
  3117.     TogglePlayerSpectating(Id, 1);
  3118.     return 1;
  3119. }
  3120.  
  3121. CMD:olhar_off(playerid, params[]) {
  3122.     if(Stralioti[playerid][pAdministrador] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  3123.     SendClientMessage(playerid, COR_VERMELHO,"Você saiu do modo espectador");
  3124.     TogglePlayerSpectating(Id, 0);
  3125.     return 1;
  3126. }
  3127.  
  3128. CMD:prender(playerid, params[]) {
  3129.     if(Stralioti[playerid][pAdministrador] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  3130.     if(sscanf(params, "uds", Id, minutos, motivo)) return SendClientMessage(playerid, COR_VERMELHO,"Use /prender [id] [minutos] [motivo]");
  3131.     if(!IsPlayerConnected(Id))
  3132.     return SendClientMessage(playerid, COR_VERMELHO,"Este jogador não se encontra online");
  3133.     SetPlayerInterior(playerid, 5);
  3134.     SetPlayerPos(playerid, 322.7717,305.9022,999.1484);
  3135.     format(stralioti, sizeof(stralioti), "O %s foi preso pelo Administrador %s tempo: %d motivo: %s", PlayerNome(playerid), PlayerNome(Id), minutos, motivo);
  3136.     SendClientMessageToAll(COR_KICK, stralioti);
  3137.     return 1;
  3138. }
  3139.  
  3140. CMD:cone(playerid, params[]) {
  3141.     if(Stralioti[playerid][pAdministrador] <= 0 && Stralioti[playerid][pHelper] <= 3 && Stralioti[playerid][pReporter] <= 0 && Stralioti[playerid][pPM] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão");
  3142.     new Float:XA, Float:YA, Float:ZA, Float:AB;
  3143.     GetPlayerPos(playerid, XA, YA, ZA);
  3144.     GetPlayerFacingAngle(playerid, AB);
  3145.     Stralioti[playerid][pCone] = CreateObject(1237, XA, YA, ZA-1.0, 0.0, 0.0, AB);
  3146.     SetPlayerPos(playerid, XA, YA, ZA+4);
  3147.     format(stralioti, sizeof(stralioti), "%s criou um cone.", PlayerNome(playerid));
  3148.     MensagemPerto(playerid, COR_AZULC, stralioti, 50);
  3149.     return 1;
  3150. }
  3151.  
  3152. CMD:grade(playerid, params[]) {
  3153.     if(Stralioti[playerid][pAdministrador] <= 0 && Stralioti[playerid][pHelper] <= 3 && Stralioti[playerid][pReporter] <= 0 && Stralioti[playerid][pPM] <= 0)return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão");
  3154.     new Float:XB, Float:YB, Float:ZB, Float:AC;
  3155.     GetPlayerPos(playerid, XB, YB, ZB);
  3156.     GetPlayerFacingAngle(playerid, AC);
  3157.     Stralioti[playerid][pGrade] = CreateObject(980, XB, YB, ZB-1.0, 0.0, 0.0, AC);
  3158.     SetPlayerPos(playerid, XB, YB, ZB+4);
  3159.     format(stralioti, sizeof(stralioti), "%s criou uma grade.", PlayerNome(playerid));
  3160.     MensagemPerto(playerid, COR_AZULC, stralioti, 50);
  3161.     return 1;
  3162. }
  3163.  
  3164. CMD:rgrade(playerid, params[]) {
  3165.     if(Stralioti[playerid][pAdministrador] <= 0 && Stralioti[playerid][pHelper] <= 3 && Stralioti[playerid][pReporter] <= 0 && Stralioti[playerid][pPM] <= 0)return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão");
  3166.     DestroyObject(Stralioti[playerid][pGrade]);
  3167.     Stralioti[playerid][pGrade] = 0;
  3168.     format(stralioti, sizeof(stralioti), "%s destruiu uma grade", PlayerNome(playerid));
  3169.     MensagemPerto(playerid, COR_VERMELHO, stralioti, 50);
  3170.     return 1;
  3171. }
  3172.  
  3173. CMD:rcone(playerid, params[]) {
  3174.     if(Stralioti[playerid][pAdministrador] <= 0 && Stralioti[playerid][pHelper] <= 3 && Stralioti[playerid][pReporter] <= 0 && Stralioti[playerid][pPM] <= 0)return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão");
  3175.     DestroyObject(Stralioti[playerid][pCone]);
  3176.     Stralioti[playerid][pCone] = 0;
  3177.     format(stralioti, sizeof(stralioti), "%s destruiu um cone", PlayerNome(playerid));
  3178.     MensagemPerto(playerid, COR_VERMELHO, stralioti, 50);
  3179.     return 1;
  3180. }
  3181.  
  3182. CMD:escudo(playerid, params[]) {
  3183.     if(Stralioti[playerid][pPM] <= 0)return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão");
  3184.     if(Escudo[playerid] == 1) {
  3185.         RemovePlayerAttachedObject(playerid,3);
  3186.         SendClientMessage(playerid, COR_VERMELHO,"Escudo Desativado");
  3187.         Escudo[playerid] = 0;
  3188.     }
  3189.     if(Escudo[playerid] == 0) {
  3190.         SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
  3191.         SendClientMessage(playerid, COR_AZULC,"Escudo Ativado");
  3192.         Escudo[playerid] = 1;
  3193.     }
  3194.     format(stralioti, sizeof(stralioti), "%s Ativou/Desativou o escudo", PlayerNome(playerid));
  3195.     MensagemPerto(playerid, COR_VERMELHO, stralioti, 50);
  3196.     return 1;
  3197. }
  3198.  
  3199. CMD:soltar(playerid, params[]) {
  3200.     if(Stralioti[playerid][pAdministrador] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  3201.     if(sscanf(params, "us", Id, motivo)) return SendClientMessage(playerid, COR_VERMELHO,"Use /soltar [id] [motivo]");
  3202.     if(!IsPlayerConnected(Id))
  3203.     return SendClientMessage(playerid, COR_VERMELHO,"Este jogador não se encontra online");
  3204.     SpawnPlayer(playerid);
  3205.     format(stralioti, sizeof(stralioti), "O %s foi solto pelo Administrador %s  motivo: %s", PlayerNome(playerid), PlayerNome(Id), motivo);
  3206.     SendClientMessageToAll(COR_KICK, stralioti);
  3207.     return 1;
  3208. }
  3209.  
  3210. CMD:clima(playerid, params[]) {
  3211.     new clima;
  3212.     if(Stralioti[playerid][pAdministrador] <= 5) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  3213.     if(sscanf(params, "d", clima)) return SendClientMessage(playerid, COR_VERMELHO,"Use: /clima [id]");
  3214.     SetWeather(clima);
  3215.     format(stralioti, sizeof(stralioti),"O %s alterou o clima para %d", PlayerNome(playerid), clima);
  3216.     SendClientMessageToAll(-1, stralioti);
  3217.     return 1;
  3218. }
  3219.  
  3220. CMD:congelar(playerid, params[]) {
  3221.     if(Stralioti[playerid][pAdministrador] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  3222.     if(sscanf(params, "u", Id)) return SendClientMessage(playerid, COR_VERMELHO,"Use /congelar [id]");
  3223.     if(!IsPlayerConnected(Id))
  3224.     return SendClientMessage(playerid, COR_VERMELHO,"Este jogador não se encontra online");
  3225.     TogglePlayerControllable(Id,0);
  3226.     format(stralioti, sizeof(stralioti), "O Administrador %s congelou o %s", PlayerNome(playerid), PlayerNome(Id));
  3227.     MensagemPerto(playerid, -1, stralioti, 50);
  3228.     return 1;
  3229. }
  3230.  
  3231. CMD:descongelar(playerid, params[]) {
  3232.     if(Stralioti[playerid][pAdministrador] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  3233.     if(sscanf(params, "u", Id)) return SendClientMessage(playerid, COR_VERMELHO,"Use /descongelar [id]");
  3234.     if(!IsPlayerConnected(Id))
  3235.     return SendClientMessage(playerid, COR_VERMELHO,"Este jogador não se encontra online");
  3236.     TogglePlayerControllable(Id,1);
  3237.     format(stralioti, sizeof(stralioti), "O Administrador %s descongelou o %s", PlayerNome(playerid), PlayerNome(Id));
  3238.     MensagemPerto(playerid, -1, stralioti, 50);
  3239.     return 1;
  3240. }
  3241.  
  3242. CMD:vidat(playerid) {
  3243.     new i;
  3244.     if(Stralioti[playerid][pAdministrador] <= 0 && Stralioti[playerid][pPux] <= 0 && Stralioti[playerid][pOrg] <= 0 && Stralioti[playerid][pVPresidente] <= 0 && Stralioti[playerid][pPresidente] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não tem permissão");
  3245.     if(GetDistanceBetweenPlayers(playerid, i) <= 30) {
  3246.         format(stralioti, sizeof(stralioti), "%s deu vida para todos", PlayerNome(playerid));
  3247.         MensagemPerto(playerid, COR_AZULC, stralioti, 50);
  3248.         SetPlayerHealth(i, 100);
  3249.     }
  3250.     return 1;
  3251. }
  3252.  
  3253. CMD:coletet(playerid) {
  3254.     new i;
  3255.     if(Stralioti[playerid][pAdministrador] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  3256.     if(GetDistanceBetweenPlayers(playerid, i) <= 30) {
  3257.         format(stralioti, sizeof(stralioti), "%s deu colete para todos", PlayerNome(playerid));
  3258.         MensagemPerto(playerid, COR_AZULC, stralioti, 50);
  3259.         SetPlayerArmour(i, 100);
  3260.     }
  3261.     return 1;
  3262. }
  3263.  
  3264. CMD:armas(playerid) {
  3265.     if(Stralioti[playerid][pAdministrador] <= 3) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  3266.     ShowPlayerDialog(playerid, ARMAS, DIALOG_STYLE_LIST, "ARMAS", "Soco Inglês\nTaco de Golf\nParaquedas\nMP5\nM4-A1\nFaca\nKatana\nDesert Eagle\nShotgun\nCombat Shotgun\nSniper Rifle", "Escolher", "Sair");
  3267.     return 1;
  3268. }
  3269.  
  3270. CMD:pinfo(playerid, params[]) {
  3271.     if(Stralioti[playerid][pAdministrador] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  3272.     if(sscanf(params, "u", Id)) return SendClientMessage(playerid, COR_VERMELHO,"Use /pinfo [id]");
  3273.     if(!IsPlayerConnected(Id))
  3274.     return SendClientMessage(playerid, COR_VERMELHO, "Este jogador não se encontra online");
  3275.     new ip[24];
  3276.     new Float:health;
  3277.     new Float:armour;
  3278.     new ping = GetPlayerPing(Id);
  3279.     GetPlayerHealth(Id, health);
  3280.     GetPlayerArmour(Id, armour);
  3281.     GetPlayerIp(Id, ip, sizeof ip);
  3282.  
  3283.     format(stralioti, sizeof(stralioti), "Informações de: %s", PlayerNome(playerid));
  3284.     SendClientMessage(playerid, -1, stralioti);
  3285.  
  3286.     format(stralioti, sizeof(stralioti), "IP: %s", ip);
  3287.     SendClientMessage(playerid, -1, stralioti);
  3288.     format(stralioti, sizeof(stralioti), "Vida: %.1f", health);
  3289.     SendClientMessage(playerid, -1, stralioti);
  3290.     format(stralioti, sizeof(stralioti), "Colete: %.1f", armour);
  3291.     SendClientMessage(playerid, -1, stralioti);
  3292.     format(stralioti, sizeof(stralioti), "Ping: %d", ping);
  3293.     SendClientMessage(playerid, -1, stralioti);
  3294.     return 1;
  3295. }
  3296.  
  3297. CMD:vida(playerid, params[]) {
  3298.     if(Stralioti[playerid][pAdministrador] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  3299.     if(sscanf(params,"uf",Id,vida)) return SendClientMessage(playerid, COR_VERMELHO,"Use /vida [id] [quantidade]");
  3300.     if(vida < 0 || vida  > 100) return SendClientMessage(playerid, COR_VERMELHO,"Quantidade invalida 0 - 100");
  3301.     SetPlayerHealth(Id,vida);
  3302.     format(stralioti, sizeof(stralioti), "O Administrador %s setou a vida do %s", PlayerNome(playerid), PlayerNome(Id));
  3303.     MensagemPerto(playerid, COR_AZULC, stralioti, 50);
  3304.     return 1;
  3305. }
  3306.  
  3307. CMD:cnn(playerid, params[]) {
  3308.     new i;
  3309.     if(Stralioti[playerid][pAdministrador] <= 0 && Stralioti[playerid][pPresidente] <= 0 && Stralioti[playerid][pVPresidente] <= 0 && Stralioti[playerid][pOrg] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  3310.     if(sscanf(params, "s", texto)) return SendClientMessage(playerid, COR_VERMELHO,"Use: /cnn [texto]");
  3311.     if(GetDistanceBetweenPlayers(playerid, i) <= 50){
  3312.         format(stralioti, sizeof(stralioti), "%s: %s", PlayerNome(playerid), texto);
  3313.         GameTextForAll(stralioti, 2000, 4);
  3314.     }
  3315.     return 1;
  3316. }
  3317.  
  3318. CMD:cnngm(playerid, params[]) {
  3319.     if(Stralioti[playerid][pAdministrador] <= 5) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  3320.     if(sscanf(params, "s", texto)) return SendClientMessage(playerid, COR_VERMELHO,"Use: /cnn [texto]");
  3321.     format(stralioti, sizeof(stralioti), "%s: %s", PlayerNome(playerid), texto);
  3322.     GameTextForAll(stralioti, 2000, 4);
  3323.     return 1;
  3324. }
  3325.  
  3326. CMD:colete(playerid, params[]) {
  3327.     if(Stralioti[playerid][pAdministrador] <= 0) return SendClientMessage(playerid, COR_VERMELHO,"Você não é um Administrador");
  3328.     if(sscanf(params,"uf",Id,colete)) return SendClientMessage(playerid, COR_VERMELHO,"Use /vida [id] [quantidade]");
  3329.     if(colete < 0 || colete  > 100) return SendClientMessage(playerid, COR_VERMELHO,"Quantidade invalida 0 - 100");
  3330.     SetPlayerArmour(Id,colete);
  3331.     format(stralioti, sizeof(stralioti), "O Administrador %s setou o colete do %s", PlayerNome(playerid), PlayerNome(Id));
  3332.     MensagemPerto(playerid, COR_AZULC, stralioti, 50);
  3333.     return 1;
  3334. }
  3335.  
  3336. ConvertDays(dias)
  3337. {
  3338.  
  3339.     new
  3340.         valueday = 86400*dias,
  3341.         daysconvert,
  3342.         gtime = gettime()
  3343.     ;
  3344.  
  3345.     #emit LOAD.S.PRI gtime
  3346.     #emit LOAD.S.ALT valueday
  3347.     #emit ADD
  3348.     #emit STOR.S.PRI daysconvert
  3349.  
  3350.     return daysconvert;
  3351. }
  3352.  
  3353. convertNumber(n)
  3354. {
  3355.     new dia, hr, mn, seg, resto;
  3356.  
  3357.     resto = n;
  3358.     seg = resto % 60;
  3359.     resto /= 60;
  3360.     mn = resto % 60;
  3361.     resto /= 60;
  3362.     hr = resto % 24;
  3363.     resto /= 24;
  3364.     dia = resto;
  3365.  
  3366.     new str[50];
  3367.     format(str, sizeof(str), "%ddias, %02dh %02dm %02ds", dia, hr, mn, seg);
  3368.     return str;
  3369. }
  3370.  
  3371. PlayerNome(playerid) {
  3372.     new nomeplayer[MAX_PLAYER_NAME];
  3373.     GetPlayerName(playerid, nomeplayer, sizeof(nomeplayer));
  3374.     return nomeplayer;
  3375. }
  3376.  
  3377. MensagemPerto(playerid, cor, text[], distancia)
  3378. {
  3379.  
  3380.     for(new i=0; i <= MAX_PLAYERS; i++)
  3381.     if(GetDistanceBetweenPlayers(playerid, i) <= distancia)
  3382.     {
  3383.         if(GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i))
  3384.         {
  3385.             new string[128];
  3386.             format(string, 128, text);
  3387.             SendClientMessage(i,cor,string);
  3388.         }
  3389.     }
  3390.     return 1;
  3391. }
  3392.  
  3393. GetDistanceBetweenPlayers(playerid,playerid2)
  3394. {
  3395.     new Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2;
  3396.     new Float:tmpdis;
  3397.     GetPlayerPos(playerid,x1,y1,z1);
  3398.     GetPlayerPos(playerid2,x2,y2,z2);
  3399.     tmpdis = floatsqroot(floatpower(floatabs(floatsub(x2,x1)),2)+floatpower(floatabs(floatsub(y2,y1)),2)+floatpower(floatabs(floatsub(z2,z1)),2));
  3400.     return floatround(tmpdis);
  3401. }
  3402.  
  3403. IsKeyJustDown(key, newkeys, oldkeys)
  3404. {
  3405.     if((newkeys & key) && !(oldkeys & key)) return 1;
  3406.     return 0;
  3407. }
  3408.  
  3409. public SendMessageToAdminsEx(const string[])
  3410.         {
  3411.             for(new i = 0; i <= HighestID; i++)
  3412.             {
  3413.                 if(IsPlayerConnected(i) == 1)
  3414.                 {
  3415.                     if(Stralioti[i][pAdministrador] <= 0)
  3416.                     {
  3417.                         SendClientMessage(i, 0xFFBD9DFF, string);
  3418.                     }
  3419.                 }
  3420.             }
  3421.             return 1;
  3422.         }
  3423.  
  3424. LoopingAnim(playerid,animlib[],animname[], Float:Speed, looping, lockx, locky, lockz, lp)
  3425. {
  3426.     if (gPlayerUsingLoopingAnim[playerid] == 1) TextDrawHideForPlayer(playerid,txtAnimHelper);
  3427.     gPlayerUsingLoopingAnim[playerid] = 1;
  3428.     ApplyAnimation(playerid, animlib, animname, Speed, looping, lockx, locky, lockz, lp);
  3429.     TextDrawShowForPlayer(playerid,txtAnimHelper);
  3430.     animation[playerid]++;
  3431. }
  3432.  
  3433. SendFamilyMessage(orgid, cor, mensagem[])
  3434. {
  3435.     for(new i = 0; i < MAX_PLAYERS; i++)
  3436.     {
  3437.  
  3438.  
  3439.  
  3440.  
  3441.  
  3442.         if(IsPlayerConnected(i))
  3443.         {
  3444.  
  3445.  
  3446.  
  3447.             if(Stralioti[i][pTrafico] == orgid)
  3448.             {
  3449.  
  3450.  
  3451.  
  3452.                 SendClientMessage(i, cor, mensagem);
  3453.             }
  3454.             if(Stralioti[i][pPM] == orgid)
  3455.             {
  3456.  
  3457.  
  3458.  
  3459.  
  3460.                 SendClientMessage(i, cor, mensagem);
  3461.             }
  3462.         }
  3463.     }
  3464.     return 0;
  3465. }
  3466.  
  3467. public SendMensagens()
  3468. {
  3469.     new string[265];
  3470.     new random1 = random(sizeof(Mensagens));
  3471.     new random2 = random(sizeof(Cores));
  3472.     format(string, sizeof(string), "[ANÚNCIO] %s", Mensagens[random1]);
  3473.     SendClientMessageToAll(Cores[random2],string);
  3474.     return 1;
  3475. }
  3476.  
  3477. SendMessageToReporter(color,const string[])
  3478. {
  3479.     for(new i = 0; i <= MAX_PLAYERS; i++)
  3480.     {
  3481.  
  3482.  
  3483.  
  3484.         if(IsPlayerConnected(i) == 1)
  3485.         {
  3486.  
  3487.  
  3488.  
  3489.             if(Stralioti[i][pReporter] >= 1)
  3490.             {
  3491.  
  3492.  
  3493.  
  3494.                 SendClientMessage(i, color, string);
  3495.             }
  3496.         }
  3497.     }
  3498.  
  3499.     return 1;
  3500. }
  3501.  
  3502. forward StraliotiTag(playerid);
  3503. public StraliotiTag(playerid) {
  3504.         if(Stralioti[playerid][pAdministrador] > 0) {
  3505.                 SetPlayerChatBubble(playerid, "Administrador", COR_ADMIN, 100.0, 6000);
  3506.         }
  3507.         return 1;
  3508. }
  3509.  
  3510. @pagamento();
  3511. public @pagamento()
  3512. {
  3513.     new Hour, Minute, Second;
  3514.     gettime(Hour, Minute, Second);
  3515.     if(!Minute)
  3516.     {
  3517.         for(new i = 0; i != MAX_PLAYERS; ++i) if(IsPlayerConnected(i))
  3518.         {
  3519.             GivePlayerMoney(i, VALOR);
  3520.             SetPlayerScore(i, GetPlayerScore(i) + 2);
  3521.             SavePlayer(i);
  3522.         }
  3523.     }
  3524.     return SendClientMessageToAll(COR_AZULC, "Payday: Você ganhou 5000 mil e 2 score's");
  3525. }
  3526.  
  3527. SendMessageToAdminsAndHelper(color,const string[])
  3528. {
  3529.     for(new i = 0; i <= MAX_PLAYERS; i++)
  3530.     {
  3531.         if(IsPlayerConnected(i) == 1)
  3532.         {
  3533.             if(Stralioti[i][pAdministrador] >= 1 || Stralioti[i][pHelper] >= 1)
  3534.             {
  3535.                 SendClientMessage(i, color, string);
  3536.             }
  3537.         }
  3538.     }
  3539.  
  3540.     return 1;
  3541. }
  3542.  
  3543. StopLoopingAnim(playerid)
  3544. {
  3545.     gPlayerUsingLoopingAnim[playerid] = 0;
  3546.     ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
  3547. }
  3548.  
  3549. forward Kicka(p); public Kicka(p) {
  3550.     #undef Kick
  3551.     Kick(p);
  3552.     #define Kick(%0) SetTimerEx("Kicka", 100, false, "i", %0)
  3553.     return 1;
  3554. }
  3555.  
  3556. forward Bana(p); public Bana(p) {
  3557.     #undef Ban
  3558.     Ban(p);
  3559.     #define Ban(%0) SetTimerEx("Bana", 100, false, "i", %0)
  3560.     return 1;
  3561. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement