Advertisement
iSmirnoff

[Filter Script] Sistema de Eventos v1.0

Mar 17th, 2013
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 29.38 KB | None | 0 0
  1. //============ INCLUDES ===============//
  2. #include a_samp
  3. #include ZCMD
  4.  
  5. //===================== DIALOGS ===============//
  6. #define iChuck 1
  7. #define iPlayer 2
  8. #define iDPaintball 3
  9. #define iPaintball 4
  10. #define iX1  5
  11. #define iMinigun 6
  12. #define iDx1 7
  13. #define iDMinigun 8
  14. #define iDBarco 9
  15. #define iBarco  10
  16. #define iDBate 11
  17. #define iBate 12
  18. #define iDPara 13
  19. #define iPara 14
  20. #define iEventos 6865
  21.  
  22. //============= VARIAVEIS E ARAYS ================//
  23. new bool:Paintball[MAX_PLAYERS],
  24. EquipePlayer[MAX_PLAYERS];
  25. new EventoPaintball;
  26. new bool:x1[MAX_PLAYERS];
  27. new Eventox1;
  28. new bool:miinigun[MAX_PLAYERS];
  29. new EventoMinigun;
  30. new bool:barco[MAX_PLAYERS];
  31. new EventoBarco;
  32. new bool:bate[MAX_PLAYERS];
  33. new EventoBate;
  34. new bool:para[MAX_PLAYERS];
  35. new EventoPara;
  36. //==============================================//
  37. public OnFilterScriptInit()
  38. {
  39.         print("\n#========================================== #");
  40.         print("  # [FS] Sistema de Eventos                   #");
  41.         print("  #         By: iSmir                         #");
  42.         print("  #===========================================#\n");
  43.  
  44.         //================================ MONTE X1 =============================//
  45.         CreateObject(987, -541.20001220703, 2639.3999023438, 52.5, 0, 0, 176);
  46.         CreateObject(987, -553.20001220703, 2640, 52.599998474121, 0, 0, 176);
  47.         CreateObject(987, -565.09997558594, 2640.6000976563, 52.5, 0, 0, 266);
  48.         CreateObject(987, -565.59997558594, 2632.3999023438, 52.5, 0, 0, 266);
  49.         CreateObject(972, -2317.9733886719, -1607.8778076172, 481.92987060547, 0, 0, 5.95263671875, 300.0);
  50.         CreateObject(972, -2333.5573730469, -1582.4885253906, 481.92987060547, 0, 0, 97.262329101563, 300.0);
  51.         CreateObject(972, -2342.1125488281, -1607.5842285156, 481.92987060547, 0, 0, 186.58666992188, 300.0);
  52.         CreateObject(972, -2322.4345703125, -1589.484375, 481.92987060547, 0, 0, 29.772521972656, 300.0);
  53.         CreateObject(972, -2315.3129882813, -1634.2191162109, 481.92987060547, 0, 0, 5.95263671875, 300.0);
  54.         CreateObject(972, -2339.2004394531, -1632.3326416016, 481.92987060547, 0, 0, 186.58703613281, 300.0);
  55.         CreateObject(8650, -2316.6611328125, -1618.7884521484, 474.04272460938, 90, 90, 7.93994140625, 300.0);
  56.         CreateObject(8650, -2328.5708007813, -1620.1850585938, 488.14788818359, 180, 180, 97.262329101563, 300.0);
  57.         CreateObject(8650, -2328.5256347656, -1620.2603759766, 486.49984741211, 179.9945, 179.9945, 97.2619, 300.0);
  58.         CreateObject(972, -2315.8947753906, -1624.5148925781, 481.92987060547, 0, 0, 5.9490966796875, 300.0);
  59.         CreateObject(8650, -2314.5227050781, -1618.5999755859, 474.04272460938, 90, 90, 7.9376220703125, 300.0);
  60.         CreateObject(8650, -2318.1958007813, -1618.8737792969, 474.04272460938, 90, 90, 5.9549560546875, 300.0);
  61.         CreateObject(972, -2344.6188964844, -1584.1512451172, 481.92987060547, 0, 0, 186.58630371094, 300.0);
  62.         CreateObject(972, -2330.990234375, -1642.7630615234, 481.92987060547, 0, 0, 275.91064453125, 300.0);
  63.         CreateObject(972, -2325.4072265625, -1642.2864990234, 481.92987060547, 0, 0, 275.90515136719, 300.0);
  64.         CreateObject(7657, -2333.6726074219, -1620.9918212891, 484.42767333984, 0, 0, 7.93994140625, 300.0);
  65.  
  66.         //========================================== MOTOS DO EVENTO RALLY ===================================//
  67.         CreateVehicle(468,-2396.6487,-2194.7942,32.9527,244.9457,14,14,-1);
  68.         CreateVehicle(468,-2397.9363,-2196.0374,32.9525,251.1160,10,0,-1);
  69.         CreateVehicle(468,-2399.1172,-2196.9358,32.9529,253.3459,8,8,-1);
  70.         CreateVehicle(468,-2400.7209,-2198.4172,32.9483,263.7230,1,1,-1);
  71.         CreateVehicle(468,-2396.6289,-2194.7290,32.9359,237.7247,14,14,-1);
  72.         CreateVehicle(468,-2397.8621,-2195.9563,32.9209,240.0725,10,0,-1);
  73.         CreateVehicle(468,-2399.1553,-2197.2615,32.9516,268.3748,8,8,-1);
  74.         CreateVehicle(468,-2400.7368,-2198.5469,32.9272,258.2426,1,1,-1);
  75.         CreateVehicle(468,-2401.6670,-2199.7456,32.9394,242.1490,11,11,-1);
  76.         CreateVehicle(468,-2402.8044,-2200.7349,32.9736,258.3496,2,2,-1);
  77.         CreateVehicle(468,-2403.2639,-2202.2148,32.9559,287.4485,20,20,-1);
  78.  
  79.         //===================================== BARCOS DO EVENTO BARCO =================================================//
  80.         CreateVehicle(446,167.8000031,-1902.9000244,0.0000000,180.0000000,-1,-1,15);
  81.         CreateVehicle(446,175.6999969,-1903.5999756,0.0000000,180.0000000,132,4,15);
  82.         CreateVehicle(446,182.1999969,-1904.0000000,0.0000000,180.0000000,245,245,15);
  83.         CreateVehicle(446,189.0000000,-1903.9000244,0.0000000,180.0000000,245,245,15);
  84.         CreateVehicle(446,196.1999969,-1903.3000488,0.0000000,180.0000000,245,245,15);
  85.         CreateVehicle(446,203.1000061,-1903.1999512,0.0000000,180.0000000,245,245,15);
  86.         CreateVehicle(446,210.1999969,-1902.6999512,0.0000000,180.0000000,245,245,15);
  87.         CreateVehicle(446,218.1999969,-1902.4000244,0.0000000,180.0000000,245,245,15);
  88.         CreateVehicle(446,225.0000000,-1901.6999512,0.0000000,180.0000000,245,245,15);
  89.         CreateVehicle(446,232.8000031,-1900.9000244,0.0000000,180.0000000,245,245,15);
  90.         CreateVehicle(446,239.1999969,-1901.3000488,0.0000000,180.0000000,-1,-1,15);
  91.         CreateVehicle(446,246.6999969,-1900.9000244,0.0000000,180.0000000,-1,-1,15);
  92.  
  93.         //===================================== BARCOS DO EVENTO BATE - BATE =================================================//
  94.         CreateVehicle(502,-1414.5619,1025.5784,1025.4773,182.3220,166,166,15);
  95.         CreateVehicle(503,-1359.5602,983.3937,1023.5405,316.0204,166,166,15);
  96.         CreateVehicle(502,-1358.1443,997.1567,1023.7653,353.0945,166,166,15);
  97.         CreateVehicle(503,-1371.3832,1007.3936,1023.9597,74.3266,166,166,15);
  98.         CreateVehicle(502,-1386.7108,993.1025,1023.7463,144.6641,166,166,15);
  99.         CreateVehicle(503,-1399.7688,989.7795,1023.7100,94.7017,166,166,15);
  100.         CreateVehicle(502,-1405.0767,974.2200,1023.7363,183.6478,166,166,15);
  101.         CreateVehicle(503,-1390.5551,968.4815,1024.1953,265.1103,166,166,15);
  102.         CreateVehicle(502,-1431.8761,996.1734,1023.8845,90.5452,166,166,15);
  103.         return 1;
  104. }
  105.  
  106. public OnFilterScriptExit()
  107. {
  108.         return 1;
  109. }
  110. public OnPlayerDisconnect(playerid, reason)
  111. {
  112.         if(Paintball[playerid] == true)
  113.         {
  114.                 Paintball[playerid] = false;
  115.                 EquipePlayer[playerid] = 0;
  116.         }
  117.         if(x1[playerid] == true)
  118.         {
  119.                 x1[playerid] = false;
  120.         }
  121.         if(miinigun[playerid] == true)
  122.         {
  123.                 miinigun[playerid] = false;
  124.         }
  125.         if(barco[playerid] == true)
  126.         {
  127.                 barco[playerid] = false;
  128.         }
  129.         return 1;
  130. }
  131. public OnPlayerSpawn(playerid)
  132. {
  133.         if(Paintball[playerid] == true)
  134.         {
  135.                 if(EventoPaintball == iPaintball)
  136.                 {
  137.                         SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875);
  138.                         SetPlayerInterior(playerid, 10);
  139.                         if(EquipePlayer[playerid] == iPlayer)
  140.                         {
  141.                                 GivePlayerWeapon(playerid, 24, 200);
  142.                                 GivePlayerWeapon(playerid, 25, 200);
  143.                                 GivePlayerWeapon(playerid, 31, 200);
  144.                                 GivePlayerWeapon(playerid, 29, 500);
  145.                                 SetPlayerSkin(playerid, 158);
  146.                         }
  147.                 }
  148.         }
  149.         return 1;
  150. }
  151. public OnPlayerDeath(playerid, killerid, reason)
  152. {
  153.         new LOL[110];
  154.         if(x1[playerid] == true && x1[killerid] == true)
  155.         {
  156.                 if(Eventox1 == iX1)
  157.                 {
  158.                         format(LOL, sizeof(LOL),"%s Matou %s no Evento x1 e Recebeu R$5.000 Como Recompensa !", NomeJ(killerid), NomeJ(playerid));
  159.                         SendClientMessageToAll(0xE71856FF, LOL);
  160.                         SpawnPlayer(playerid);
  161.                         SetPlayerInterior(playerid, 0);
  162.                         GivePlayerMoney(killerid, 5000);
  163.                         SetPlayerHealth(killerid, 100);
  164.                         SetPlayerArmour(killerid, 100);
  165.                 }
  166.         }
  167.         if(miinigun[playerid] == true && miinigun[killerid] == true)
  168.         {
  169.                 if(EventoMinigun == iMinigun)
  170.                 {
  171.                         format(LOL, sizeof(LOL),"%s Matou %s no Evento Minigun e Recebeu R$5.000 Como Recompensa !", NomeJ(killerid), NomeJ(playerid));
  172.                         SendClientMessageToAll(0xE71856FF, LOL);
  173.                         SpawnPlayer(playerid);
  174.                         SetPlayerInterior(playerid, 0);
  175.                         GivePlayerMoney(killerid, 5000);
  176.                         SetPlayerHealth(killerid, 100);
  177.                         SetPlayerArmour(killerid, 100);
  178.                 }
  179.         }
  180.         if(Paintball[playerid] == true && Paintball[killerid] == true)
  181.         {
  182.                 if(EventoPaintball == iPaintball)
  183.   {
  184.                         if(EquipePlayer[killerid] == iChuck && EquipePlayer[playerid] == iPlayer)
  185.                         {
  186.                 format(LOL, sizeof(LOL),"O Chuck Norris[%s] Matou (%s) No Evento Paintball e Recebeu R$15.000!", NomeJ(killerid), NomeJ(playerid));
  187.                                 SendClientMessageToAll(0xE71856FF, LOL);
  188.                                 GivePlayerMoney(killerid, 15000);
  189.                                 SetPlayerHealth(killerid, 100);
  190.                                 SetPlayerArmour(killerid, 100);
  191.                                 SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875); //Posi??o de onde fica o evento Paintball
  192.                                 SetPlayerInterior(playerid, 10); //Interior, caso seja em um
  193.                         }
  194.                         else if(EquipePlayer[killerid] == iPlayer && EquipePlayer[playerid] == iChuck)
  195.                         {
  196.                                 EquipePlayer[killerid] = iChuck;
  197.                                 EquipePlayer[playerid] = iPlayer;
  198.                                 format(LOL, sizeof(LOL),"(%s) Matou o Chuck Norris[%] No Evento Paintball e Virou o Novo Chuck Norris!", NomeJ(killerid), NomeJ(playerid));
  199.                                 SendClientMessageToAll(0xFFFF00FF, LOL);
  200.                                 SetPlayerHealth(killerid, 100);
  201.                                 SetPlayerArmour(killerid, 100);
  202.                                 SetPlayerSkin(killerid, 264);
  203.                                 GivePlayerWeapon(killerid, 38, 800);
  204.                                 GivePlayerWeapon(killerid, 30, 200);
  205.                                 GivePlayerWeapon(killerid, 24, 200);
  206.                                 GivePlayerWeapon(killerid, 25, 200);
  207.                                 GivePlayerWeapon(killerid, 26, 200);
  208.                                 GameTextForPlayer(killerid,"~g~Chuck Norris", 2000, 1);
  209.                                 SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875);
  210.                                 SetPlayerInterior(playerid, 10);
  211.                         }
  212.                         else if(EquipePlayer[killerid] == iPlayer && EquipePlayer[playerid] == iPlayer)
  213.                         {
  214.                                 format(LOL, sizeof(LOL),"%s Matou %s No Evento Paintall e Recebeu R$7.000!", NomeJ(killerid), NomeJ(playerid));
  215.                                 SendClientMessageToAll(0xE71856FF, LOL);
  216.                                 SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875);
  217.                                 SetPlayerInterior(playerid, 10);
  218.                                 GivePlayerMoney(killerid, 7000);
  219.                                 SetPlayerHealth(killerid, 100);
  220.                                 SetPlayerArmour(killerid, 100);
  221.                         }
  222.                 }
  223.         }
  224.         return 1;
  225. }
  226.  
  227. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  228. {
  229.         if (dialogid == iEventos) {
  230.                 if (response == 0) {
  231.                         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
  232.                         return true;
  233.                 }
  234.                 if (response == 1) {
  235.                         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
  236.                         if (listitem >= 0 && listitem <= 10) {
  237.                                 if (listitem == 0)
  238.                                 {
  239.                                         cmd_eventopaintball(playerid);
  240.                                 }
  241.                                 if (listitem == 1)
  242.                                  {
  243.                                         cmd_eventoparaquedas(playerid);
  244.                                 }
  245.                                 if (listitem == 2)
  246.                                 {
  247.                                         cmd_eventobarco(playerid);
  248.                                 }
  249.                                 if (listitem == 3)
  250.                                 {
  251.                                         cmd_eventobatebate(playerid);
  252.                                 }
  253.                                 if (listitem == 4)
  254.                                 {
  255.                                         cmd_eventox1(playerid);
  256.                                 }
  257.                                 if (listitem == 5)
  258.                                 {
  259.                                         cmd_eventominigun(playerid);
  260.                                 }
  261.                                 if (listitem == 6)
  262.                                 {
  263.                                         cmd_terminarpaintball(playerid);
  264.                                 }
  265.                                 if (listitem == 7)
  266.                                 {
  267.                                         cmd_terminarparaquedas(playerid);
  268.                                 }
  269.                                 if (listitem == 8)
  270.                                 {
  271.                                         cmd_terminarbarco(playerid);
  272.                                 }
  273.                                 if (listitem == 9)
  274.                                 {
  275.                                         cmd_terminarbatebate(playerid);
  276.                                 }
  277.                                 if (listitem == 10)
  278.                                 {
  279.                                         cmd_terminarx1(playerid);
  280.                                 }
  281.                                 if (listitem == 11)
  282.                                 {
  283.                                         cmd_terminarminigun(playerid);
  284.                                 }
  285.                         }
  286.                 }
  287.         }
  288.         if(dialogid == iDPara)
  289.         {
  290.                 if(response == 0)
  291.                 {
  292.                         SendClientMessage(playerid, -1, "Ok, você não quis ir ao evento.");
  293.                         return true;
  294.                 }
  295.                 if(EventoPara == iPara)
  296.                 {
  297.                         if(!response) return SendClientMessage(playerid, 0x8080FFFF, "Você Foi Para o Evento Para - Quedas");
  298.                         ResetPlayerWeapons(playerid);
  299.                         SetPlayerHealth(playerid, 100);
  300.                         SetPlayerArmour(playerid, 100 );
  301.                         SetPlayerPos(playerid,1547.2875,-1354.7445,329.4786);
  302.                         GivePlayerWeapon(playerid, 46, 1);
  303.                         SetPlayerCheckpoint(playerid, 1497.0734, -1699.5951, 14.5469, 15.0);
  304.                         SetPlayerInterior(playerid, 0);
  305.                         for(new x = 0; x < MAX_PLAYERS; x++)
  306.                         {
  307.                                 if(IsPlayerConnected(x) && para[x] == true)
  308.                                 {
  309.  
  310.                                 }
  311.                         }
  312.                 }
  313.         }
  314.  
  315.         if(dialogid == iDBate)
  316.         {
  317.                 if(response == 0)
  318.                 {
  319.                         SendClientMessage(playerid, -1, "Ok, você não quis ir ao evento.");
  320.                         return true;
  321.                 }
  322.                 if(EventoBate == iBate)
  323.                 {
  324.                         if(!response) return SendClientMessage(playerid, 0x8080FFFF, "Você Foi Para o Evento Bate - Bate");
  325.                         ResetPlayerWeapons(playerid);
  326.                         SetPlayerHealth(playerid, 100);
  327.                         SetPlayerArmour(playerid, 100 );
  328.                         SetPlayerPos(playerid,-1490.8577,991.0114,1029.1187);
  329.                         SetPlayerInterior(playerid, 15);
  330.                         for(new x = 0; x < MAX_PLAYERS; x++)
  331.                         {
  332.                                 if(IsPlayerConnected(x) && bate[x] == true)
  333.                                 {
  334.  
  335.                                 }
  336.                         }
  337.                 }
  338.         }
  339.         if(dialogid == iDMinigun)
  340.         {
  341.                 if(response == 0)
  342.                 {
  343.                         SendClientMessage(playerid, -1, "Ok, você não quis ir ao evento.");
  344.                         return true;
  345.                 }
  346.                 if(EventoMinigun == iMinigun)
  347.                 {
  348.                         if(!response) return SendClientMessage(playerid, 0x8080FFFF, "Você Foi Para o Evento Minigun");
  349.                         ResetPlayerWeapons(playerid);
  350.                         GivePlayerWeapon(playerid,38, 999);
  351.                         SetPlayerHealth(playerid, 100);
  352.                         SetPlayerArmour(playerid, 100 );
  353.                         SetPlayerPos(playerid,1081.9198,1526.9095,52.2273);
  354.                         for(new x = 0; x < MAX_PLAYERS; x++)
  355.                         {
  356.                                 if(IsPlayerConnected(x) && miinigun[x] == true)
  357.                                 {
  358.  
  359.                                 }
  360.                         }
  361.                 }
  362.         }
  363.         if(dialogid == iDx1)
  364.         {
  365.  
  366.                 if(response == 0)
  367.                 {
  368.  
  369.                         SendClientMessage(playerid, -1, "Ok, você não quis ir ao evento.");
  370.                         return true;
  371.                 }
  372.                 if(Eventox1 == iX1)
  373.                 {
  374.  
  375.                         if(!response) return SendClientMessage(playerid, 0x8080FFFF, "Você Foi Para o Evento x1");
  376.                         ResetPlayerWeapons(playerid);
  377.                         GivePlayerWeapon(playerid,24, 999);
  378.                         SetPlayerHealth(playerid, 100);
  379.                         SetPlayerArmour(playerid, 100 );
  380.                         SetPlayerPos(playerid,-2327.1162,-1632.4860,483.6996);
  381.                         for(new x = 0; x < MAX_PLAYERS; x++)
  382.                         {
  383.  
  384.                                 if(IsPlayerConnected(x) && barco[x] == true)
  385.                                 {
  386.  
  387.  
  388.  
  389.                                 }
  390.                         }
  391.                 }
  392.         }
  393.         if(dialogid == iDBarco)
  394.         {
  395.  
  396.                 if(response == 0)
  397.                 {
  398.  
  399.                         SendClientMessage(playerid, -1, "Ok, você não quis ir ao evento.");
  400.                         return true;
  401.                 }
  402.                 if(EventoBarco == iBarco)
  403.                 {
  404.  
  405.                         if(!response) return SendClientMessage(playerid, 0x8080FFFF, "Você Foi Para o Evento Barco");
  406.                         ResetPlayerWeapons(playerid);
  407.                         SetPlayerHealth(playerid, 100);
  408.                         SetPlayerArmour(playerid, 100);
  409.                         SetPlayerPos(playerid,383.4359,-2078.8511,7.8359);
  410.                         for(new x = 0; x < MAX_PLAYERS; x++)
  411.                         {
  412.  
  413.                                 if(IsPlayerConnected(x) && x1[x] == true)
  414.                                 {
  415.  
  416.  
  417.  
  418.                                 }
  419.                         }
  420.                 }
  421.         }
  422.         if(dialogid == iDPaintball)
  423.         {
  424.  
  425.                 if(EventoPaintball == iPaintball)
  426.                 {
  427.  
  428.                         if(!response) return SendClientMessage(playerid, 0x8080FFFF, "Você Foi Para o Evento Paintball");
  429.                         SetPlayerHealth(playerid, 100);
  430.                         SetPlayerArmour(playerid, 100);
  431.                         SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875);
  432.                         SetPlayerInterior(playerid, 10);
  433.                         new contar = 0;
  434.                         for(new x = 0; x < MAX_PLAYERS; x++)
  435.                         {
  436.  
  437.                                 if(IsPlayerConnected(x) && Paintball[x] == true)
  438.                                 {
  439.  
  440.  
  441.                                         contar ++;
  442.                                 }
  443.                         }
  444.                         if(contar == 0)
  445.                         {
  446.  
  447.                                 SetPlayerSkin(playerid, 264);
  448.                                 GivePlayerWeapon(playerid, 38, 800);
  449.                                 GivePlayerWeapon(playerid, 30, 200);
  450.                                 GivePlayerWeapon(playerid, 24, 200);
  451.                                 GivePlayerWeapon(playerid, 25, 200);
  452.                                 GivePlayerWeapon(playerid, 26, 200);
  453.                                 SendClientMessage(playerid, 0x8080FFFF, "Você é o Primeiro a Chegar no Evento e Virou o Chuck Norris");
  454.                                 new LOL[80];
  455.                                 format(LOL, sizeof(LOL),"%s Chegou Primeiro No Evento Paintball e Virou o Chuck Norris", NomeJ(playerid));
  456.                                 SendClientMessageToAll(0x0080FFFF, LOL);
  457.                                 EquipePlayer[playerid] = iChuck;
  458.                         }
  459.                         else if(contar > 0)
  460.                         {
  461.  
  462.                                 SetPlayerSkin(playerid, 158);
  463.                                 GivePlayerWeapon(playerid, 24, 200);
  464.                                 GivePlayerWeapon(playerid, 25, 200);
  465.                                 GivePlayerWeapon(playerid, 31, 200);
  466.                                 GivePlayerWeapon(playerid, 29, 500);
  467.                                 EquipePlayer[playerid] = iPlayer;
  468.                         }
  469.                         Paintball[playerid] = true;
  470.                 }
  471.         }
  472.         return 1;
  473. }
  474. public OnPlayerEnterCheckpoint(playerid)
  475. {
  476.         if(IsPlayerInRangeOfPoint(playerid, 2.0, 2517.4395,-2273.1348,-0.4728))
  477.         {
  478.  
  479.                 DisablePlayerCheckpoint(playerid);
  480.                 GameTextForPlayer(playerid, " ~w~Voce Chegou", 5000, 3);
  481.         }
  482.         if(IsPlayerInRangeOfPoint(playerid, 2.0, 1497.0734, -1699.5951, 14.5469))
  483.         {
  484.  
  485.                 DisablePlayerCheckpoint(playerid);
  486.                 GameTextForPlayer(playerid, " ~w~Voce Chegou", 5000, 3);
  487.         }
  488.         return 1;
  489. }
  490.  
  491. NomeJ(playerid)
  492. {
  493.         new nameplayer[MAX_PLAYER_NAME];
  494.         GetPlayerName(playerid, nameplayer, sizeof(nameplayer));
  495.         return nameplayer;
  496. }
  497. CMD:eventominigun(playerid)
  498. {
  499.         EventoMinigun = iMinigun;
  500.         new LOL[80];
  501.         format(LOL, sizeof(LOL),"%s Criou um Evento Minigun", NomeJ(playerid));
  502.         SendClientMessageToAll(0xE20526FF, LOL);
  503.         for(new i = 0; i < MAX_PLAYERS; i++)
  504.         {
  505.  
  506.                 ShowPlayerDialog(i, iDMinigun,DIALOG_STYLE_MSGBOX,"Evento X1","Deseja ir ao Evento Minigun","Sim","Não");
  507.         }
  508.         return 1;
  509. }
  510. CMD:terminarminigun(playerid)
  511. {
  512.         if(EventoMinigun < 1) return SendClientMessage(playerid, 0xE20526FF, "Não Está Tendo Um Evento.");
  513.         EventoMinigun = 0;
  514.         for(new i = 0; i < MAX_PLAYERS; i++)
  515.         {
  516.  
  517.                 if(miinigun[i] == true)
  518.                 {
  519.  
  520.                         miinigun[i] = false;
  521.                         ResetPlayerWeapons(i);
  522.                         SpawnPlayer(i);
  523.                         SendClientMessage(i, 0xE20526FF, "O Evento Terminou !");
  524.                 }
  525.         }
  526.         return 1;
  527. }
  528. CMD:eventopaintball(playerid)
  529. {
  530.         EventoPaintball = iPaintball;
  531.         new LOL[80];
  532.         format(LOL, sizeof(LOL),"%s Criou um Evento PaintBall.", NomeJ(playerid));
  533.         SendClientMessageToAll(0xE20526FF, LOL);
  534.         for(new i = 0; i < MAX_PLAYERS; i++)
  535.         {
  536.  
  537.                 ShowPlayerDialog(i, iDPaintball,DIALOG_STYLE_MSGBOX,"Evento PaintBall","Deseja ir ao Evento Paintball?","Sim","Não");
  538.         }
  539.         return 1;
  540. }
  541.  
  542. CMD:terminarpaintball(playerid)
  543. {
  544.         if(EventoPaintball < 1) return SendClientMessage(playerid, 0xE20526FF, "Não Está Tendo Um Evento.");
  545.         EventoPaintball = 0;
  546.         for(new i = 0; i < MAX_PLAYERS; i++)
  547.         {
  548.  
  549.                 if(Paintball[i] == true)
  550.                 {
  551.  
  552.                         Paintball[i] = false;
  553.                         ResetPlayerWeapons(i);
  554.                         SpawnPlayer(i);
  555.                         SendClientMessage(i, 0xE20526FF, "O Evento Terminou !");
  556.                 }
  557.         }
  558.         return 1;
  559. }
  560. CMD:eventox1(playerid)
  561. {
  562.         Eventox1 = iX1;
  563.         new LOL[80];
  564.         format(LOL, sizeof(LOL),"%s Criou um Evento x1", NomeJ(playerid));
  565.         SendClientMessageToAll(0xE20526FF, LOL);
  566.         for(new i = 0; i < MAX_PLAYERS; i++)
  567.         {
  568.  
  569.                 ShowPlayerDialog(i, iDx1,DIALOG_STYLE_MSGBOX,"Evento X1","Deseja ir ao Evento x1","Sim","Não");
  570.         }
  571.         return 1;
  572. }
  573. CMD:terminarx1(playerid)
  574. {
  575.         if(Eventox1 < 1) return SendClientMessage(playerid, 0xE20526FF, "Não Está Tendo Um Evento.");
  576.         Eventox1 = 0;
  577.         for(new i = 0; i < MAX_PLAYERS; i++)
  578.         {
  579.         if(x1[i] == true)
  580.                 {
  581.                         x1[i] = false;
  582.                         ResetPlayerWeapons(i);
  583.                         SpawnPlayer(i);
  584.                         SendClientMessage(i, 0xE20526FF, "O Evento Terminou !");
  585.                 }
  586.         }
  587.         return 1;
  588. }
  589. CMD:eventobarco(playerid)
  590. {
  591.         EventoBarco = iBarco;
  592.         new LOL[80];
  593.         format(LOL, sizeof(LOL),"%s Criou um Evento Barco", NomeJ(playerid));
  594.         SendClientMessageToAll(0xE20526FF, LOL);
  595.         for(new i = 0; i < MAX_PLAYERS; i++)
  596.         {
  597.                 ShowPlayerDialog(i, iDBarco,DIALOG_STYLE_MSGBOX,"Evento Barco","Deseja ir ao Evento Barco","Sim","Não");
  598.         }
  599.         return 1;
  600. }
  601. CMD:terminarbarco(playerid)
  602. {
  603.         if(EventoBarco < 1) return SendClientMessage(playerid, 0xE20526FF, "Não Está Tendo Um Evento.");
  604.         EventoBarco = 0;
  605.         for(new i = 0; i < MAX_PLAYERS; i++)
  606.         {
  607.                 if(barco[i] == true)
  608.                 {
  609.                         barco[i] = false;
  610.                         ResetPlayerWeapons(i);
  611.                         SpawnPlayer(i);
  612.                         SendClientMessage(i, 0xE20526FF, "O Evento Terminou !");
  613.                 }
  614.         }
  615.         return 1;
  616. }
  617. CMD:marcarlocal(playerid)
  618. {
  619.         if(EventoBarco < 1) return SendClientMessage(playerid, 0xE20526FF, "Não Está Tendo O Evento Barco.");
  620.         SetPlayerCheckpoint(playerid, 2517.4395, -2273.1348, -0.4728, 15.0);
  621.         SendClientMessage(playerid, 0xE20526FF, "Vá Até o Local Indicado no Mapa Para Ganhar");
  622.         return 1;
  623. }
  624. CMD:eventobatebate(playerid)
  625. {
  626.         EventoBate = iBate;
  627.         new LOL[80];
  628.         format(LOL, sizeof(LOL),"%s Criou um Evento Bate - Bate", NomeJ(playerid));
  629.         SendClientMessageToAll(0xE20526FF, LOL);
  630.         for(new i = 0; i < MAX_PLAYERS; i++)
  631.         {
  632.                 ShowPlayerDialog(i, iDBate,DIALOG_STYLE_MSGBOX,"Evento Barco","Deseja ir ao Evento Bate-Bate","Sim","Não");
  633.         }
  634.         return 1;
  635. }
  636. CMD:terminarbatebate(playerid)
  637. {
  638.         if(EventoBate < 1) return SendClientMessage(playerid, 0xE20526FF, "Não Está Tendo Um Evento.");
  639.         EventoBate = 0;
  640.         for(new i = 0; i < MAX_PLAYERS; i++)
  641.         {
  642.                 if(bate[i] == true)
  643.                 {
  644.                         bate[i] = false;
  645.                         ResetPlayerWeapons(i);
  646.                         SpawnPlayer(i);
  647.                         SendClientMessage(i, 0xE20526FF, "O Evento Terminou !");
  648.                 }
  649.         }
  650.         return 1;
  651. }
  652. CMD:eventoparaquedas(playerid)
  653. {
  654.         EventoPara = iPara;
  655.         new LOL[80];
  656.         format(LOL, sizeof(LOL),"%s Criou um Evento Barco", NomeJ(playerid));
  657.         SendClientMessageToAll(0xE20526FF, LOL);
  658.         for(new i = 0; i < MAX_PLAYERS; i++)
  659.         {
  660.                 ShowPlayerDialog(i, iDPara,DIALOG_STYLE_MSGBOX,"Evento Paraquedas","Deseja ir ao Evento Para Quedas","Sim","Não");
  661.         }
  662.         return 1;
  663. }
  664. CMD:terminarparaquedas(playerid)
  665. {
  666.         if(EventoPara < 1) return SendClientMessage(playerid, 0xE20526FF, "Não Está Tendo Um Evento.");
  667.         EventoBate = 0;
  668.         for(new i = 0; i < MAX_PLAYERS; i++)
  669.         {
  670.                 if(para[i] == true)
  671.                 {
  672.                         para[i] = false;
  673.                         ResetPlayerWeapons(i);
  674.                         SpawnPlayer(i);
  675.                         SendClientMessage(i, 0xE20526FF, "O Evento Terminou !");
  676.                 }
  677.         }
  678.         return 1;
  679. }
  680. CMD:criarevento(playerid)
  681. {
  682.         ShowPlayerDialog(playerid, iEventos,DIALOG_STYLE_LIST,"Eventos","Evento Paintball\nEvento Para - Quedas\nEvento Barco\nEvento Bate - Bate\nEvento x1\nEvento Minigun\nTerminar Paintball\nTerminar Para - Quedas\nTerminar Bate - Bate\nTerminar x1\nTerminar Minigun","Criar","Não");
  683.         return 1;
  684. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement