Advertisement
Guest User

Death-Match Brasil v1.0e

a guest
Aug 25th, 2012
547
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 43.53 KB | None | 0 0
  1. // Includes
  2. #include <a_samp>
  3. #include <zcmd>
  4. #include <DOF2>
  5. #include <sscanf2>
  6.  
  7. // Cores
  8. #define Cor_Vip 0x00FAEDAA
  9. #define Cor_Admin 0xFF00FFAA
  10. #define Cor_Erro 0xFF000DAA
  11. #define Cor_Amarelo 0xFFFF00AA
  12. #define Cor_Vermelhoclaro 0xFF7878AA
  13. #define Cor_Laranja 0xFF8C00AA
  14. #define Cor_AsayVip 0x00BE00AA
  15. #define Cor_Roxo 0xC395F5AA
  16. #define Cor_Setar 0x33ACFEAA
  17. #define Cor_Verde 0xACF84CAA
  18. #define Cor_Cinza 0xC4C0C0AA
  19.  
  20. // Defines Gerais
  21. #define HOSTNAME "hostname [DMB] Death-Match Brasil - Oficial [0.3e]"
  22. #define MODE "mode [DMB]Mod v1.0e"
  23.  
  24. /* Classes = Skins:
  25. Rockeiro = 248
  26. Japones = 123
  27. Palhaço = 264
  28. Ladrao = 28
  29. Prostituta = 63
  30. */
  31.  
  32. /* Organizações:
  33. Reporter = 247
  34. Policial = 286
  35. */
  36.  
  37. // New's
  38. new jogadoresOnline;
  39. new clima;
  40. new tempo;
  41.  
  42. // Enum's
  43. enum pInfo
  44. {
  45.    pAdmin,
  46.    pVip,
  47.    pPolicial,
  48.    pReporter
  49. }
  50. new PlayerInfo[MAX_PLAYERS][pInfo];
  51. static
  52.     sPlayer
  53. ;
  54.  
  55. /* Algumas coisas utéis (Leia):
  56.  
  57.  Sobre sistemas do Gamemode:
  58.  
  59. - Adiministradores = Apenas 3 Leveis.
  60. - VIP's = Apenas 1 Level.
  61. - Policial = Apenas 1 Level.
  62. - Reporter = 1 Level
  63.  
  64. */
  65.  
  66. main()
  67. {
  68.     print("\n");
  69.     print("      Gamemode: Death-Match Brasil - Versão: v1.0e    ");
  70.     print("              Criado Por: Gabriel Santana             ");
  71.     print("             Agradecimentos: Anderson Thomas          ");
  72.     print("              Direito autoriais: Samp 0.3e            ");
  73.     print("       Contato: [email protected]      ");
  74.     print("     ATT: Gamemode Original, não retire os créditos.  ");
  75.     print("\n");
  76. }
  77.  
  78. public OnGameModeInit()
  79. {
  80.     UsePlayerPedAnims();
  81.     DisableInteriorEnterExits();
  82.     SetTimer("JFSRandom",60000,1);
  83.     SetGameModeText("[DMB]Mod v1.0e");
  84.     AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  85.     return 1;
  86. }
  87.  
  88. public OnGameModeExit()
  89. {
  90.     return 1;
  91. }
  92.  
  93. public OnPlayerRequestClass(playerid, classid)
  94. {
  95.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  96.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  97.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  98.     ApplyAnimation(playerid,"DANCING","DNCE_M_B",4.0,1,0,0,0,-1);
  99.     return 1;
  100. }
  101.  
  102. // Após os players se conectarem no servidor aparecerá as coisas a baixo.
  103. public OnPlayerConnect(playerid)
  104. {
  105.     jogadoresOnline++;
  106.     new name[MAX_PLAYER_NAME], string[200];
  107.     GetPlayerName(playerid, name, sizeof(string));
  108.     format(string, sizeof(string), "[NomeSV]: O Jogador %s entrou no servidor.", name);
  109.     SendClientMessageToAll(0xFFFFFFAA, string);
  110.     return 1;
  111. }
  112.  
  113. // Após os players se desconectarem no servidor aparecerá as coisas a baixo.
  114. public OnPlayerDisconnect(playerid, reason)
  115. {
  116.     jogadoresOnline--;
  117.     new name[MAX_PLAYER_NAME], string[200];
  118.     GetPlayerName(playerid, name, sizeof(string));
  119.     format(string, sizeof(string), "[NomeSV]: O Jogador %s saiu no servidor.", name);
  120.     SendClientMessageToAll(0xFFFFFFAA, string);
  121.     return 1;
  122. }
  123.  
  124. public OnPlayerSpawn(playerid)
  125. {
  126.     ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "[NomeSV]: Boas Vindas:", "Sejam bem vindo novamente ao nosso servidor,\nDivirta-se e aproveite.\nSempre siga as regras do servidor.\nATT: NomeSV", "Jogar", "");
  127.     return 1;
  128. }
  129.  
  130. public OnPlayerDeath(playerid, killerid, reason)
  131. {
  132.     new name[MAX_PLAYER_NAME];
  133.     new string[300];
  134.     GetPlayerName(killerid, name, sizeof(string));
  135.     format(string, sizeof(string), "[NomeSV]: O jogador %s foi kickado por atropelar outro jogador.", name);
  136.     SendClientMessageToAll(0xFF7878AA, string);
  137.     Kick(killerid);
  138.     return 1;
  139. }
  140.  
  141. public OnVehicleSpawn(vehicleid)
  142. {
  143.     return 1;
  144. }
  145.  
  146. public OnVehicleDeath(vehicleid, killerid)
  147. {
  148.     return 1;
  149. }
  150.  
  151. public OnPlayerText(playerid, text[])
  152. {
  153.     return 1;
  154. }
  155.  
  156. public OnPlayerCommandText(playerid, cmdtext[])
  157. {
  158.     return 1;
  159. }
  160.  
  161. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  162. {
  163.     return 1;
  164. }
  165.  
  166. public OnPlayerExitVehicle(playerid, vehicleid)
  167. {
  168.     return 1;
  169. }
  170.  
  171. public OnPlayerStateChange(playerid, newstate, oldstate)
  172. {
  173.     return 1;
  174. }
  175.  
  176. public OnPlayerEnterCheckpoint(playerid)
  177. {
  178.     return 1;
  179. }
  180.  
  181. public OnPlayerLeaveCheckpoint(playerid)
  182. {
  183.     return 1;
  184. }
  185.  
  186. public OnPlayerEnterRaceCheckpoint(playerid)
  187. {
  188.     return 1;
  189. }
  190.  
  191. public OnPlayerLeaveRaceCheckpoint(playerid)
  192. {
  193.     return 1;
  194. }
  195.  
  196. public OnRconCommand(cmd[])
  197. {
  198.     return 1;
  199. }
  200.  
  201. public OnPlayerRequestSpawn(playerid)
  202. {
  203.     return 1;
  204. }
  205.  
  206. public OnObjectMoved(objectid)
  207. {
  208.     return 1;
  209. }
  210.  
  211. public OnPlayerObjectMoved(playerid, objectid)
  212. {
  213.     return 1;
  214. }
  215.  
  216. public OnPlayerPickUpPickup(playerid, pickupid)
  217. {
  218.     return 1;
  219. }
  220.  
  221. public OnVehicleMod(playerid, vehicleid, componentid)
  222. {
  223.     return 1;
  224. }
  225.  
  226. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  227. {
  228.     return 1;
  229. }
  230.  
  231. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  232. {
  233.     return 1;
  234. }
  235.  
  236. public OnPlayerSelectedMenuRow(playerid, row)
  237. {
  238.     return 1;
  239. }
  240.  
  241. public OnPlayerExitedMenu(playerid)
  242. {
  243.     return 1;
  244. }
  245.  
  246. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  247. {
  248.     return 1;
  249. }
  250.  
  251. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  252. {
  253.     return 1;
  254. }
  255.  
  256. public OnRconLoginAttempt(ip[], password[], success)
  257. {
  258.     return 1;
  259. }
  260.  
  261. public OnPlayerUpdate(playerid)
  262. {
  263.     return 1;
  264. }
  265.  
  266. public OnPlayerStreamIn(playerid, forplayerid)
  267. {
  268.     return 1;
  269. }
  270.  
  271. public OnPlayerStreamOut(playerid, forplayerid)
  272. {
  273.     return 1;
  274. }
  275.  
  276. public OnVehicleStreamIn(vehicleid, forplayerid)
  277. {
  278.     return 1;
  279. }
  280.  
  281. public OnVehicleStreamOut(vehicleid, forplayerid)
  282. {
  283.     return 1;
  284. }
  285.  
  286. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  287. {
  288.     if(dialogid == 1)
  289. {
  290.     if(response)
  291. {
  292.  
  293.     if(listitem == 0)
  294. {
  295.     SetPlayerHealth(playerid, 100);
  296.     GivePlayerMoney(playerid, -200);
  297.     SendClientMessage(playerid, Cor_Setar, "** Você recuperou seu sangue completamente e lhe custou R$ 200,00.");
  298. }
  299.  
  300.     if(listitem == 1)
  301. {
  302.     SetPlayerArmour(playerid, 100);
  303.     GivePlayerMoney(playerid, -300);
  304.     SendClientMessage(playerid, Cor_Setar, "** Você recuperou seu colete completamente e lhe custou R$ 300,00.");
  305. }
  306. }
  307.     return 1;
  308. }
  309.     if(dialogid == 2)
  310. {
  311.     if(response)
  312. {
  313.  
  314.     if(listitem == 0)
  315. {
  316.     new Float:x, Float:y, Float:z;
  317.     GetPlayerPos(playerid, x, y, z);
  318.     CreateVehicle(560, x+1, y+1, z, 0, 1, 1, 10000);
  319.     SendClientMessage(playerid, -1, "** O veiculo sultan foi escolhido com sucesso.");
  320. }
  321.  
  322.     if(listitem == 1)
  323. {
  324.     new Float:x, Float:y, Float:z;
  325.     GetPlayerPos(playerid, x, y, z);
  326.     CreateVehicle(522, x+1, y+1, z, 0, 1, 1, 10000);
  327.     SendClientMessage(playerid, -1, "** O veiculo NGR-500 foi escolhido com sucesso.");
  328. }
  329.  
  330.     if(listitem == 2)
  331. {
  332.     new Float:x, Float:y, Float:z;
  333.     GetPlayerPos(playerid, x, y, z);
  334.     CreateVehicle(437, x+1, y+1, z, 0, 1, 1, 10000);
  335.     SendClientMessage(playerid, -1, "** O veiculo onibus foi escolhido com sucesso.");
  336. }
  337.  
  338.     if(listitem == 3)
  339. {
  340.     new Float:x, Float:y, Float:z;
  341.     GetPlayerPos(playerid, x, y, z);
  342.     CreateVehicle(411, x+1, y+1, z, 0, 1, 1, 10000);
  343.     SendClientMessage(playerid, -1, "** O veiculo infernus foi escolhido com sucesso.");
  344. }
  345.  
  346.     if(listitem == 4)
  347. {
  348.     new Float:x, Float:y, Float:z;
  349.     GetPlayerPos(playerid, x, y, z);
  350.     CreateVehicle(481, x+1, y+1, z, 0, 1, 1, 10000);
  351.     SendClientMessage(playerid, -1, "** O veiculo BMX foi escolhido com sucesso.");
  352. }
  353.  
  354.     if(listitem == 5)
  355. {
  356.     new Float:x, Float:y, Float:z;
  357.     GetPlayerPos(playerid, x, y, z);
  358.     CreateVehicle(483, x+1, y+1, z, 0, 1, 1, 10000);
  359.     SendClientMessage(playerid, -1, "** O veiculo camper foi escolhido com sucesso.");
  360. }
  361.  
  362.     if(listitem == 6)
  363. {
  364.     new Float:x, Float:y, Float:z;
  365.     GetPlayerPos(playerid, x, y, z);
  366.     CreateVehicle(510, x+1, y+1, z, 0, 1, 1, 10000);
  367.     SendClientMessage(playerid, -1, "** O veiculo moutan bike foi escolhido com sucesso.");
  368. }
  369.  
  370.     if(listitem == 7)
  371. {
  372.     new Float:x, Float:y, Float:z;
  373.     GetPlayerPos(playerid, x, y, z);
  374.     CreateVehicle(539, x+1, y+1, z, 0, 1, 1, 10000);
  375.     SendClientMessage(playerid, -1, "** O veiculo vortex foi escolhido com sucesso.");
  376. }
  377.  
  378.     if(listitem == 8)
  379. {
  380.     new Float:x, Float:y, Float:z;
  381.     GetPlayerPos(playerid, x, y, z);
  382.     CreateVehicle(419, x+1, y+1, z, 0, 1, 1, 10000);
  383.     SendClientMessage(playerid, -1, "** O veiculo esperanto foi escolhido com sucesso.");
  384. }
  385.  
  386.     if(listitem == 9)
  387. {
  388.     new Float:x, Float:y, Float:z;
  389.     GetPlayerPos(playerid, x, y, z);
  390.     CreateVehicle(434, x+1, y+1, z, 0, 1, 1, 10000);
  391.     SendClientMessage(playerid, -1, "** O veiculo hotknife foi escolhido com sucesso.");
  392. }
  393.  
  394.     if(listitem == 10)
  395. {
  396.     new Float:x, Float:y, Float:z;
  397.     GetPlayerPos(playerid, x, y, z);
  398.     CreateVehicle(439, x+1, y+1, z, 0, 1, 1, 10000);
  399.     SendClientMessage(playerid, -1, "** O veiculo stallion foi escolhido com sucesso.");
  400. }
  401. }
  402.     return 1;
  403. }
  404.     if(dialogid == 3)
  405. {
  406.     if(response)
  407. {
  408.  
  409.     if(listitem == 0)
  410. {
  411.     GivePlayerWeapon(playerid,1,500);
  412.     SendClientMessage(playerid, -1, "** A arma Brass Knuckles foi escolhida com sucesso.");
  413. }
  414.  
  415.     if(listitem == 1)
  416. {
  417.     GivePlayerWeapon(playerid,4,500);
  418.     SendClientMessage(playerid, -1, "** A arma faca foi escolhida com sucesso.");
  419. }
  420.  
  421.     if(listitem == 2)
  422. {
  423.     GivePlayerWeapon(playerid,12,500);
  424.     SendClientMessage(playerid, -1, "** A arma vibrador foi escolhida com sucesso.");
  425. }
  426.  
  427.     if(listitem == 3)
  428. {
  429.     GivePlayerWeapon(playerid,16,500);
  430.     SendClientMessage(playerid, -1, "** A arma granada foi escolhida com sucesso.");
  431. }
  432.  
  433.     if(listitem == 4)
  434. {
  435.     GivePlayerWeapon(playerid,22,500);
  436.     SendClientMessage(playerid, -1, "** A arma pistola foi escolhida com sucesso.");
  437. }
  438.  
  439.     if(listitem == 5)
  440. {
  441.     GivePlayerWeapon(playerid,24,500);
  442.     SendClientMessage(playerid, -1, "** A arma desert eagle foi escolhida com sucesso.");
  443. }
  444.  
  445.     if(listitem == 6)
  446. {
  447.     GivePlayerWeapon(playerid,27,500);
  448.     SendClientMessage(playerid, -1, "** A arma combat shotgun foi escolhida com sucesso.");
  449. }
  450.  
  451.     if(listitem == 7)
  452. {
  453.     GivePlayerWeapon(playerid,30,500);
  454.     SendClientMessage(playerid, -1, "** A arma AK-47 foi escolhida com sucesso.");
  455. }
  456.  
  457.     if(listitem == 8)
  458. {
  459.     GivePlayerWeapon(playerid,31,500);
  460.     SendClientMessage(playerid, -1, "** A arma M4 foi escolhida com sucesso.");
  461. }
  462.  
  463.     if(listitem == 9)
  464. {
  465.     GivePlayerWeapon(playerid,34,500);
  466.     SendClientMessage(playerid, -1, "** A arma sniper rifle foi escolhida com sucesso.");
  467. }
  468.  
  469.     if(listitem == 10)
  470. {
  471.     GivePlayerWeapon(playerid,38,500);
  472.     SendClientMessage(playerid, -1, "** A arma minigun foi escolhida com sucesso.");
  473. }
  474.  
  475.     if(listitem == 11)
  476. {
  477.     GivePlayerWeapon(playerid,43,500);
  478.     SendClientMessage(playerid, -1, "** A arma filmadora foi escolhida com sucesso.");
  479. }
  480.  
  481.     if(listitem == 12)
  482. {
  483.     GivePlayerWeapon(playerid,46,500);
  484.     SendClientMessage(playerid, -1, "** A arma paraquedas foi escolhida com sucesso.");
  485. }
  486. }
  487.     return 1;
  488. }
  489.     if(dialogid == 4)
  490. {
  491.     if(response)
  492. {
  493.  
  494.     if(listitem == 0)
  495. {
  496.     SetPlayerPos(playerid, -2335.7256,-1597.0514,483.7000);
  497.     SendClientMessage(playerid, -1, "** Você veio até o monte chilliad.");
  498. }
  499.  
  500.     if(listitem == 1)
  501. {
  502.     SetPlayerPos(playerid, 1503.3359, 1432.3585, 10.1191);
  503.     SendClientMessage(playerid, -1, "** Você veio até o aeroporto.");
  504. }
  505.  
  506.     if(listitem == 2)
  507. {
  508.     SetPlayerPos(playerid, 1481.1102,-1750.2552,15.4453);
  509.     SendClientMessage(playerid, -1, "** Você veio até a prefeitura.");
  510. }
  511.  
  512.     if(listitem == 3)
  513. {
  514.     SetPlayerPos(playerid, 2058.5627,2442.0891,165.6172);
  515.     SendClientMessage(playerid, -1, "** Você veio até o pulo e ganhou um paraquedas.");
  516.     GivePlayerWeapon(playerid, 45, 1);
  517. }
  518. }
  519.     return 1;
  520. }
  521.     if(dialogid == 5)
  522. {
  523.     if(response)
  524. {
  525.  
  526.     if(listitem == 0)
  527. {
  528.     SetPlayerPos(playerid, 2317.7126,1471.5417,10.8203);
  529.     SendClientMessage(playerid, -1, "** Classe ladrão escolhida com sucesso.");
  530.     SetPlayerSkin(playerid, 28);
  531. }
  532.  
  533.     if(listitem == 1)
  534. {
  535.     SetPlayerPos(playerid, 2799.6365,1269.3275,10.7500);
  536.     SendClientMessage(playerid, -1, "** Classe palhaço escolhida com sucesso.");
  537.     SetPlayerSkin(playerid, 264);
  538. }
  539.  
  540.     if(listitem == 2)
  541. {
  542.     SetPlayerPos(playerid, 2857.2480,915.4787,10.7500);
  543.     SendClientMessage(playerid, -1, "** Classe rockeiro escolhida com sucesso.");
  544.     SetPlayerSkin(playerid, 248);
  545. }
  546.  
  547.     if(listitem == 3)
  548. {
  549.     SetPlayerPos(playerid, 2089.7717,2479.3894,10.8203);
  550.     SendClientMessage(playerid, -1, "** Classe japones escolhida com sucesso.");
  551.     SetPlayerSkin(playerid, 123);
  552. }
  553. }
  554.     return 1;
  555. }
  556.     return 0;
  557. }
  558.  
  559. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  560. {
  561.     return 1;
  562. }
  563.  
  564. // Comando para ver seu ID.
  565. CMD:meuid(playerid)
  566. {
  567.    new string[80];
  568.    format(string, sizeof(string), "[NomeSV]: Seu ID atual é: %d.", playerid);
  569.    SendClientMessage(playerid, 0xFFFF00AA, string);
  570.    return 1;
  571. }
  572.  
  573. // Comando para banir os players.
  574. CMD:ban(playerid, params[])
  575. {
  576.     if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, Cor_Erro,"ERRO: Você não é um adiministrador ou nem tem level para usar esse comando.");
  577.     new PID;
  578.     new reason[64];
  579.     new str[128];
  580.     new Playername[MAX_PLAYER_NAME], Adminname[MAX_PLAYER_NAME];
  581.     GetPlayerName(playerid, Adminname, sizeof(Adminname));
  582.     GetPlayerName(PID, Playername, sizeof(Playername));
  583.     if(sscanf(params, "us[64]", PID,reason)) return SendClientMessage(playerid,  0xFF000DAA, "ERRO: Comando incorreto.");
  584.  
  585.     if(!IsPlayerConnected(PID))
  586.     return SendClientMessage(playerid, Cor_Erro, "ERRO: O jogador não está conectado.");
  587.  
  588.     format(str, sizeof(str), "[NomeSV]: O jogador %s foi banido pelo administrador %s | MOTIVO: %s ", Playername, Adminname, reason);
  589.     SendClientMessageToAll(0xFF7878AA, str);
  590.     Ban(PID);
  591.     return 1;
  592. }
  593.  
  594. // Comando para kickar os players.
  595. CMD:kick(playerid, params[])
  596. {
  597.     if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, Cor_Erro,"ERRO: Você não é um adiministrador ou nem tem level para usar esse comando.");
  598.     new PID;
  599.     new reason[64];
  600.     new str[128];
  601.     new Playername[MAX_PLAYER_NAME], Adminname[MAX_PLAYER_NAME];
  602.     GetPlayerName(playerid, Adminname, sizeof(Adminname));
  603.     GetPlayerName(PID, Playername, sizeof(Playername));
  604.     if(sscanf(params, "us[64]", PID,reason)) return SendClientMessage(playerid,  0xFF000DAA, "ERRO: Comando incorreto.");
  605.  
  606.     if(!IsPlayerConnected(PID))
  607.     return SendClientMessage(playerid, 0xFF000DAA, "ERRO: O jogador não está conectado.");
  608.  
  609.     format(str, sizeof(str), "[NomeSV]: O jogador %s foi kickado pelo administrador %s | MOTIVO: %s ", Playername, Adminname, reason);
  610.     SendClientMessageToAll(0xFF7878AA, str);
  611.     Kick(PID);
  612.     return 1;
  613. }
  614.  
  615. // Mensagens que ficam aparecendo automaticamente no servidor.
  616. new RandomJFS[][] =
  617. {
  618.     "[NomeSV]: Aproveite bem nosso servidor, ele oferece muitas coisas pra você jogar. ",
  619.     "[NomeSV]: Tá afim de se divertir voando? digite /teletransportes e fique a vontade.",
  620.     "[NomeSV]: Viu algum bug no gamemode? Avise aos adiministradores rápido, eles iram analizar.",
  621.     "[NomeSV]: Viu algum xiter no servidor? Denucie ele aos adiministradores usando o /reportar.",
  622.     "[NomeSV]: Tá afim de ver quem criou o gamemode? Digite /creditos e veja agora!",
  623.     "[NomeSV]: Sempre respeite os adiministradores do servidor, caso contrário poderá ser banido."
  624.  
  625.  };
  626.  forward JFSRandom();
  627. public JFSRandom()
  628. {
  629.     SendClientMessageToAll(Cor_Laranja, RandomJFS[random(sizeof(RandomJFS))]);
  630.     return 1;
  631. }
  632.  
  633. // Comando de dialoglist de sangue/colete.
  634. CMD:ajudah(playerid)
  635. {
  636.     if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, Cor_Erro,"ERRO: Você não é um adiministrador ou nem tem level para usar esse comando.");
  637.     ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Escolha sua Opção:", "Vida (R$ 200,00)\nColete (R$ 300,00)", "Selecionar", "Cancelar");
  638.     return 1;
  639. }
  640.  
  641. // Comando de dialoglist de veiculos.
  642. CMD:veh(playerid)
  643. {
  644.     if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, Cor_Erro,"ERRO: Você não é um adiministrador ou nem tem level para usar esse comando.");
  645.     ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Escolha seu Veiculo:", "Sultan\nNGR-500\nOnibus\nInfernus\nBMX\nCamper\nMountain Bike\nVortex\nEsperanto\nHotknife\nStallion", "Selecionar", "Cancelar");
  646.     return 1;
  647. }
  648.  
  649. // Comando de dialoglist de armas.
  650. CMD:armas(playerid)
  651. {
  652.     if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, Cor_Erro,"ERRO: Você não é um adiministrador ou nem tem level para usar esse comando.");
  653.     ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Escolha sua Arma:", "Brass Knuckles\nFaca\nVibrador\nGranada\nPistola\nDesert Eagle\nCombat Shotgun\nMP5\nM4\nSniper Rifle\nMinigun\nCamera\nParaquedas", "Selecionar", "Cancelar");
  654.     return 1;
  655. }
  656.  
  657. // Comando para criar um jetpack.
  658. CMD:jetpack(playerid)
  659. {
  660.     if(!IsPlayerAdmin(playerid))
  661.     if(PlayerInfo[playerid][pVip] == 1) return SendClientMessage(playerid, 0xFF000DAA, "ERRO: Você não é um player VIP para usar esse comando.");
  662.     SetPlayerSpecialAction(playerid, 2);
  663.     SendClientMessage(playerid, 0x00FAEDAA, "[NomeSV]: Jetpack criado com sucesso!");
  664.     SendClientMessage(playerid, -1, "[Aperte 'Espaço' para subir, 'Setas' para cotrolar e 'Shift' para descer]");
  665.     return 1;
  666. }
  667.  
  668. // Comando para deletar veiculos.
  669. CMD:delcar(playerid)
  670. {
  671.     if(!IsPlayerAdmin(playerid))
  672.     if(PlayerInfo[playerid][pVip] == 1) return SendClientMessage(playerid, 0xFF000DAA, "ERRO: Você não é um player VIP para usar esse comando.");
  673.     new Criado = GetPlayerVehicleID(playerid);
  674.     SendClientMessage(playerid, 0x00FAEDAA, "[NomeSV]: Carro deletado com sucesso.");
  675.     DestroyVehicle(Criado);
  676.     return 1;
  677. }
  678.  
  679. // Todos comandosvip.
  680. CMD:comandosvip(playerid)
  681. {
  682.     ShowPlayerDialog(playerid, 3, DIALOG_STYLE_MSGBOX,  "[NomeSV]: Comandos de VIP:", "\nQuer virar VIP? Nesse gamemode as vantagens desse sistema prevalece.\n\nAlguns Comandos VIP's:\n/delcar - Deletar os veiculos desejados.\n/v - Chat vip (Reservado)\n/Jetpack - Cria um jetpack.\n/espacovip - Vai para um lugar reservado dos VIP's.\n/Kitvip - Cria um kitVip com armas entre outras coisas.\n\nEsses são alguns comandos Vip's, por isso adquiram e aproveitem.", "Voltar", "");
  683.     return 1;
  684. }
  685.  
  686. // Comando para adiministradores logados na rcon para virar admin.
  687. CMD:viraradmin(playerid, params[])
  688. {
  689.     if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF000DAA, "ERRO: Você não é um adiministrador ou nem tem level para usar esse comando.");
  690.     SendClientMessage(playerid, Cor_Setar, "[NomeSV]: Parabens, você virou um adiministrador por estar logado na rcon.");
  691.     return 1;
  692. }
  693.  
  694. // (Comando de adiministrador lvl 3)
  695. // Comando para adiministradores logados na rcon para virar vip.
  696. CMD:virarvip(playerid, params[])
  697. {
  698.     if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Cor_Erro, "ERRO: Você não é um adiministrador ou nem tem level para usar esse comando.");
  699.     PlayerInfo[playerid][pAdmin] = 3;
  700.     SendClientMessage(playerid, Cor_Setar, "[NomeSV]: Parabens, você virou um player VIP por estar logado na rcon.");
  701.     SendClientMessage(playerid, -1, "** Para ver seus comandos Vip digite '/comandosvip' e aproveite.");
  702.     return 1;
  703. }
  704.  
  705. // (Comando de adiministrador lvl 3)
  706. // Comando para reiniciar o servidor.
  707. CMD:reiniciarsv(playerid, params[])
  708. {
  709.     if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, Cor_Erro,"ERRO: Você não é um adiministrador ou nem tem level para usar esse comando.");
  710.     PlayerInfo[playerid][pAdmin] = 3;
  711.     new name[MAX_PLAYER_NAME], string[300];
  712.     GetPlayerName(playerid, name, sizeof(name));
  713.     format(string, sizeof(string), "[NomeSV]: O Adiministrador %s está reiniciando o servidor, aguarde alguns segundos.", name);
  714.     SendClientMessageToAll(-1, string);
  715.     SendRconCommand("gmx");
  716.     return 1;
  717. }
  718.  
  719. // (Comando de adiministrador lvl 3)
  720. // Comando para dar vip para outros players.
  721. CMD:setvip(playerid, params[])
  722. {
  723.     new string[300];
  724.     strval(params);
  725.     if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Cor_Erro, "ERRO: Você não é um adiministrador ou nem tem level para usar esse comando.");
  726.     if(!IsPlayerConnected(sPlayer))
  727.     return SendClientMessage(playerid, Cor_Erro, "ERRO: O jogador não está conectado.");
  728.     new Nome[MAX_PLAYER_NAME];
  729.     GetPlayerName(playerid, Nome, sizeof(Nome));
  730.     format(string, 80, "[NomeSV]: O Administrador %s acaba de dar a você VIP.", Nome, playerid);
  731.     SendClientMessage(sPlayer, Cor_Setar, string);
  732.     PlayerInfo[sPlayer][pVip] = 1;
  733.     return 1;
  734. }
  735.  
  736. // Comando para tunar os veiculos.
  737. CMD:tunar(playerid)
  738. {
  739.     if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Cor_Erro, "ERRO: Você não é um adiministrador, não é VIP, ou nem tem level para usar esse comando.");
  740.     PlayerInfo[sPlayer][pVip] = 1;
  741.     new VehicleID;
  742.     VehicleID = GetPlayerVehicleID(playerid);
  743.     SendClientMessage(playerid, Cor_Vip, "[NomeSV]: Seu carro foi tunado com sucesso.");
  744.     SendClientMessage(playerid, -1, "[Para ativar o turbo aperta no número '0' do seu teclado]");
  745.     AddVehicleComponent(VehicleID, 1087);
  746.     AddVehicleComponent(VehicleID, 1078);
  747.     AddVehicleComponent(VehicleID, 1010);
  748.     return 1;
  749. }
  750.  
  751. // Comando para amostrar quantos players tem online.
  752. CMD:online(playerid, params[])
  753. {
  754.     new string[256];
  755.     format(string, sizeof(string), "[NomeSV]: Tem [%d] jogadores online no servidor.", jogadoresOnline);
  756.     SendClientMessageToAll(Cor_Amarelo, string);
  757.     return 1;
  758. }
  759.  
  760. // Comando para mandar mensagens dos VIP's ao servidor.
  761. CMD:asay(playerid, params[])
  762. {
  763.     if(PlayerInfo[playerid][pVip] == 1) return SendClientMessage(playerid, 0xFF000DAA, "ERRO: Você não é um player VIP para usar esse comando.");
  764.     new nome[MAX_PLAYER_NAME];
  765.     new string[250];
  766.     GetPlayerName(playerid, nome, sizeof(nome));
  767.     format(string, sizeof(string), "[VIP]%s: %s", nome, params);
  768.     SendClientMessageToAll(Cor_Vip, string);
  769.     return 1;
  770. }
  771.  
  772. // (Comando de adiministrador lvl 3)
  773. // Comando para fechar o servidor.
  774. CMD:exitsv(playerid, params[])
  775. {
  776.     if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF000DAA, "ERRO: Você não é um adiministrador ou nem tem level para usar esse comando.");
  777.     PlayerInfo[playerid][pAdmin] = 3;
  778.     new name[MAX_PLAYER_NAME], string[300];
  779.     GetPlayerName(playerid, name, sizeof(name));
  780.     format(string, sizeof(string), "[NomeSV]: O Adiministrador %s desligou o servidor, aguarde alguns minutos.", name);
  781.     SendClientMessageToAll(-1, string);
  782.     SendRconCommand("exit");
  783.     return 1;
  784. }
  785.  
  786. // Comando para dar equipamentos para os VIP's.
  787. CMD:kitvip(playerid)
  788. {
  789.     new pname[MAX_PLAYER_NAME], string[124 + MAX_PLAYER_NAME];
  790.     GetPlayerName(playerid, pname, sizeof(pname));
  791.     if(PlayerInfo[playerid][pVip] == 1) return SendClientMessage(playerid, 0xFF000DAA, "ERRO: Você não é um player VIP para usar esse comando.");
  792.     GivePlayerMoney(playerid,-350);
  793.     GivePlayerWeapon(playerid,1,500);
  794.     GivePlayerWeapon(playerid,10,500);
  795.     GivePlayerWeapon(playerid,5,500);
  796.     GivePlayerWeapon(playerid,43,500);
  797.     GivePlayerWeapon(playerid,46,500);
  798.     format(string, sizeof(string), "[NomeSV]: O jogador %s comprou seu KitVip.", pname);
  799.     SendClientMessageToAll(Cor_Amarelo, string);
  800.     return 1;
  801. }
  802.  
  803. // (Comando de adiministrador lvl 1)
  804. // Comando para dar vida a todos.
  805. CMD:vidat(playerid)
  806. {
  807.     new Float:X, Float:Y, Float:Z;
  808.     if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Cor_Erro, "ERRO: Você não é um adiministrador ou nem tem level para usar esse comando.");
  809.     PlayerInfo[playerid][pAdmin] = 1;
  810.     GetPlayerPos(playerid, X, Y, Z);
  811.     for(new x = 0; x < MAX_PLAYERS; x++) {
  812.     if(IsPlayerInRangeOfPoint(x, 50.0, X, Y, Z)) {
  813.     SetPlayerHealth(x, 100);
  814.     new nome[MAX_PLAYER_NAME], stringnome[300];
  815.     GetPlayerName(playerid, nome, sizeof(nome));
  816.     format(stringnome, sizeof(stringnome), "[NomeSV]: O jogador %s deu vida a todos perto dele.",nome);
  817.     SendClientMessage(x, Cor_Roxo, stringnome);
  818. }
  819. }
  820.     return 1;
  821. }
  822.  
  823. // (Comando de adiministrador lvl 1)
  824. // Comando para dar colete a todos.
  825. CMD:coletet(playerid)
  826. {
  827.     new Float:X, Float:Y, Float:Z;
  828.     if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, Cor_Erro, "ERRO: Você não é um adiministrador ou nem tem level para usar esse comando.");
  829.     PlayerInfo[playerid][pAdmin] = 1;
  830.     GetPlayerPos(playerid, X, Y, Z);
  831.     for(new x = 0; x < MAX_PLAYERS; x++) {
  832.     if(IsPlayerInRangeOfPoint(x, 50.0, X, Y, Z)) {
  833.     SetPlayerArmour(x, 100);
  834.     new nome[MAX_PLAYER_NAME], stringnome[300];
  835.     GetPlayerName(playerid, nome, sizeof(nome));
  836.     format(stringnome, sizeof(stringnome), "[NomeSV]: O jogador %s deu colete a todos perto dele.",nome);
  837.     SendClientMessage(x,Cor_Roxo, stringnome);
  838. }
  839. }
  840.     return 1;
  841. }
  842.  
  843. // (Comando de adiministrador lvl 2)
  844. // Comando para setar as skins dos outros.
  845. CMD:setskin(playerid, params[])
  846. {
  847.     if(PlayerInfo[playerid][pAdmin] == 2) return SendClientMessage(playerid, Cor_Erro, "ERRO: Você não é um adiministrador ou nem tem level para usar esse comando.");
  848.     new Skin,ID,string[128];
  849.     if(sscanf(params, "ui", ID, Skin)) return SendClientMessage(playerid, Cor_Amarelo, "[NomeSV]: Uso do Comando Correto: /setskin [ID] [Skin]");
  850.     if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, Cor_Erro, "ERRO: ID invalido.");
  851.     if(0 > Skin > 299) return SendClientMessage(playerid, Cor_Erro, "ERRO: ID Invalido, use ID de 0 a 299.");
  852.     format(string, sizeof(string), "[NomeSV]: O Adiministrador %s alterou a skin de %s para o ID: [%d].", pegarnome(playerid), pegarnome(ID), Skin);
  853.     SendClientMessageToAll(Cor_Setar, string);
  854.     SetPlayerSkin(ID, Skin);
  855.     return 1;
  856. }
  857. stock pegarnome(p)
  858. {
  859.     static nome[MAX_PLAYER_NAME + 1];
  860.     GetPlayerName(p,nome,sizeof nome);
  861.     return nome;
  862. }
  863.  
  864. // (Comando de adiministrador lvl 3)
  865. // Comando para setar outros players de admin.
  866. CMD:setadmin(playerid,params[])
  867. {
  868.     new id, nivel;
  869.     new name[MAX_PLAYER_NAME], string[128];
  870.     if(PlayerInfo[playerid][pAdmin] < 3 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "ERRO: Você não é um administrador ou nem tem level para usar esse comando.");
  871.     if(sscanf(params, "ud", id, nivel)) return SendClientMessage(playerid, Cor_Amarelo, "[NomeSV]: Uso do Comando Correto: /setadmin [ID] [nivel]");
  872.     PlayerInfo[id][pAdmin] = nivel;
  873.     GetPlayerName(id, name, sizeof(name));
  874.     format(string, sizeof(string), "[NomeSV]: O jogador %s é o novo adiministrador do servidor.", name);
  875.     SendClientMessageToAll(Cor_Amarelo, string);
  876.     SendClientMessage(id, Cor_Setar, "[NomeSV]: Você foi setado de adiministrador, parabéns.");
  877.     SendClientMessage(id, Cor_Setar, "[NomeSV]: Adiministre bem o servidor, aproveite.");
  878.     return 1;
  879. }
  880.  
  881. // (Comando de adiministrador lvl 3)
  882. // Comando para setar outros players de policial.
  883. CMD:setpm(playerid, params[])
  884. {
  885.     new id;
  886.     new nivel;
  887.     new name[MAX_PLAYER_NAME], string[250];
  888.     if(PlayerInfo[playerid][pAdmin] == 3) return SendClientMessage(playerid, Cor_Erro, "ERRO: Você não é um adiministrador ou nem tem level para usar esse comando.");
  889.     if(sscanf(params, "ud", id, nivel)) return SendClientMessage(playerid, Cor_Amarelo, "[NomeSV]: Uso do Comando Correto: /setpm [ID] [Nivel]");
  890.     PlayerInfo[id][pPolicial] = nivel;
  891.     GetPlayerName(playerid, name, sizeof(name));
  892.     format(string, sizeof(string), "[NomeSV]: O adiministrador %s setou o jogador %s de policial.", namep(playerid), namep(id));
  893.     SendClientMessageToAll(Cor_Amarelo, string);
  894.     SendClientMessage(playerid, Cor_Setar, "[NomeSV]: Você foi setado de policial, parabens.");
  895.     SendClientMessage(playerid, -1, "[NomeSV]: Para se equipar digite '/equiparpm' e estará trabalhando.");
  896.     return 1;
  897. }
  898.  
  899. namep(playerid)
  900. {
  901.     new n[MAX_PLAYER_NAME];
  902.     GetPlayerName(playerid, n, sizeof(n));
  903.     return n;
  904. }
  905.  
  906. // (Comando de policial lvl 1)
  907. // Comando de policial, para se equipar.
  908. CMD:equiparpm(playerid)
  909. {
  910.     if(gettime() < GetPVarInt(playerid, "podeUsarComando")) return SendClientMessage(playerid, Cor_Erro, "ERRO: Aguarde alguns minutos para poder usar o comando novamente.");
  911.     new name[MAX_PLAYER_NAME], string[250];
  912.     if(PlayerInfo[playerid][pPolicial] < 1) return SendClientMessage(playerid, Cor_Erro, "ERRO: Você não é um policial para usar esse comando.");
  913.     GivePlayerWeapon(playerid, 3, 800);
  914.     GivePlayerWeapon(playerid, 22, 800);
  915.     GivePlayerWeapon(playerid, 29, 800);
  916.     GivePlayerWeapon(playerid, 34, 800);
  917.     GivePlayerWeapon(playerid, 41, 800);
  918.     GivePlayerWeapon(playerid, 45, 800);
  919.     GetPlayerName(playerid, name, sizeof(name));
  920.     format(string, sizeof(string), "[NomeSV]: O Policial %s está trabalhando.", name);
  921.     SendClientMessageToAll(Cor_Amarelo, string);
  922.     SendClientMessage(playerid, -1, "[NomeSV]: ** Prenda os jogadores que não estão jogando como deve ser.");
  923.     SetPlayerSkin(playerid, 286);
  924.     SetPlayerColor(playerid, Cor_Cinza);
  925.     SetPVarInt(playerid, "podeUsarComando", gettime() + 20 * 40);
  926.     return 1;
  927. }
  928.  
  929. // Comando para se matar.
  930. CMD:kill(playerid)
  931. {
  932.     SetPlayerHealth(playerid, 0);
  933.     new name[MAX_PLAYER_NAME], string[250];
  934.     GetPlayerName(playerid, name, sizeof(name));
  935.     format(string, sizeof(string), "[NomeSV]: O jogador %s digitou /kill e se matou.", name);
  936.     SendClientMessageToAll(Cor_Amarelo, string);
  937.     SendClientMessage(playerid, Cor_Erro, "[NomeSV]: Você acabou de se matar.");
  938.     return 1;
  939. }
  940.  
  941. // (Comando de adiministrador lvl 3)
  942. // Comando para os adiministradores receberem R$ 200,00.
  943. CMD:admingrana(playerid)
  944. {
  945.     if(gettime() < GetPVarInt(playerid, "podeUsarComando")) return SendClientMessage(playerid, Cor_Erro, "ERRO: Aguarde alguns minutos para poder usar o comando novamente.");
  946.     if(PlayerInfo[playerid][pAdmin] >= 2) return SendClientMessage(playerid, Cor_Erro, "ERRO: Você não é um adiministrador ou nem tem level para usar esse comando.");
  947.     GivePlayerMoney(playerid, 200);
  948.     SendClientMessage(playerid, Cor_Setar,"[NomeSV]: Você recebeu R$ 200,00 após usar o comando.");
  949.     SendClientMessage(playerid, -1,"** Não é possivel usar o comando '/admingrana' frequentemente.");
  950.     SetPVarInt(playerid, "podeUsarComando", gettime() + 30 * 60);
  951.     return 1;
  952. }
  953.  
  954. // Comando para virar o veiculo.
  955. CMD:virar(playerid)
  956. {
  957.     if(IsPlayerInAnyVehicle(playerid))
  958.     SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.0, 0.0, 0.2);
  959.     return 1;
  960. }
  961.  
  962. // (Comando de adiministrador lvl 3)
  963. // Comando para dar respawn em todos veiculos do servidor.
  964. CMD:rtc(playerid, params[])
  965. {
  966.     #pragma unused params
  967.     if(PlayerInfo[playerid][pAdmin] >= 3) return SendClientMessage(playerid, Cor_Erro, "[NomeSV]: Você não é um adiministrador ou nem tem level para usar esse comando.");
  968.     for(new i;i<MAX_VEHICLES;i++)
  969. {
  970.     SetVehicleToRespawn(i);
  971. }
  972.     new nome[MAX_PLAYER_NAME], stringnome[300];
  973.     GetPlayerName(playerid, nome, sizeof(nome));
  974.     format(stringnome, sizeof(stringnome), "[NomeSV]: Os veiculos do servidor foram respawndos pelo administrador %s com sucesso.",nome);
  975.     SendClientMessageToAll(-1, stringnome);
  976.     return 1;
  977. }
  978.  
  979. // Comandos para ver os adiministradores logados na rcon.
  980. CMD:logadosrcon(playerid, params[])
  981. {
  982.     SendClientMessage(playerid, Cor_Verde, "[NomeSV]: Usuarios logados na rcon:");
  983.     new count=0;
  984.     new name[24];
  985.     new string[124];
  986.     GetPlayerName(playerid, name, 24);
  987.     for(new i; i < 500; i++) if(IsPlayerAdmin(i))
  988. {
  989.     format(string,256,"%s ",name);
  990.     SendClientMessage(playerid,-1,string);
  991.     count++;
  992. }
  993.     if(count == 0)
  994. {
  995.     SendClientMessage(playerid, Cor_Erro, "[NomeSV]: Não tem nenhum usuario logado na rcon nesse momento.");
  996. }
  997.     return 1;
  998. }
  999.  
  1000. // Comando de regras do gamemode.
  1001. CMD:regras(playerid, params[])
  1002. {
  1003.     new str[850];
  1004.     strcat(str,"Não faça DB em outros players, caso contrário será kickado ou preso por\n");
  1005.     strcat(str,"dez minutos pelos policias ou adiministradores;\n\n");
  1006.     strcat(str,"Nunca use xiters (hack), você será banido permanentimente.\n");
  1007.     strcat(str,"Não desrrespeite os administradores do servidor e organizadores da sua torcida.\n\n");
  1008.     strcat(str,"Não fuja de confrontos, você poderá ser kickado.\n\n");
  1009.     strcat(str,"OBS: Caso você use hack no servidor e seja banido, não nos responsabilizamos pelo\n");
  1010.     strcat(str,"seu VIP, os dias irão passar normalmente, por isso não usem xiter.");
  1011.     ShowPlayerDialog(playerid, 8439, DIALOG_STYLE_MSGBOX, "[NomeSV]: Regras do Servidor:", str, "Ok", "Fechar");
  1012.     return 1;
  1013. }
  1014.  
  1015. // Comando para animação.
  1016. CMD:wave(playerid)
  1017. {
  1018.    if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  1019.    ApplyAnimation(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
  1020.    return 1;
  1021. }
  1022.  
  1023. // Comando para animação.
  1024. CMD:crossarms(playerid)
  1025. {
  1026.    if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  1027.    ApplyAnimation(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
  1028.    return 1;
  1029. }
  1030.  
  1031. // Comando para animação.
  1032. CMD:sentar(playerid)
  1033. {
  1034.    if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  1035.    ApplyAnimation(playerid, "BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
  1036.    return 1;
  1037. }
  1038.  
  1039. // Comando para animação.
  1040. CMD:handsup(playerid)
  1041. {
  1042.     SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
  1043.     return 1;
  1044. }
  1045.  
  1046. // Comando para animação.
  1047. CMD:pee(playerid)
  1048. {
  1049.     SetPlayerSpecialAction(playerid,68);
  1050.     return 1;
  1051. }
  1052.  
  1053. // Comando para sair de animação.
  1054. CMD:sairan(playerid)
  1055. {
  1056.     ClearAnimations(playerid);
  1057.     new nome[MAX_PLAYER_NAME], stringnome[300];
  1058.     GetPlayerName(playerid, nome, sizeof(nome));
  1059.     format(stringnome, sizeof(stringnome), "SERVER: O Jogador %s saiu da sua animação, caso queira sair digite /sairan e sairá.", nome);
  1060.     SendClientMessageToAll(Cor_Amarelo, stringnome);
  1061.     return 1;
  1062. }
  1063.  
  1064. // Comando para teletransportes do servidor.
  1065. CMD:teletransportes(playerid)
  1066. {
  1067.     ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Escolha pra onde você quer ir:", "Monte Chilliad\nAeroporto\nPrefeitura\nPulo [Paraquedas]", "Selecionar", "Cancelar");
  1068.     return 1;
  1069. }
  1070.  
  1071. // Comando de ajuda do gamemode.
  1072. CMD:ajuda(playerid, params[])
  1073. {
  1074.     new str[850];
  1075.     strcat(str,"[DMB] é um gamemode que amostra a guerra de 'Death-Match' \n");
  1076.     strcat(str,"que lutam por dominar seus lugares fixos.\n\n");
  1077.     strcat(str,"Aqui você tem sua própria conta e pode interagir com membros da sua gang\n");
  1078.     strcat(str,"e de outras gangs também, afinal, você pode fazer novos amigos.\n\n");
  1079.     strcat(str,"Diferente de outros gamemodes, temos muitas opções de jogabilidade,\n");
  1080.     strcat(str,"e os jogadores sempre tem algo a fazer, ficando 24h conectados.\n");
  1081.     strcat(str,"Temos diversos sistemas nesse gamemode que ainda mais vai divertir você completamente.\n");
  1082.     strcat(str,"Temos varias organizações, como policias, repórteres entre outros.\n\n");
  1083.     strcat(str,"Tá afim de saber quem criou o gamemode? Digite /creditos e fique a vontade.\n");
  1084.     strcat(str,"Nosso gamemode é próprio para o servidor Brazukas Gangs.");
  1085.     ShowPlayerDialog(playerid, 8439, DIALOG_STYLE_MSGBOX, "[NomeSV]: FAQ - Como é o Servidor?", str, "Ok", "Fechar");
  1086.     return 1;
  1087. }
  1088.  
  1089. // Comando para pular.
  1090. CMD:pular(playerid)
  1091. {
  1092.     new Float:x, Float:y, Float:z;
  1093.     GetPlayerPos(playerid, x, y, z);
  1094.     SetPlayerPos(playerid, x, y, z +1);
  1095.     return 1;
  1096. }
  1097.  
  1098. // Comando para reparar o veiculo.
  1099. CMD:reparar(playerid, params[])
  1100. {
  1101.     if(!IsPlayerInAnyVehicle(playerid))
  1102. {
  1103.     SendClientMessage(playerid, Cor_Erro, "ERRO: Você não está dentro de um Veículo.");
  1104.     return 1;
  1105. }
  1106.     GetPlayerVehicleID(playerid);
  1107.     RepairVehicle(GetPlayerVehicleID(playerid));
  1108.     SendClientMessage(playerid, Cor_Amarelo, "[NomeSV]: Veículo reparado com sucesso.");
  1109.     return 1;
  1110. }
  1111.  
  1112. // Comando para alterar sua skin.
  1113. CMD:skin(playerid, params[])
  1114. {
  1115.     new skinid;
  1116.     if(sscanf(params, "i", skinid)) return SendClientMessage(playerid, Cor_Erro, "ERRO: Comando incorreto.");
  1117.     if(skinid < 1 || skinid > 299) return SendClientMessage(playerid, Cor_Amarelo, "[NomeSV]: Skins Disponiveis: 1 - 299.");
  1118.     SetPlayerSkin(playerid, skinid);
  1119.     SendClientMessage(playerid, Cor_Amarelo, "[NomeSV]: Skin escolhida com Sucesso.");
  1120.     return 1;
  1121. }
  1122.  
  1123. // Comando para ver os admins online no servidor.
  1124. CMD:admins(playerid)
  1125. {
  1126.     new Jogador[24];
  1127.     new count=0;
  1128.     new msg[120];
  1129.     for(new i=0; i<MAX_PLAYERS; i++)
  1130. {
  1131.     if(IsPlayerConnected(i) && IsPlayerAdmin(i))
  1132. {
  1133.     GetPlayerName(i,Jogador,24);
  1134.     format(msg,sizeof(msg),"%s", Jogador);
  1135.     SendClientMessage(playerid, Cor_Verde, "[NomeSV]: Administradores Online:");
  1136.     SendClientMessage(playerid, -1, msg);
  1137.  
  1138.  
  1139.     count++;
  1140. }
  1141. }
  1142.     if(count == 0) return SendClientMessage(playerid, Cor_Erro, "[NomeSV]: Não tem nenhum administrador online no momento.");
  1143.     return 1;
  1144. }
  1145.  
  1146. // Comandos para os players normais do servidor.
  1147. CMD:comandos(playerid)
  1148. {
  1149.     new str[1000];
  1150.     strcat(str,"Os players normais também tem seus comandos.\n");
  1151.     strcat(str,"Todos Comandos para os Players Normais:\n\n");
  1152.     strcat(str," /meuid [Vê seu id no servidor]\n");
  1153.     strcat(str," /kill [Comete um suicidio]\n");
  1154.     strcat(str," /online [Vê quantos players tem online no servidor]\n");
  1155.     strcat(str," /logadosrcon [Vê quem ta online na rcon]\n");
  1156.     strcat(str," /sairan [Sai de uma animação]\n");
  1157.     strcat(str," /reparar [Ajeita um veiculo] \n");
  1158.     strcat(str," /teletransportes [Abre uma lista de lugares]\n");
  1159.     strcat(str," /skin [Muda sua roupa]\n");
  1160.     strcat(str," /virar [Vira seu veiculos apos capotar]\n");
  1161.     strcat(str," /admins [Vê os adiministradores online no servidor]\n\n");
  1162.     strcat(str," Caso queira comandos com melhores vantagens\n");
  1163.     strcat(str," digite '/vantagensvip' e veja oquê os VIP's\n");
  1164.     strcat(str," tem de melhor no gamemode.");
  1165.     ShowPlayerDialog(playerid, 8439, DIALOG_STYLE_MSGBOX, "[NomeSV]: Comandos do Servidor:", str, "Ok", "Fechar");
  1166.     return 1;
  1167. }
  1168.  
  1169. // (Comando de reporter lvl 1)
  1170. // Comando para equipar o reporter.
  1171. CMD:equipareporter(playerid)
  1172. {
  1173.     new name[MAX_PLAYER_NAME], string[170];
  1174.     if(PlayerInfo[playerid][pReporter] < 1) return SendClientMessage(playerid, Cor_Erro, "ERRO: Você não é um reporter para usar esse comando.");
  1175.     GivePlayerWeapon(playerid, 41, 800);
  1176.     GivePlayerWeapon(playerid, 45, 800);
  1177.     GetPlayerName(playerid, name, sizeof(name));
  1178.     format(string, sizeof(string), "[NomeSV]: O Reporter %s está trabalhando.", name);
  1179.     SendClientMessageToAll(Cor_Amarelo, string);
  1180.     SendClientMessage(playerid, -1, "[NomeSV]: ** Grave tudo que ocorre no servidor.");
  1181.     SetPlayerSkin(playerid, 247);
  1182.     SetPlayerColor(playerid, Cor_Laranja);
  1183.     return 1;
  1184. }
  1185.  
  1186. // (Comando de adiministrador lvl 3)
  1187. // Comando para setar o player de reporter.
  1188. CMD:setreporter(playerid, params[])
  1189. {
  1190.     new id;
  1191.     new nivel;
  1192.     new name[MAX_PLAYER_NAME], string[170];
  1193.     if(PlayerInfo[playerid][pAdmin] == 3) return SendClientMessage(playerid, Cor_Erro, "ERRO: Você não é um adiministrador ou nem tem level para usar esse comando.");
  1194.     if(sscanf(params, "ud", id, nivel)) return SendClientMessage(playerid, Cor_Amarelo, "[NomeSV]: Uso do Comando Correto: /setreporter [ID] [Nivel]");
  1195.     PlayerInfo[id][pReporter] = nivel;
  1196.     GetPlayerName(playerid, name, sizeof(name));
  1197.     format(string, sizeof(string), "[NomeSV]: O adiministrador %s setou o jogador %s de reporter.", namep(playerid), namep(id));
  1198.     SendClientMessageToAll(Cor_Amarelo, string);
  1199.     SendClientMessage(playerid, Cor_Setar, "[NomeSV]: Você foi setado de reporter, parabens.");
  1200.     SendClientMessage(playerid, -1, "[NomeSV]: Para se equipar digite '/equipareporter' e estará trabalhando.");
  1201.     return 1;
  1202. }
  1203.  
  1204. // Comando para mudar a classe.
  1205. CMD:mudarclasse(playerid)
  1206. {
  1207.     ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Escolha oquê voce quer ser:", "Ladrao\nPalhaço\nRockeiro\nJaponês", "Selecionar", "Cancelar");
  1208.     // Caso você queira mudar os nomes das classes fique a vontade.
  1209.     return 1;
  1210. }
  1211.  
  1212. // Comando para ir pra drift.
  1213. CMD:drift(playerid)
  1214. {
  1215.     new name[MAX_PLAYER_NAME], string[120];
  1216.     SetPlayerPos(playerid, -314.29,1533.80,75.40);
  1217.     GetPlayerName(playerid, name, sizeof(name));
  1218.     format(string, sizeof(string), "[NomeSV]: O jogador %s foi pra drift, quer ir também? digite /drif e divirta-se.", name);
  1219.     SendClientMessageToAll(Cor_Amarelo, string);
  1220.     return 1;
  1221. }
  1222.  
  1223. // Comando para ver quem criou o gamemode.
  1224. // (ATENÇÃO: Caso voce mude o texto desse comando você estará cometendo um crime).
  1225. CMD:creditos(playerid)
  1226. {
  1227.     ShowPlayerDialog(playerid, 14, DIALOG_STYLE_MSGBOX, "Créditos do Gamemode:", "Gamemode Criado por: Gabriel Santana\nE-mail: [email protected]\nForum Samp: http://forum.sa-mp.com/member.php?u=158021\nOBS: Não retire os creditos do gamemode.", "Fechar", "");
  1228.     return 1;
  1229. }
  1230.  
  1231. // (Comando de adiministrador lvl 1)
  1232. // Comando para dar tapa em um player.
  1233. CMD:tapa(playerid, params[])
  1234. {
  1235.     new name[MAX_PLAYER_NAME], ID, string[120];
  1236.     if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, Cor_Erro, "ERRO: Você não é um adiministrador ou nem tem level para usar esse comando.");
  1237.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, Cor_Amarelo, "[NomeSV]: Comando Correto: /tapa [id]");
  1238.     if(!IsPlayerConnected(ID)) return 1;
  1239.     new Float:c[3];
  1240.     GetPlayerPos(ID,c[0],c[1],c[2]);
  1241.     SetPlayerPos(ID,c[0],c[1],c[2]+15);
  1242.     GetPlayerName(ID, name, sizeof(name));
  1243.     format(string, sizeof(string), "[NomeSV]: O adiministrador %s deu um tapa em %s.", pegarnome(playerid), pegarnome(ID));
  1244.     SendClientMessageToAll(Cor_Roxo, string);
  1245.     return 1;
  1246. }
  1247.  
  1248. // (Comando de adiministrador lvl 3)
  1249. // Comando para dar uma super tapa em outro player.
  1250. CMD:supertapa(playerid, params[])
  1251. {
  1252.     new name[MAX_PLAYER_NAME], ID, string[120];
  1253.     if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, Cor_Erro, "ERRO: Você não é um adiministrador ou nem tem level para usar esse comando.");
  1254.     if(sscanf(params, "u", ID)) return SendClientMessage(playerid, Cor_Amarelo, "[NomeSV]: Comando Correto: /tapa [id]");
  1255.     if(!IsPlayerConnected(ID)) return 1;
  1256.     new Float:c[3];
  1257.     GetPlayerPos(ID,c[0],c[1],c[2]);
  1258.     SetPlayerPos(ID,c[0],c[1],c[2]+35);
  1259.     GetPlayerName(ID, name, sizeof(name));
  1260.     format(string, sizeof(string), "[NomeSV]: O adiministrador %s deu uma supertapa em %s.", pegarnome(playerid), pegarnome(ID));
  1261.     SendClientMessageToAll(Cor_Roxo, string);
  1262.     return 1;
  1263. }
  1264.  
  1265. // (Comando de adiministrador lvl 3)
  1266. // Comando para mudar o clima do servidor.
  1267. CMD:clima(playerid, params[])
  1268. {
  1269.     new name[MAX_PLAYER_NAME], string[120];
  1270.     if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, Cor_Erro, "ERRO: Você não é um adiministrador ou nem tem level para usar esse comando.");
  1271.     if(sscanf(params, "d",clima)) return SendClientMessage(playerid, Cor_Amarelo, "[NomeSV]: Comando Correto: /clima [id]");
  1272.     SetWeather(clima);
  1273.     GetPlayerName(playerid, name, sizeof(name));
  1274.     format(string, sizeof(string), "[NomeSV]: O Adiministrador %s alterou o clima.", name);
  1275.     SendClientMessageToAll(-1, string);
  1276.     return 1;
  1277. }
  1278.  
  1279. // (Comando de adiministrador lvl 3)
  1280. // Comando para mudar a hora do servidor.
  1281. CMD:tempo(playerid, params[])
  1282. {
  1283.     new name[MAX_PLAYER_NAME], string[120];
  1284.     if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, Cor_Erro, "ERRO: Você não é um adiministrador ou nem tem level para usar esse comando.");
  1285.     if(sscanf(params, "d",clima)) return SendClientMessage(playerid, Cor_Amarelo, "[NomeSV]: Comando Correto: /tempo [id]");
  1286.     SetWorldTime(tempo);
  1287.     GetPlayerName(playerid, name, sizeof(name));
  1288.     format(string, sizeof(string), "[NomeSV]: O Adiministrador %s alterou o clima.", name);
  1289.     SendClientMessageToAll(-1, string);
  1290.     return 1;
  1291. }
  1292.  
  1293. // Gamemode Base.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement