Advertisement
garfield

[GM] Torcidas - Projeto Semestral(30/07/2011).

Jul 30th, 2011
8,697
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 43.73 KB | None | 0 0
  1. // [iPs]SuYaNw
  2.  
  3. #include a_samp
  4. #include Dini
  5. #include gl_common
  6. #include Checkpoint
  7. //================================[ IMPORTANTE ! ]========================================
  8. #define Nome_Sever          "hostname [iPs]Team  Torcidas GM ++"                // Nome do vosso servidor
  9. //================================[ Times ]===============================================
  10. #define AtleticoGO              0                                               // ID AtleticoGO
  11. #define AtleticoMG              1                                               // ID AtleticoMG
  12. #define AtleticoPR              2                                               // ID AtleticoPR
  13. #define Avai                    3                                               // ID AtleticoAvai
  14. #define Botafogo                4                                               // ID BotaFogo
  15. #define Ceara                   5                                               // ID Ceará
  16. #define Corinthians             6                                               // ID Corhinthias
  17. #define Cruzeiro                7                                               // ID Cruzeiro
  18. #define Flamengo                8                                               // ID Flamengo
  19. #define Fluminense              9                                               // ID Fluminense
  20. #define Goias                   10                                              // ID Goioas
  21. #define Gremio                  11                                              // ID Barueri
  22. #define Barueri                 12                                              // ID Guarani
  23. #define Guarani                 13                                              // ID Internacional
  24. #define Internacional           14                                              // ID Palmeiras
  25. #define Palmeiras               15                                              // ID Santos
  26. #define Santos                  16                                              // ID SaoPayk
  27. #define SaoPaulo                17                                              // ID Atletico
  28. #define Vasco                   18                                              // ID Atletico
  29. #define Vitoria                 19                                              // ID Atletico
  30. //====================================[    Cores    ]======================================
  31. #define Amarelo                                                                 0xFFFF00AA
  32. #define Vermelho                                                                0xFF0000AA
  33. #define Verde                                                                   0x80FF80AA
  34. #define Azul                                                                    0x33CCFFAA
  35. #define Cinza                                                                   0xC0C0C0AA
  36. //====================================[ DIALOGS ]==========================================
  37. #define DIALOG_REGRAS               50                          // Dialog Regras
  38. #define DIALOG_MUDAR_TIME           51                          // Dialog Mudar Time
  39. #define DIALOG_SPAWNED_PLAYER       52                          // Dialog Spawned Player
  40. #define DIALOG_SPAWNED_KICK         54                          // Dialog Spawned Kick
  41. #define DIALOG_AJUDA                55                          // Dialog Ajuda
  42. #define DIALOG_OBJETIVO             56                          // Dialog Objetivo
  43. #define DIALOG_COMANDOS             57                          // Dialog Comandos
  44. #define or                          ||                          // Ajudante PHP
  45. #define Version                     "2.0"                       // versão deste GameMode
  46. //======================================[ Config ]=========================================
  47. #if defined ret_memcpy
  48. #pragma unused ret_memcpy
  49. #endif
  50. //======================================[ Main ]===========================================
  51. #define AddClass(%0,%1,%2,%3)   AddPlayerClass((%0), (%1), (%2), (%3), 0.0, 0, 0, 0, 0, 0, 0)
  52.    
  53. forward
  54.         KickShau(playerid);
  55.         LoadGM();
  56.  
  57.    
  58. new
  59.     checkId[MAX_PLAYERS]        = 0xFFFFFF,
  60.     checkpoli[MAX_PLAYERS]      = 0xFFFFFF,
  61.     Dominando[MAX_PLAYERS]      = 0xFFFFFF,
  62.     DerbyBloodringBanger[12]    = 0xFFFFFF,
  63.     Team[MAX_PLAYERS]           = 0xFFFFFF,
  64.     string[200]                 = 0xFFFFFF,
  65.     g_AtleticoGO                = 0xFFFFFF,
  66.     g_Flamengo                  = 0xFFFFFF,
  67.     g_Vitoria                   = 0xFFFFFF,
  68.     g_Vasco                     = 0xFFFFFF,
  69.     g_Cruzeiro                  = 0xFFFFFF,
  70.     g_Saopaulo                  = 0xFFFFFF,
  71.     g_Santos                    = 0xFFFFFF,
  72.     g_Palmeras                  = 0xFFFFFF,
  73.     g_Fluminen                  = 0xFFFFFF,
  74.     g_Corintia                  = 0xFFFFFF,
  75.     g_Ceara                     = 0xFFFFFF,
  76.     g_Garaiano                  = 0xFFFFFF,
  77.     g_Gremio                    = 0xFFFFFF,
  78.     g_Goias                     = 0xFFFFFF,
  79.     g_Colorado                  = 0xFFFFFF,
  80.     g_Botafogo                  = 0xFFFFFF,
  81.     g_Barueri                   = 0xFFFFFF,
  82.     g_avai                      = 0xFFFFFF,
  83.     g_AtletiGO                  = 0xFFFFFF,
  84.     g_AtletiPR                  = 0xFFFFFF,
  85.     g_AtletiMG                  = 0xFFFFFF,
  86.     c_AtleticoGO                = 0xFFFFFF,
  87.     c_Flamengo                  = 0xFFFFFF,
  88.     c_Vitoria                   = 0xFFFFFF,
  89.     c_Vasco                     = 0xFFFFFF,
  90.     c_Cruzeiro                  = 0xFFFFFF,
  91.     c_Saopaulo                  = 0xFFFFFF,
  92.     c_Santos                    = 0xFFFFFF,
  93.     c_Palmeras                  = 0xFFFFFF,
  94.     c_Fluminen                  = 0xFFFFFF,
  95.     c_Corintia                  = 0xFFFFFF,
  96.     c_Ceara                     = 0xFFFFFF,
  97.     c_Garaiano                  = 0xFFFFFF,
  98.     c_Gremio                    = 0xFFFFFF,
  99.     c_Goias                     = 0xFFFFFF,
  100.     c_Colorado                  = 0xFFFFFF,
  101.     c_Botafogo                  = 0xFFFFFF,
  102.     c_Barueri                   = 0xFFFFFF,
  103.     c_avai                      = 0xFFFFFF,
  104.     c_AtletiPR                  = 0xFFFFFF,
  105.     c_AtletiMG                  = 0xFFFFFF
  106. ;
  107.  
  108. main()
  109. {
  110. //  LoadGM();
  111. }
  112.  
  113. public OnPlayerConnect(playerid)
  114. {
  115.     GetPlayerIp(playerid, string, 16);
  116.     format(string, sizeof(string), "{09FF1A}[INFO]:{FFFFFF} %s(ID:%i) Entrou no servidor! IP:(%s)", GetNick(playerid), playerid, string);
  117.     SendClientMessageToAll(0xFFFFFFFF, string);
  118.     SetPlayerColor(playerid, -1);
  119.  
  120.     format(string, sizeof(string),"./Usuarios/%s.REG", GetNick(playerid));
  121.     if(dini_Isset(string,GetNick(playerid)))
  122.         SetPlayerScore(playerid, dini_Int(string, GetNick(playerid)));
  123.     return true;
  124. }
  125.  
  126. public OnPlayerDisconnect(playerid, reason)
  127. {
  128.     switch(reason)
  129.     {
  130.         case 0: format(string, sizeof(string),"|> %s Saiu do servidor ( Resolveu Sair ).",GetNick(playerid));
  131.         case 1: format(string, sizeof(string),"|> %s Saiu do servidor ( Levou um Crash ).", GetNick(playerid));
  132.         case 2: format(string, sizeof(string),"|> %s Saiu do servidor ( Kickado Banido, Leia as regras).", GetNick(playerid));
  133.     }
  134.     SendClientMessageToAll(Cinza, string);
  135.     format(string, sizeof(string),"Usuarios/%s.REG", GetNick(playerid));
  136.     dini_IntSet(string,"Score",GetPlayerScore(playerid));
  137.     return ;
  138. }
  139.  
  140. public OnPlayerCommandText(playerid, cmdtext[])
  141. {
  142.     if(!strcmp(cmdtext,"/Ajuda", true))
  143.     {
  144.         new istring[505]="#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#\n";
  145.         strcat(istring,      "#-> Digite: \"/Objetivo\" Para poder saber o objetivo deste servidor.\n",strlen(istring));
  146.         strins(istring,      "#-> Digite: \"/Comandos\" Para Saber os comandos disponíveis no servidor.\n",strlen(istring));
  147.         strins(istring,      "#-> Digite: \"/Admins\" Para saber os adminstradores Online.\n",strlen(istring));
  148.         strins(istring,      "#-> Digite: \"/Creditos\" Para saber os créditos deste GameMode.\n",strlen(istring));
  149.         strins(istring,      "#-> Digite: \"/Regras\" Para não ser punido injustamente por um adminstrador.\n",strlen(istring));
  150.         strins(istring,      "#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#",strlen(istring));
  151.         ShowPlayerDialog(playerid, DIALOG_AJUDA, DIALOG_STYLE_MSGBOX,"~ AJUDA ~", istring, "Oky","Fechar");
  152.         return true;
  153.     }
  154.     if(!strcmp(cmdtext,"/Objetivo", true))
  155.     {
  156.         new istring[400] =
  157.         "Objetivo deste Gamemode é simplismente matar seu time rival, isto é matar e ainda Dominar,\n\
  158.        Importante ! você deverá seguir as regras ou será punido,\n\
  159.        Além de matar seu time rival deverá dominar a base do time,\n\
  160.        Proteger a base do seu time e também não matar seus companheiros,\n\
  161.        Caso morre você irá para o céu, más você irá para o céu somente se protejer sua base.";
  162.         ShowPlayerDialog(playerid, DIALOG_OBJETIVO, DIALOG_STYLE_MSGBOX," ~ Objetivo ~", istring, "Ok","Fechar");
  163.         printf("comands tem %d", strlen(istring));
  164.         return true;
  165.     }
  166.     if(!strcmp(cmdtext,"/Comandos", true))
  167.     {
  168.         new istring[220] =
  169.         "#-> \"/Duelos\" ==> Para saber as arenas de duelos disponíveis,\n\
  170.         #-> \"/Kits\" ==> Para conseguir armas no servidor,\n\
  171.         #-> \"/Agradecimentos\" ==> Para saber quem ajudou neste servidor,\n\
  172.         #-> \"/MudarTime\" ==> Você muda seu time.";
  173.         ShowPlayerDialog(playerid, DIALOG_COMANDOS, DIALOG_STYLE_MSGBOX,"~ Comandos ~",istring,"Ok","Fechar");
  174.         printf("comands tem %d", strlen(istring));
  175.         return true;
  176.     }
  177.     if(!strcmp(cmdtext,"/mudar", true))
  178.     {
  179.         ForceClassSelection(playerid);
  180.         SetPlayerHealth(playerid,0);
  181.         return true;
  182.     }
  183.     if(!strcmp(cmdtext, "/dominar", true))
  184.     {
  185.         format(string, sizeof(string),"[INFO]: O %s %s[ID:%i] está dominando a gang zone do %s!!!", GetTeamName(playerid), GetNick(playerid), playerid, GetPlayerCheckpointName(playerid));
  186.         SendClientMessageToAll(Verde, string);
  187.  
  188.         GangZoneFlashForAll(checkpoli[playerid], GetPlayerColor(playerid));
  189.         Contagem_(playerid);
  190.         for(new i; i < MAX_PLAYERS; ++i)
  191.         {
  192.             if(IsPlayerConnected(i))
  193.             {
  194.                 if(Team[i] == Dominando[playerid])
  195.                 {
  196.                     GameTextForPlayer(i,"Estao dominando sua gangzone!!!", 2500, 3);
  197.                 }
  198.             }
  199.         }
  200.         return 1;
  201.     }
  202.     if(!strcmp(cmdtext, "/creditos", true))
  203.     {
  204.         ShowPlayerDialog(playerid, 1000, DIALOG_STYLE_MSGBOX,"~ Créditos ~", "Todos os direitos reservados para:\n\n[iPs]Garfield / SuYaNw / Full.Garfield@Hotmail.com\n\n[iPs]TeaM - Projeto Semestral\n\nwww.ips-team.blogspot.com","Fechar","");
  205.         return 1;
  206.     }
  207.     format(string, sizeof(string),"[ERRO]: O Comando \"%s\" que você digitou é desconhecido",cmdtext);
  208.     return SendClientMessage(playerid, Vermelho, string);
  209. }
  210.  
  211. public OnPlayerSpawn(playerid)
  212. {
  213.     switch(GetPlayerSkin(playerid))
  214.     {
  215.         case 2,12,18,19,55:     Team[playerid] = Flamengo,SetPlayerColor(playerid,0xFF000096);
  216.         case 23,24:             Team[playerid] = AtleticoGO,SetPlayerColor(playerid,0x00000096);
  217.         case 41,44:             Team[playerid] = AtleticoMG,SetPlayerColor(playerid,0xC0C0C096);
  218.         case 50,51:             Team[playerid] = AtleticoPR,SetPlayerColor(playerid,0xFFFFF96);
  219.         case 45,92:             Team[playerid] = Avai,SetPlayerColor(playerid,0x3366FF96);
  220.         case 93,94:             Team[playerid] = Botafogo,SetPlayerColor(playerid,0x3333FF96);
  221.         case 99,98:             Team[playerid] = Ceara,SetPlayerColor(playerid,0xFFFFCC96);
  222.         case 106,109:           Team[playerid] = Corinthians,SetPlayerColor(playerid,0xEE82EE96);
  223.         case 101,184:           Team[playerid] = Cruzeiro,SetPlayerColor(playerid,0x3333FF96);
  224.         case 89,171:            Team[playerid] = Fluminense,SetPlayerColor(playerid,0x66000096);
  225.         case 111,112:           Team[playerid] = Goias,SetPlayerColor(playerid,0x00990096);
  226.         case 113, 114:          Team[playerid] = Gremio,SetPlayerColor(playerid,0x33CCFF96);
  227.         case 175,179:           Team[playerid] = Barueri,SetPlayerColor(playerid,0x00006696);
  228.         case 122,123:           Team[playerid] = Guarani,SetPlayerColor(playerid,0x99FF9996);
  229.         case 126,125:           Team[playerid] = Internacional,SetPlayerColor(playerid,0xCC66CC96);
  230.         case 133,128:           Team[playerid] = Palmeiras,SetPlayerColor(playerid,0x00640096);
  231.         case 134,144:           Team[playerid] = Santos,SetPlayerColor(playerid,0xFFFF3396);
  232.         case 153,148:           Team[playerid] = SaoPaulo,SetPlayerColor(playerid,0xFF99FF96);
  233.         case 157,156:           Team[playerid] = Vasco,SetPlayerColor(playerid,0x33333396);
  234.         case 162,163:           Team[playerid] = Vitoria,SetPlayerColor(playerid,0x99999996);
  235.     }
  236.  
  237.     GangZoneShowForPlayer(playerid, g_Cruzeiro, 0x3333FF96);
  238.     GangZoneShowForPlayer(playerid, g_Vasco,    0x33333396);
  239.     GangZoneShowForPlayer(playerid, g_Vitoria,  0x99999996);
  240.     GangZoneShowForPlayer(playerid, g_Saopaulo, 0xFF99FF96);
  241.     GangZoneShowForPlayer(playerid, g_Santos,   0xFFFF3396);
  242.     GangZoneShowForPlayer(playerid, g_Palmeras, 0x00640096);
  243.     GangZoneShowForPlayer(playerid, g_Fluminen, 0x66000096);
  244.     GangZoneShowForPlayer(playerid, g_Corintia, 0xEE82EE96);
  245.     GangZoneShowForPlayer(playerid, g_Ceara,    0xFFFFCC96);
  246.     GangZoneShowForPlayer(playerid, g_Garaiano, 0x99FF9996);
  247.     GangZoneShowForPlayer(playerid, g_Gremio,   0x33CCFF96);
  248.     GangZoneShowForPlayer(playerid, g_Goias,    0x00990096);
  249.     GangZoneShowForPlayer(playerid, g_Colorado, 0xCC66CC96);
  250.     GangZoneShowForPlayer(playerid, g_Botafogo, 0x3333FF96);
  251.     GangZoneShowForPlayer(playerid, g_Barueri,  0x00006696);
  252.     GangZoneShowForPlayer(playerid, g_avai,     0x3366FF96);
  253.     GangZoneShowForPlayer(playerid, g_AtletiGO, 0x00000096);
  254.     GangZoneShowForPlayer(playerid, g_AtletiPR, 0xFFFFFF96);
  255.     GangZoneShowForPlayer(playerid, g_AtletiMG, 0xC0C0C096);
  256.  
  257.    
  258.     SetPlayerInterior(playerid, 0);
  259.    
  260.     format(string, sizeof(string),"[INFO]: Atenção %s's, entrou mais um membro para sua equipe!", GetTeamName(playerid));
  261.     for(new i; i < MAX_PLAYERS; ++i)
  262.     {
  263.         if(IsPlayerConnected(i) && Team[i] == Team[playerid])
  264.         {
  265.             SendClientMessage(i, Amarelo, string);
  266.         }
  267.     }
  268.    
  269.     GivePlayerWeapon ( playerid , 26 , 9999 ) ;
  270.     GivePlayerWeapon ( playerid , 31 ,9999 ) ;
  271.     GivePlayerWeapon ( playerid , 24 ,9999 ) ;
  272.     GivePlayerWeapon ( playerid , 32 ,9999 ) ;
  273.    
  274.     GangZoneShowForPlayer(playerid, g_Flamengo, -16777017);
  275.     GangZoneShowForPlayer(playerid, g_AtleticoGO, 199);
  276.     return true;
  277. }
  278.  
  279. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  280. {
  281.     if(dialogid == DIALOG_REGRAS)
  282.     {
  283.         if(response)
  284.         {
  285.             printf("%s aceitou as regras.", GetNick(playerid));
  286.             format(string, sizeof(string),"Você (%s) Aceitou as regras.", GetNick(playerid));
  287.             SendClientMessage(playerid, Verde,string);
  288.         }
  289.         else
  290.         {
  291.             format(string, sizeof(string), "|<%s>| Foi kickado do servidor porque não aceitou as regras.", GetNick(playerid));
  292.             SendClientMessageToAll(0xFF4F22FF, string);
  293.         //    Kick(playerid);
  294.         }
  295.     }
  296.     else if(dialogid == DIALOG_MUDAR_TIME)
  297.     {
  298.         if(response)
  299.         {
  300.             if(listitem)
  301.             {
  302.                 SetPlayerTeam(playerid, AtleticoGO);
  303.                 OnPlayerSpawn(playerid);
  304.             }
  305.             else if(listitem == 1)
  306.             {
  307.                 SetPlayerTeam(playerid, AtleticoMG);
  308.                 OnPlayerSpawn(playerid);
  309.             }
  310.             else if(listitem == 2)
  311.             {
  312.                 SetPlayerTeam(playerid, Avai);
  313.                 OnPlayerSpawn(playerid);
  314.             }
  315.             else if(listitem == 3)
  316.             {
  317.                 SetPlayerTeam(playerid, Botafogo);
  318.                 OnPlayerSpawn(playerid);
  319.             }
  320.             else if(listitem == 4)
  321.             {
  322.                 SetPlayerTeam(playerid, Ceara);
  323.                 OnPlayerSpawn(playerid);
  324.             }
  325.             else if(listitem == 5)
  326.             {
  327.                 SetPlayerTeam(playerid, Corinthians);
  328.                 OnPlayerSpawn(playerid);
  329.             }
  330.             else if(listitem == 6)
  331.             {
  332.                 SetPlayerTeam(playerid, Cruzeiro);
  333.                 OnPlayerSpawn(playerid);
  334.             }
  335.             else if(listitem == 7)
  336.             {
  337.                 SetPlayerTeam(playerid, Flamengo);
  338.                 OnPlayerSpawn(playerid);
  339.             }
  340.             else if(listitem == 8)
  341.             {
  342.                 SetPlayerTeam(playerid, Fluminense);
  343.                 OnPlayerSpawn(playerid);
  344.             }
  345.             else if(listitem == 9)
  346.             {
  347.                 SetPlayerTeam(playerid, Goias);
  348.                 OnPlayerSpawn(playerid);
  349.             }
  350.             else if(listitem == 10)
  351.             {
  352.                 SetPlayerTeam(playerid, Gremio);
  353.                 OnPlayerSpawn(playerid);
  354.             }
  355.             else if(listitem == 11)
  356.             {
  357.                 SetPlayerTeam(playerid, Barueri);
  358.                 OnPlayerSpawn(playerid);
  359.             }
  360.             else if(listitem == 12)
  361.             {
  362.                 SetPlayerTeam(playerid, Guarani);
  363.                 OnPlayerSpawn(playerid);
  364.             }
  365.             else if(listitem == 13)
  366.             {
  367.                 SetPlayerTeam(playerid, Internacional);
  368.                 OnPlayerSpawn(playerid);
  369.             }
  370.             else if(listitem == 14)
  371.             {
  372.                 SetPlayerTeam(playerid, Palmeiras);
  373.                 OnPlayerSpawn(playerid);
  374.             }
  375.             else if(listitem == 15)
  376.             {
  377.                 SetPlayerTeam(playerid, Santos);
  378.                 OnPlayerSpawn(playerid);
  379.             }
  380.             else if(listitem == 16)
  381.             {
  382.                 SetPlayerTeam(playerid, SaoPaulo);
  383.                 OnPlayerSpawn(playerid);
  384.             }
  385.             else if(listitem == 17)
  386.             {
  387.                 SetPlayerTeam(playerid, Vasco);
  388.                 OnPlayerSpawn(playerid);
  389.             }
  390.             else if(listitem == 18)
  391.             {
  392.                 SetPlayerTeam(playerid, Vitoria);
  393.                 OnPlayerSpawn(playerid);
  394.             }
  395.             SetPlayerHealth(playerid, 0);
  396.         }
  397.     }
  398.     else if(dialogid == DIALOG_SPAWNED_PLAYER)
  399.     {
  400.         if(!response) ShowPlayerDialog(playerid, DIALOG_SPAWNED_KICK, DIALOG_STYLE_MSGBOX,"~ Até Mais ~","Você selecionou outra opção, agora daqui a 5 minutos será Kickado,\nPara desfazer você terá que clicar em \"Desfazer\"\nVolte Sempre, equipe agradece.","Desfazer"," "); SetTimerEx("KickShau", 300000,false,"d",playerid);
  401.     }
  402.     return 1;
  403. }
  404. public OnGameModeInit()
  405. {
  406. //   - Para Andar igual MACHO-
  407.     UsePlayerPedAnims();
  408.    
  409.    
  410. //   - Cores Players-
  411.     ShowPlayerMarkers(true);
  412.    
  413.    
  414. //  - GameModeText
  415.     SendRconCommand("gamemodetext Base Torcidas");
  416.    
  417.    
  418.    
  419. //  -Nome Sever -
  420.     SendRconCommand(Nome_Sever);
  421.    
  422. //  g_AtleticoGO = GangZoneCreate(1555.316894, 2134.959472, 1739.316894, 2294.959472);
  423.     g_Flamengo   = GangZoneCreate(1251.133178, 2043.975341, 1507.133178, 2275.975341);
  424.     g_Cruzeiro = GangZoneCreate(1809.035522, 1268.140502, 2049.035644, 1460.140502);
  425.     g_Vitoria  = GangZoneCreate(2388.883544, 1456.561523, 2628.883544, 1632.561523);
  426.     g_Vasco    = GangZoneCreate(2310.975097, 2121.801757, 2542.975097, 2249.801757);
  427.     g_Saopaulo = GangZoneCreate(1552.819702, 1692.753051, 1648.819702, 1876.753051);
  428.     g_Santos   = GangZoneCreate(2722.436523, 1215.569091, 2882.436523, 1407.569091);
  429.     g_Palmeras = GangZoneCreate(2744.392822, 814.548522, 2912.392822, 1054.548583);
  430.     g_Fluminen = GangZoneCreate(1479.078002, 1865.117797, 1735.078002, 2017.117797);
  431.     g_Corintia = GangZoneCreate(2075.088134, 2584.966064, 2251.088134, 2864.966064);
  432.     g_Ceara    = GangZoneCreate(2496.531982, 1596.388916, 2696.531982, 1956.388916);
  433.     g_Garaiano = GangZoneCreate(1070.873535, 2696.901123, 1550.873535, 2888.901123);
  434.     g_Gremio   = GangZoneCreate(2052.612060, 971.865600, 2364.612060, 1211.865600);
  435.     g_Goias    = GangZoneCreate(2549.355712, 1046.683227, 2685.355712, 1166.683227);
  436.     g_Colorado = GangZoneCreate(1790.774780, 613.272949, 2022.774780, 805.272949);
  437.     g_Botafogo = GangZoneCreate(2147.500244, 1868.889770, 2347.500244, 2036.889770);
  438.     g_Barueri  = GangZoneCreate(1558.803955, 848.317016, 1798.803955, 1136.317016);
  439.     g_avai     = GangZoneCreate(2065.472412, 1523.001708, 2329.472412, 1787.001708);
  440.     g_AtletiGO = GangZoneCreate(1920.081787, 1977.764526, 2128.081787, 2161.764648);
  441.     g_AtletiPR = GangZoneCreate(1804.203247, 2260.218505, 2044.203247, 2508.218505);
  442.     g_AtletiMG = GangZoneCreate(1555.316894, 2134.959472, 1739.316894, 2294.959472);
  443.    
  444.     c_Flamengo      = LCS_CreateCheckpoint(1485.0447,2148.7178,11.0234,         5.0);
  445.     c_AtleticoGO    = LCS_CreateCheckpoint(1949.7528,2143.3650,10.8203,         5.0);
  446.     c_Cruzeiro      = LCS_CreateCheckpoint(1956.9344,1343.0154,15.3746,         5.0);
  447.     c_Vitoria       = LCS_CreateCheckpoint(2564.8833,1577.4252,10.8203,         5.0);
  448.     c_Vasco         = LCS_CreateCheckpoint(2397.1313,2160.4221,10.8203,         5.0);
  449.     c_Saopaulo      = LCS_CreateCheckpoint(1590.4349,1818.3350,10.8203,         5.0);
  450.     c_Santos        = LCS_CreateCheckpoint(2840.1589,1310.1471,11.3906,         5.0);
  451.     c_Palmeras      = LCS_CreateCheckpoint(2641.7954,1123.6404,10.8203,         5.0);
  452.     c_Fluminen      = LCS_CreateCheckpoint(1628.8259,1945.1990,11.0234,         5.0);
  453.     c_Corintia      = LCS_CreateCheckpoint(2151.7209,2817.8379,10.8203,         5.0);
  454.     c_Ceara         = LCS_CreateCheckpoint(2631.0056,1897.1057,10.8203,         5.0);
  455.     c_Garaiano      = LCS_CreateCheckpoint(1486.8546,2774.3005,10.8203,         5.0);
  456.     c_Gremio        = LCS_CreateCheckpoint(2180.1489,1116.6871,12.6484,         5.0);
  457.     c_Goias         = LCS_CreateCheckpoint(2854.8855,896.4736,10.1788,          5.0);
  458.     c_Colorado      = LCS_CreateCheckpoint(1919.3624,672.0930,10.8203,          5.0);
  459.     c_Botafogo      = LCS_CreateCheckpoint(2195.1172,1668.2789,12.3672,         5.0);
  460.     c_Barueri       = LCS_CreateCheckpoint(1661.5531,1055.6764,11.1930,         5.0);
  461.     c_avai          = LCS_CreateCheckpoint(2191.7944,1968.5856,10.8203,         5.0);
  462.     c_AtletiPR      = LCS_CreateCheckpoint(1969.8562,2473.4878,11.1782,         5.0);
  463.     c_AtletiMG      = LCS_CreateCheckpoint(1609.7830,2232.2947,10.8203,         5.0);
  464.    
  465. //      -Derby-
  466.     DerbyBloodringBanger[0] = AddStaticVehicle(504,-1355.5416,936.6710,1036.1837,11.4329,1,1);          LinkVehicleToInterior(DerbyBloodringBanger[0],15);
  467.     DerbyBloodringBanger[1] = AddStaticVehicle(504,-1350.6061,937.5493,1036.1947,12.4710,1,1);          LinkVehicleToInterior(DerbyBloodringBanger[1],15); // BloodringBanger
  468.     DerbyBloodringBanger[2] = AddStaticVehicle(504,-1345.6512,938.5836,1036.2046,13.2675,1,1);          LinkVehicleToInterior(DerbyBloodringBanger[2],15); // BloodringBanger
  469.     DerbyBloodringBanger[3] = AddStaticVehicle(504,-1340.6078,939.9857,1036.2150,17.2391,1,1);          LinkVehicleToInterior(DerbyBloodringBanger[3],15); // BloodringBanger
  470.     DerbyBloodringBanger[4] = AddStaticVehicle(504,-1336.7312,941.1116,1036.2316,17.4418,1,1);          LinkVehicleToInterior(DerbyBloodringBanger[4],15); // BloodringBanger
  471.     DerbyBloodringBanger[5] = AddStaticVehicle(504,-1331.5814,942.9241,1036.2539,20.6521,1,1);          LinkVehicleToInterior(DerbyBloodringBanger[5],15);
  472.     DerbyBloodringBanger[6] = AddStaticVehicle(504,-1487.5134,954.9534,1036.7303,325.7171,1,1);         LinkVehicleToInterior(DerbyBloodringBanger[6],15); //BloodringBanger
  473.     DerbyBloodringBanger[7] = AddStaticVehicle(504,-1491.5236,958.0043,1036.7849,318.9600,1,1);         LinkVehicleToInterior(DerbyBloodringBanger[7],15);//BloodringBanger
  474.     DerbyBloodringBanger[8] = AddStaticVehicle(504,-1495.4299,961.5493,1036.8516,316.2965,1,1);         LinkVehicleToInterior(DerbyBloodringBanger[8],15);//BloodringBanger
  475.     DerbyBloodringBanger[9] = AddStaticVehicle(504,-1499.6245,965.7825,1036.9264,313.8272,1,1);         LinkVehicleToInterior(DerbyBloodringBanger[9],15);//BloodringBanger
  476.     DerbyBloodringBanger[10] = AddStaticVehicle(504,-1503.4319,969.8809,1037.0063,308.4377,1,1);        LinkVehicleToInterior(DerbyBloodringBanger[10],15);//BloodringBanger
  477.     DerbyBloodringBanger[11] = AddStaticVehicle(504,-1506.2706,974.4487,1037.0886,304.1562,1,1);        LinkVehicleToInterior(DerbyBloodringBanger[11],15);//BloodringBanger
  478.  
  479. //==========================[ Classes ]============================================
  480.     AddClass(2,  1485.0238,2110.6267,11.0234); // Flamenguistas
  481.     AddClass(12, 1485.0238,2110.6267,11.0234); // Flamenguistas
  482.     AddClass(18, 1485.0238,2110.6267,11.0234); // Flamenguistas
  483.     AddClass(19, 1485.0238,2110.6267,11.0234); // Flamenguistas
  484.     AddClass(55, 1485.0238,2110.6267,11.0234); // Flamenguistas
  485.    
  486.     AddClass(23, 1936.8875,2143.2437,10.8203); // AtléticoGO
  487.     AddClass(25, 1936.8875,2143.2437,10.8203); // AtléticoGO
  488.    
  489.     AddClass(41, 1601.6687,2219.1516,11.0625); // AtleticoMG
  490.     AddClass(44, 1601.6687,2219.1516,11.0625); // AtleticoMG
  491.    
  492.     AddClass(50, 1966.9290,2446.9578,11.1782); // AtleticoPR
  493.     AddClass(51, 1966.9290,2446.9578,11.1782); // AtleticoPR
  494.    
  495.     AddClass(45, 2170.2358,1971.5815,10.8203); // Avai
  496.     AddClass(92, 2170.2358,1971.5815,10.8203); // Avai
  497.    
  498.     AddClass(93, 2179.0535,1677.9661,11.0469); // Botafogo
  499.     AddClass(94, 2179.0535,1677.9661,11.0469); // Botafogo
  500.    
  501.     AddClass(99, 2624.1013,1824.3339,11.0234); // Ceara
  502.     AddClass(98, 2624.1013,1824.3339,11.0234); // Ceara
  503.    
  504.     AddClass(106, 2144.2249,2834.6289,10.8203); // Corinthians
  505.     AddClass(109, 2144.2249,2834.6289,10.8203); // Corinthians
  506.    
  507.     AddClass(101, 2029.6152,1342.7455,10.8203); // Cruzeiro
  508.     AddClass(184, 2029.6152,1342.7455,10.8203); // Cruzeiro
  509.    
  510.     AddClass(89,  1612.1167,1976.7167,10.8203); // Fluminense
  511.     AddClass(171, 1612.1167,1976.7167,10.8203); // Fluminense
  512.    
  513.     AddClass(111, 2813.4482,891.7308,10.7578); // Goias
  514.     AddClass(112, 2813.4482,891.7308,10.7578); // Goias
  515.    
  516.     AddClass(113, 2142.8750,1135.4270,13.5045); // Gremio
  517.     AddClass(114, 2142.8750,1135.4270,13.5045); // Gremio
  518.    
  519.     AddClass(175, 1635.3081,1038.5396,10.8203); // Barueri
  520.     AddClass(179, 1635.3081,1038.5396,10.8203); // Barueri
  521.    
  522.     AddClass(122, 1458.9167,2773.2495,10.8203); // Guarani
  523.     AddClass(123, 1458.9167,2773.2495,10.8203); // Guarani
  524.    
  525.     AddClass(126, 1897.1155,728.6604,10.8203); // Internacional
  526.     AddClass(125, 1897.1155,728.6604,10.8203); // Internacional
  527.    
  528.     AddClass(133, 2638.4526,1065.3898,10.8203); // Palmeiras
  529.     AddClass(128, 2638.4526,1065.3898,10.8203); // Palmeiras
  530.    
  531.     AddClass(134, 2820.4114,1274.7181,10.9609); // Santos
  532.     AddClass(144, 2820.4114,1274.7181,10.9609); // Santos
  533.    
  534.     AddClass(153, 1606.7523,1818.2369,10.8203); // SaoPaulo
  535.     AddClass(148, 1606.7523,1818.2369,10.8203); // SaoPaulo
  536.    
  537.     AddClass(157, 2369.0251,2164.1074,10.8280); // Vasco
  538.     AddClass(156, 2369.0251,2164.1074,10.8280); // Vasco
  539.    
  540.     AddClass(162, 2560.6370,1561.8170,10.8203); // Vitoria
  541.     AddClass(163, 2560.6370,1561.8170,10.8203); // Vitoria
  542.  
  543.    
  544.     AddStaticVehicle(451,2040.0520,1319.2799,10.3779,183.2439,16,16);
  545.     AddStaticVehicle(429,2040.5247,1359.2783,10.3516,177.1306,13,13);
  546.     AddStaticVehicle(421,2110.4102,1398.3672,10.7552,359.5964,13,13);
  547.     AddStaticVehicle(411,2074.9624,1479.2120,10.3990,359.6861,64,64);
  548.     AddStaticVehicle(477,2075.6038,1666.9750,10.4252,359.7507,94,94);
  549.     AddStaticVehicle(541,2119.5845,1938.5969,10.2967,181.9064,22,22);
  550.     AddStaticVehicle(541,1843.7881,1216.0122,10.4556,270.8793,60,1);
  551.     AddStaticVehicle(402,1944.1003,1344.7717,8.9411,0.8168,30,30);
  552.     AddStaticVehicle(402,1679.2278,1316.6287,10.6520,180.4150,90,90);
  553.     AddStaticVehicle(415,1685.4872,1751.9667,10.5990,268.1183,25,1);
  554.     AddStaticVehicle(411,2034.5016,1912.5874,11.9048,0.2909,123,1);
  555.     AddStaticVehicle(411,2172.1682,1988.8643,10.5474,89.9151,116,1);
  556.     AddStaticVehicle(429,2245.5759,2042.4166,10.5000,270.7350,14,14);
  557.     AddStaticVehicle(477,2361.1538,1993.9761,10.4260,178.3929,101,1);
  558.     AddStaticVehicle(550,2221.9946,1998.7787,9.6815,92.6188,53,53);
  559.     AddStaticVehicle(558,2243.3833,1952.4221,14.9761,359.4796,116,1);
  560.     AddStaticVehicle(587,2276.7085,1938.7263,31.5046,359.2321,40,1);
  561.     AddStaticVehicle(587,2602.7769,1853.0667,10.5468,91.4813,43,1);
  562.     AddStaticVehicle(603,2610.7600,1694.2588,10.6585,89.3303,69,1);
  563.     AddStaticVehicle(587,2635.2419,1075.7726,10.5472,89.9571,53,1);
  564.     AddStaticVehicle(437,2577.2354,1038.8063,10.4777,181.7069,35,1);
  565.     AddStaticVehicle(535,2039.1257,1545.0879,10.3481,359.6690,123,1);
  566.     AddStaticVehicle(535,2009.8782,2411.7524,10.5828,178.9618,66,1);
  567.     AddStaticVehicle(429,2010.0841,2489.5510,10.5003,268.7720,1,2);
  568.     AddStaticVehicle(415,2076.4033,2468.7947,10.5923,359.9186,36,1);
  569.     AddStaticVehicle(487,2093.2754,2414.9421,74.7556,89.0247,26,57);
  570.     AddStaticVehicle(506,2352.9026,2577.9768,10.5201,0.4091,7,7);
  571.     AddStaticVehicle(506,2166.6963,2741.0413,10.5245,89.7816,52,52);
  572.     AddStaticVehicle(411,1960.9989,2754.9072,10.5473,200.4316,112,1);
  573.     AddStaticVehicle(429,1919.5863,2760.7595,10.5079,100.0753,2,1);
  574.     AddStaticVehicle(415,1673.8038,2693.8044,10.5912,359.7903,40,1);
  575.     AddStaticVehicle(402,1591.0482,2746.3982,10.6519,172.5125,30,30);
  576.     AddStaticVehicle(603,1580.4537,2838.2886,10.6614,181.4573,75,77);
  577.     AddStaticVehicle(550,1555.2734,2750.5261,10.6388,91.7773,62,62);
  578.     AddStaticVehicle(535,1455.9305,2878.5288,10.5837,181.0987,118,1);
  579.     AddStaticVehicle(477,1537.8425,2578.0525,10.5662,0.0650,121,1);
  580.     AddStaticVehicle(451,1433.1594,2607.3762,10.3781,88.0013,16,16);
  581.     AddStaticVehicle(603,2223.5898,1288.1464,10.5104,182.0297,18,1);
  582.     AddStaticVehicle(558,2451.6707,1207.1179,10.4510,179.8960,24,1);
  583.     AddStaticVehicle(550,2461.7253,1357.9705,10.6389,180.2927,62,62);
  584.     AddStaticVehicle(558,2461.8162,1629.2268,10.4496,181.4625,117,1);
  585.     AddStaticVehicle(477,2395.7554,1658.9591,10.5740,359.7374,0,1);
  586.     AddStaticVehicle(404,1553.3696,1020.2884,10.5532,270.6825,119,50);
  587.     AddStaticVehicle(400,1380.8304,1159.1782,10.9128,355.7117,123,1);
  588.     AddStaticVehicle(418,1383.4630,1035.0420,10.9131,91.2515,117,227);
  589.     AddStaticVehicle(404,1445.4526,974.2831,10.5534,1.6213,109,100);
  590.     AddStaticVehicle(400,1704.2365,940.1490,10.9127,91.9048,113,1);
  591.     AddStaticVehicle(404,1658.5463,1028.5432,10.5533,359.8419,101,101);
  592.     AddStaticVehicle(581,1677.6628,1040.1930,10.4136,178.7038,58,1);
  593.     AddStaticVehicle(581,1383.6959,1042.2114,10.4121,85.7269,66,1);
  594.     AddStaticVehicle(581,1064.2332,1215.4158,10.4157,177.2942,72,1);
  595.     AddStaticVehicle(581,1111.4536,1788.3893,10.4158,92.4627,72,1);
  596.     AddStaticVehicle(522,953.2818,1806.1392,8.2188,235.0706,3,8);
  597.     AddStaticVehicle(522,995.5328,1886.6055,10.5359,90.1048,3,8);
  598.     AddStaticVehicle(521,993.7083,2267.4133,11.0315,1.5610,75,13);
  599.     AddStaticVehicle(535,1439.5662,1999.9822,10.5843,0.4194,66,1);
  600.     AddStaticVehicle(522,1430.2354,1999.0144,10.3896,352.0951,6,25);
  601.     AddStaticVehicle(522,2156.3540,2188.6572,10.2414,22.6504,6,25);
  602.     AddStaticVehicle(598,2277.6846,2477.1096,10.5652,180.1090,0,1);
  603.     AddStaticVehicle(598,2268.9888,2443.1697,10.5662,181.8062,0,1);
  604.     AddStaticVehicle(598,2256.2891,2458.5110,10.5680,358.7335,0,1);
  605.     AddStaticVehicle(598,2251.6921,2477.0205,10.5671,179.5244,0,1);
  606.     AddStaticVehicle(523,2294.7305,2441.2651,10.3860,9.3764,0,0);
  607.     AddStaticVehicle(523,2290.7268,2441.3323,10.3944,16.4594,0,0);
  608.     AddStaticVehicle(523,2295.5503,2455.9656,2.8444,272.6913,0,0);
  609.     AddStaticVehicle(522,2476.7900,2532.2222,21.4416,0.5081,8,82);
  610.     AddStaticVehicle(522,2580.5320,2267.9595,10.3917,271.2372,8,82);
  611.     AddStaticVehicle(522,2814.4331,2364.6641,10.3907,89.6752,36,105);
  612.     AddStaticVehicle(535,2827.4143,2345.6953,10.5768,270.0668,97,1);
  613.     AddStaticVehicle(521,1670.1089,1297.8322,10.3864,359.4936,87,118);
  614.     AddStaticVehicle(487,1614.7153,1548.7513,11.2749,347.1516,58,8);
  615.     AddStaticVehicle(487,1647.7902,1538.9934,11.2433,51.8071,0,8);
  616.     AddStaticVehicle(487,1608.3851,1630.7268,11.2840,174.5517,58,8);
  617.     AddStaticVehicle(476,1283.0006,1324.8849,9.5332,275.0468,7,6); //11.5332
  618.     AddStaticVehicle(476,1283.5107,1361.3171,9.5382,271.1684,1,6); //11.5382
  619.     AddStaticVehicle(476,1283.6847,1386.5137,11.5300,272.1003,89,91);
  620.     AddStaticVehicle(476,1288.0499,1403.6605,11.5295,243.5028,119,117);
  621.     AddStaticVehicle(415,1319.1038,1279.1791,10.5931,0.9661,62,1);
  622.     AddStaticVehicle(521,1710.5763,1805.9275,10.3911,176.5028,92,3);
  623.     AddStaticVehicle(521,2805.1650,2027.0028,10.3920,357.5978,92,3);
  624.     AddStaticVehicle(535,2822.3628,2240.3594,10.5812,89.7540,123,1);
  625.     AddStaticVehicle(521,2876.8013,2326.8418,10.3914,267.8946,115,118);
  626.     AddStaticVehicle(429,2842.0554,2637.0105,10.5000,182.2949,1,3);
  627.     AddStaticVehicle(549,2494.4214,2813.9348,10.5172,316.9462,72,39);
  628.     AddStaticVehicle(549,2327.6484,2787.7327,10.5174,179.5639,75,39);
  629.     AddStaticVehicle(549,2142.6970,2806.6758,10.5176,89.8970,79,39);
  630.     AddStaticVehicle(521,2139.7012,2799.2114,10.3917,229.6327,25,118);
  631.     AddStaticVehicle(521,2104.9446,2658.1331,10.3834,82.2700,36,0);
  632.     AddStaticVehicle(521,1914.2322,2148.2590,10.3906,267.7297,36,0);
  633.     AddStaticVehicle(549,1904.7527,2157.4312,10.5175,183.7728,83,36);
  634.     AddStaticVehicle(549,1532.6139,2258.0173,10.5176,359.1516,84,36);
  635.     AddStaticVehicle(521,1534.3204,2202.8970,10.3644,4.9108,118,118);
  636.     AddStaticVehicle(549,1613.1553,2200.2664,10.5176,89.6204,89,35);
  637.     AddStaticVehicle(400,1552.1292,2341.7854,10.9126,274.0815,101,1);
  638.     AddStaticVehicle(404,1637.6285,2329.8774,10.5538,89.6408,101,101);
  639.     AddStaticVehicle(400,1357.4165,2259.7158,10.9126,269.5567,62,1);
  640.     AddStaticVehicle(411,1281.7458,2571.6719,10.5472,270.6128,106,1);
  641.     AddStaticVehicle(522,1305.5295,2528.3076,10.3955,88.7249,3,8);
  642.     AddStaticVehicle(521,993.9020,2159.4194,10.3905,88.8805,74,74);
  643.     AddStaticVehicle(415,1512.7134,787.6931,10.5921,359.5796,75,1);
  644.     AddStaticVehicle(522,2299.5872,1469.7910,10.3815,258.4984,3,8);
  645.     AddStaticVehicle(522,2133.6428,1012.8537,10.3789,87.1290,3,8);
  646.    
  647.     LoadGM();
  648.     LCS_Load();
  649.     return true;
  650. }
  651. public OnPlayerRequestClass(playerid, classid)
  652. {  
  653.     static ISTRI[50];
  654.     switch(GetPlayerSkin(playerid))
  655.     {
  656.         case 2,12,18,19,55:     ISTRI = "Flamengo";
  657.         case 23,24:             ISTRI = "AtleticoGO";
  658.         case 41,44:             ISTRI = "AtleticoMG";
  659.         case 50,51:             ISTRI = "AtleticoPR";
  660.         case 45,92:             ISTRI = "Avai";
  661.         case 93,94:             ISTRI = "Botafogo";
  662.         case 99,98:             ISTRI = "Ceara";
  663.         case 106,109:           ISTRI = "Corinthians";
  664.         case 101,184:           ISTRI = "Cruzeiro";
  665.         case 89,171:            ISTRI = "Fluminense";
  666.         case 111,112:           ISTRI = "Goias";
  667.         case 113, 114:          ISTRI = "Gremio";
  668.         case 175,179:           ISTRI = "Barueri";
  669.         case 122,123:           ISTRI = "Guarani";
  670.         case 126,125:           ISTRI = "Internacional";
  671.         case 133,128:           ISTRI = "Palmeiras";
  672.         case 134,144:           ISTRI = "Santos";
  673.         case 153,148:           ISTRI = "SaoPaulo";
  674.         case 157,156:           ISTRI = "Vasco";
  675.         case 162,163:           ISTRI = "Vitoria";
  676.     }
  677.    
  678.     format(string,sizeof(string),"~>~%s~<~",ISTRI);
  679.     GameTextForPlayer(playerid,string, 2500, 3);
  680.    
  681.     SetPlayerInterior(playerid,0);
  682.     SetPlayerPos(playerid,1555.4786,2185.1101,11.1193);
  683.     SetPlayerFacingAngle(playerid, 233.0569);
  684.     SetPlayerCameraPos(playerid,1557.746,2182.884,12.230);
  685.     SetPlayerCameraLookAt(playerid,1555.478,2185.110,11.119);
  686.     return 1;
  687. }
  688. public KickShau(playerid)
  689. {
  690.     CreatePlayerObject(playerid,19138,0,0,0,0,0,0); //Kick(playerid);
  691.     return true;
  692. }
  693. public OnPlayerText(playerid, text[])
  694. {
  695.     if(strlen(text) > 60)  
  696.         return SendClientMessage(playerid, Vermelho,"[ERRO]: Seu texto atingiu o limite máximo, resuma!"), false;
  697.          
  698.     static oString[200];
  699.     format(oString, sizeof(oString),"{C0C0C0}O %s %s %s{FFFFFF}[ID:%i] Diz: %s",GetTeamName(playerid),ProcessColorName(playerid),GetNick(playerid),playerid,  text);
  700.     SendClientMessageToAll(-1, oString);
  701.     return false;
  702. }
  703. public LCS_OnPlayerEnterCheckpoint(playerid,checkpointid)
  704. {
  705.     if(checkpointid == c_Flamengo)return checkId[playerid] = c_Flamengo,checkpoli[playerid] = g_Flamengo,Dominando[playerid] = c_Flamengo,OnPlayerCommandText(playerid, "/dominar");
  706.     if(checkpointid == c_Vitoria)return checkId[playerid] = c_Vitoria,checkpoli[playerid] = g_Vitoria,Dominando[playerid] = c_Vitoria,OnPlayerCommandText(playerid, "/dominar");
  707.     if(checkpointid == c_Vasco)return checkId[playerid] = c_Vasco,checkpoli[playerid] = g_Vasco,Dominando[playerid] = c_Vasco,OnPlayerCommandText(playerid, "/dominar");
  708.     if(checkpointid == c_Cruzeiro)return checkId[playerid] = c_Cruzeiro,checkpoli[playerid] = g_Cruzeiro,Dominando[playerid] = c_Cruzeiro,OnPlayerCommandText(playerid, "/dominar");
  709.     if(checkpointid == c_Saopaulo)return checkId[playerid] = c_Saopaulo,checkpoli[playerid] = g_Saopaulo,Dominando[playerid] = c_Saopaulo,OnPlayerCommandText(playerid, "/dominar");
  710.     if(checkpointid == c_Santos)return checkId[playerid] = c_Santos,checkpoli[playerid] = g_Santos,Dominando[playerid] = c_Santos,OnPlayerCommandText(playerid, "/dominar");
  711.     if(checkpointid == c_Palmeras)return checkId[playerid] = c_Palmeras,checkpoli[playerid] = g_Palmeras,Dominando[playerid] = c_Palmeras,OnPlayerCommandText(playerid, "/dominar");
  712.     if(checkpointid == c_Fluminen)return checkId[playerid] = c_Fluminen,checkpoli[playerid] = g_Fluminen,Dominando[playerid] = c_Fluminen,OnPlayerCommandText(playerid, "/dominar");
  713.     if(checkpointid == c_Corintia)return checkId[playerid] = c_Corintia,checkpoli[playerid] = g_Corintia,Dominando[playerid] = c_Corintia,OnPlayerCommandText(playerid, "/dominar");
  714.     if(checkpointid == c_Ceara)return checkId[playerid] = c_Ceara,checkpoli[playerid] = g_Ceara,Dominando[playerid] = c_Ceara,OnPlayerCommandText(playerid, "/dominar");
  715.     if(checkpointid == c_Garaiano)return checkId[playerid] = c_Garaiano,checkpoli[playerid] = g_Garaiano,Dominando[playerid] = c_Garaiano,OnPlayerCommandText(playerid, "/dominar");
  716.     if(checkpointid == c_Gremio)return checkId[playerid] = c_Gremio,checkpoli[playerid] = g_Gremio,Dominando[playerid] = c_Gremio,OnPlayerCommandText(playerid, "/dominar");
  717.     if(checkpointid == c_Goias )return checkId[playerid] = c_Goias,checkpoli[playerid] = g_Goias,Dominando[playerid] = c_Goias,OnPlayerCommandText(playerid, "/dominar");
  718.     if(checkpointid == c_Colorado)return checkId[playerid] = c_Colorado,checkpoli[playerid] = g_Colorado,Dominando[playerid] = c_Colorado,OnPlayerCommandText(playerid, "/dominar");
  719.     if(checkpointid == c_Botafogo)return checkId[playerid] = c_Botafogo,checkpoli[playerid] = g_Botafogo,Dominando[playerid] = c_Botafogo,OnPlayerCommandText(playerid, "/dominar");
  720.     if(checkpointid == c_Barueri)return checkId[playerid] = c_Barueri,checkpoli[playerid] = g_Barueri,Dominando[playerid] = c_Barueri,OnPlayerCommandText(playerid, "/dominar");
  721.     if(checkpointid == c_avai)return checkId[playerid] = c_avai,checkpoli[playerid] = g_avai,Dominando[playerid] = c_avai,OnPlayerCommandText(playerid, "/dominar");
  722.     if(checkpointid == c_AtletiPR)return checkId[playerid] = c_AtletiPR,checkpoli[playerid] = g_AtletiPR,Dominando[playerid] = c_AtletiPR,OnPlayerCommandText(playerid, "/dominar");
  723.     if(checkpointid == c_AtletiMG)return checkId[playerid] = c_AtletiMG,checkpoli[playerid] = g_AtletiMG,Dominando[playerid] = c_AtletiMG,OnPlayerCommandText(playerid, "/dominar");
  724.     if(checkpointid == c_AtleticoGO)return checkId[playerid] = c_AtleticoGO,checkpoli[playerid] = g_AtleticoGO,Dominando[playerid] = c_AtleticoGO,OnPlayerCommandText(playerid, "/dominar");
  725.     return 1;
  726. }
  727. public LCS_OnPlayerLeaveCheckpoint(playerid, checkpointid) return 1;
  728. public LoadGM()
  729. {
  730.     print("________________________________________________________________________");
  731.     print(".----. _ .---.      .----. .--.              .--. _       .-.     .-.");
  732.     print(": .--':_;: .; :     `--. :: .--'            : .-':_;      : :     : :");
  733.     print(": :   .-.:  _.'.--.    : :: : _  .--.  .--. : `; .-. .--. : :   .-' :");
  734.     print(": :__ : :: :  `._-.' __: :: :; :' .; ; : ..': :  : :' '_.': :_ ' .; :");
  735.     print(":____::_;:_;  `.__.':____:`.__.'`.__,_;:_;  :_;  :_;`.__.'`.__;`.__.'");
  736.     print("________________________________________________________________________");
  737.     return 1;
  738. }
  739.  
  740. stock GetNick(playerid)
  741. {
  742.     static Nome[24];
  743.     GetPlayerName(playerid, Nome, 24);
  744.     return Nome;
  745. }
  746. stock iGetPlayerTeam(pid)
  747. {
  748.     static TeamID;
  749.     if(Team[pid] == AtleticoGO)     TeamID = Team[pid];
  750.     if(Team[pid] == AtleticoMG)     TeamID = Team[pid];
  751.     if(Team[pid] == AtleticoPR)     TeamID = Team[pid];
  752.     if(Team[pid] == Avai)           TeamID = Team[pid];
  753.     if(Team[pid] == Botafogo)       TeamID = Team[pid];
  754.     if(Team[pid] == Ceara)          TeamID = Team[pid];
  755.     if(Team[pid] == Corinthians)    TeamID = Team[pid];
  756.     if(Team[pid] == Cruzeiro)       TeamID = Team[pid];
  757.     if(Team[pid] == Flamengo)       TeamID = Team[pid];
  758.     if(Team[pid] == Fluminense)     TeamID = Team[pid];
  759.     if(Team[pid] == Goias)          TeamID = Team[pid];
  760.     if(Team[pid] == Gremio)         TeamID = Team[pid];
  761.     if(Team[pid] == Barueri)        TeamID = Team[pid];
  762.     if(Team[pid] == Guarani)        TeamID = Team[pid];
  763.     if(Team[pid] == Internacional)  TeamID = Team[pid];
  764.     if(Team[pid] == Palmeiras)      TeamID = Team[pid];
  765.     if(Team[pid] == Santos)         TeamID = Team[pid];
  766.     if(Team[pid] == SaoPaulo)       TeamID = Team[pid];
  767.     if(Team[pid] == Vasco)          TeamID = Team[pid];
  768.     if(Team[pid] == Vitoria)        TeamID = Team[pid];
  769.     return TeamID;
  770. }
  771.  
  772. stock GetTeamName(pid)
  773. {
  774.     new TeamID[50];
  775.     if(Team[pid] == AtleticoGO)     TeamID = "AtléticanoGO";
  776.     if(Team[pid] == AtleticoMG)     TeamID = "AtléticanoMG";
  777.     if(Team[pid] == AtleticoPR)     TeamID = "AtléticanoPR";
  778.     if(Team[pid] == Avai)           TeamID = "Avaiano";
  779.     if(Team[pid] == Botafogo)       TeamID = "Botafoguense";
  780.     if(Team[pid] == Ceara)          TeamID = "Cearaense";
  781.     if(Team[pid] == Corinthians)    TeamID = "Corinthiano";
  782.     if(Team[pid] == Cruzeiro)       TeamID = "Cruzeirense";
  783.     if(Team[pid] == Flamengo)       TeamID = "Flamenguista";
  784.     if(Team[pid] == Fluminense)     TeamID = "Tri/Carioca";
  785.     if(Team[pid] == Goias)          TeamID = "Goiano";
  786.     if(Team[pid] == Gremio)         TeamID = "Gremista";
  787.     if(Team[pid] == Barueri)        TeamID = "Barueriense";
  788.     if(Team[pid] == Guarani)        TeamID = "Guaraniano";
  789.     if(Team[pid] == Internacional)  TeamID = "Colorado";
  790.     if(Team[pid] == Palmeiras)      TeamID = "Palmerense";
  791.     if(Team[pid] == Santos)         TeamID = "Santista";
  792.     if(Team[pid] == SaoPaulo)       TeamID = "Tri/Paulista";
  793.     if(Team[pid] == Vasco)          TeamID = "Vascaino";
  794.     if(Team[pid] == Vitoria)        TeamID = "Vitorioso";
  795.     return TeamID;
  796. }
  797.  
  798. stock ProcessColorName(playerid)
  799. {
  800.     static COLOR[20];
  801.     switch(GetPlayerSkin(playerid))
  802.     {
  803.         case 2,12,18,19,55:     COLOR = "{FF0000}";
  804.         case 23,24:             COLOR = "{000000}";
  805.         case 41,44:             COLOR = "{C0C0C0}";
  806.         case 50,51:             COLOR = "{FFFFFF}";
  807.         case 45,92:             COLOR = "{3366FF}";
  808.         case 93,94:             COLOR = "{3333FF}";
  809.         case 99,98:             COLOR = "{FFFFCC}";
  810.         case 106,109:           COLOR = "{EE82EE}";
  811.         case 101,184:           COLOR = "{3333FF}";
  812.         case 89,171:            COLOR = "{660000}";
  813.         case 111,112:           COLOR = "{009900}";
  814.         case 113, 114:          COLOR = "{33CCFF}";
  815.         case 175,179:           COLOR = "{000066}";
  816.         case 122,123:           COLOR = "{99FF99}";
  817.         case 126,125:           COLOR = "{CC66CC}";
  818.         case 133,128:           COLOR = "{006400}";
  819.         case 134,144:           COLOR = "{FFFF33}";
  820.         case 153,148:           COLOR = "{FF99FF}";
  821.         case 157,156:           COLOR = "{333333}";
  822.         case 162,163:           COLOR = "{999999}";
  823.     }
  824.     return COLOR;
  825. }
  826. public OnGameModeExit()
  827. {
  828.     SendClientMessageToAll(Vermelho,"[ANUNCIO] Atenção Todos: o servidor foi fechado, esperem ele reabrir.");
  829. }
  830. forward Contagem_(playerid);
  831.  
  832. new dTimer[MAX_PLAYERS];
  833. public Contagem_(playerid)
  834. {
  835.     if(!IsPlayerInCheckpoint(playerid))
  836.     {
  837.         dTimer[playerid] = 0;
  838.         GangZoneStopFlashForAll(checkpoli[playerid]);
  839.         checkId[playerid] = 0;
  840.         return false;
  841.     }
  842.     if(dTimer[playerid] == 15)
  843.     {
  844.         GameTextForPlayer(playerid, "Dominado", 3000, 0);
  845.         format(string, sizeof(string),"%s acabou de dominar a GangZone %s",GetNick(playerid),GetPlayerCheckpointName(playerid));
  846.         SendClientMessageToAll(0xFFFF00, string);
  847.         GivePlayerMoney(playerid, 1000);
  848.         dTimer[playerid] = 0;
  849.         GangZoneStopFlashForAll(checkpoli[playerid]);
  850.         GangZoneShowForAll(checkpoli[playerid],GetPlayerColor(playerid));
  851.         return false;
  852.     }
  853.     SetTimerEx("Contagem_", 1000, false, "d", playerid);
  854.     format(string, sizeof(string),"Aguarde...~n~Dominando: %i/15", dTimer[playerid]);
  855.     GameTextForPlayer(playerid, string, 2500, 4);
  856.     return dTimer[playerid]++;
  857. }
  858. stock GetPlayerCheckpointName(p)
  859. {
  860.     static _p[30];
  861.     if(checkId[p] == c_Flamengo) _p = "Flamengo";
  862.     if(checkId[p] == c_Vitoria)  _p = "Vitória";
  863.     if(checkId[p] == c_Vasco)    _p = "Vasco";
  864.     if(checkId[p] == c_Cruzeiro) _p = "Cruzeiro";
  865.     if(checkId[p] == c_Saopaulo) _p = "São paulo";
  866.     if(checkId[p] == c_Santos)   _p = "Santos";
  867.     if(checkId[p] == c_Palmeras) _p = "Palmeiras";
  868.     if(checkId[p] == c_Fluminen) _p = "Fluminense";
  869.     if(checkId[p] == c_Corintia) _p = "Corinthias";
  870.     if(checkId[p] == c_Ceara)    _p = "Ceará";
  871.     if(checkId[p] == c_Garaiano) _p = "Guarani";
  872.     if(checkId[p] == c_Gremio)   _p = "Gremio";
  873.     if(checkId[p] == c_Goias)    _p = "Goiás";
  874.     if(checkId[p] == c_Colorado) _p = "Internacional";
  875.     if(checkId[p] == c_Botafogo) _p = "Botafogo";
  876.     if(checkId[p] == c_Barueri)  _p = "Barueri";
  877.     if(checkId[p] == c_avai)     _p = "Avai";
  878.     if(checkId[p] == c_AtletiPR) _p = "AtléticoPR";
  879.     if(checkId[p] == c_AtletiMG) _p = "AtléticoMG";
  880.     if(checkId[p] == c_AtleticoGO)_p = "AtléticoGO";
  881.     return _p;
  882. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement