Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // [iPs]SuYaNw
- #include a_samp
- #include Dini
- #include gl_common
- #include Checkpoint
- //================================[ IMPORTANTE ! ]========================================
- #define Nome_Sever "hostname [iPs]Team Torcidas GM ++" // Nome do vosso servidor
- //================================[ Times ]===============================================
- #define AtleticoGO 0 // ID AtleticoGO
- #define AtleticoMG 1 // ID AtleticoMG
- #define AtleticoPR 2 // ID AtleticoPR
- #define Avai 3 // ID AtleticoAvai
- #define Botafogo 4 // ID BotaFogo
- #define Ceara 5 // ID Ceará
- #define Corinthians 6 // ID Corhinthias
- #define Cruzeiro 7 // ID Cruzeiro
- #define Flamengo 8 // ID Flamengo
- #define Fluminense 9 // ID Fluminense
- #define Goias 10 // ID Goioas
- #define Gremio 11 // ID Barueri
- #define Barueri 12 // ID Guarani
- #define Guarani 13 // ID Internacional
- #define Internacional 14 // ID Palmeiras
- #define Palmeiras 15 // ID Santos
- #define Santos 16 // ID SaoPayk
- #define SaoPaulo 17 // ID Atletico
- #define Vasco 18 // ID Atletico
- #define Vitoria 19 // ID Atletico
- //====================================[ Cores ]======================================
- #define Amarelo 0xFFFF00AA
- #define Vermelho 0xFF0000AA
- #define Verde 0x80FF80AA
- #define Azul 0x33CCFFAA
- #define Cinza 0xC0C0C0AA
- //====================================[ DIALOGS ]==========================================
- #define DIALOG_REGRAS 50 // Dialog Regras
- #define DIALOG_MUDAR_TIME 51 // Dialog Mudar Time
- #define DIALOG_SPAWNED_PLAYER 52 // Dialog Spawned Player
- #define DIALOG_SPAWNED_KICK 54 // Dialog Spawned Kick
- #define DIALOG_AJUDA 55 // Dialog Ajuda
- #define DIALOG_OBJETIVO 56 // Dialog Objetivo
- #define DIALOG_COMANDOS 57 // Dialog Comandos
- #define or || // Ajudante PHP
- #define Version "2.0" // versão deste GameMode
- //======================================[ Config ]=========================================
- #if defined ret_memcpy
- #pragma unused ret_memcpy
- #endif
- //======================================[ Main ]===========================================
- #define AddClass(%0,%1,%2,%3) AddPlayerClass((%0), (%1), (%2), (%3), 0.0, 0, 0, 0, 0, 0, 0)
- forward
- KickShau(playerid);
- LoadGM();
- new
- checkId[MAX_PLAYERS] = 0xFFFFFF,
- checkpoli[MAX_PLAYERS] = 0xFFFFFF,
- Dominando[MAX_PLAYERS] = 0xFFFFFF,
- DerbyBloodringBanger[12] = 0xFFFFFF,
- Team[MAX_PLAYERS] = 0xFFFFFF,
- string[200] = 0xFFFFFF,
- g_AtleticoGO = 0xFFFFFF,
- g_Flamengo = 0xFFFFFF,
- g_Vitoria = 0xFFFFFF,
- g_Vasco = 0xFFFFFF,
- g_Cruzeiro = 0xFFFFFF,
- g_Saopaulo = 0xFFFFFF,
- g_Santos = 0xFFFFFF,
- g_Palmeras = 0xFFFFFF,
- g_Fluminen = 0xFFFFFF,
- g_Corintia = 0xFFFFFF,
- g_Ceara = 0xFFFFFF,
- g_Garaiano = 0xFFFFFF,
- g_Gremio = 0xFFFFFF,
- g_Goias = 0xFFFFFF,
- g_Colorado = 0xFFFFFF,
- g_Botafogo = 0xFFFFFF,
- g_Barueri = 0xFFFFFF,
- g_avai = 0xFFFFFF,
- g_AtletiGO = 0xFFFFFF,
- g_AtletiPR = 0xFFFFFF,
- g_AtletiMG = 0xFFFFFF,
- c_AtleticoGO = 0xFFFFFF,
- c_Flamengo = 0xFFFFFF,
- c_Vitoria = 0xFFFFFF,
- c_Vasco = 0xFFFFFF,
- c_Cruzeiro = 0xFFFFFF,
- c_Saopaulo = 0xFFFFFF,
- c_Santos = 0xFFFFFF,
- c_Palmeras = 0xFFFFFF,
- c_Fluminen = 0xFFFFFF,
- c_Corintia = 0xFFFFFF,
- c_Ceara = 0xFFFFFF,
- c_Garaiano = 0xFFFFFF,
- c_Gremio = 0xFFFFFF,
- c_Goias = 0xFFFFFF,
- c_Colorado = 0xFFFFFF,
- c_Botafogo = 0xFFFFFF,
- c_Barueri = 0xFFFFFF,
- c_avai = 0xFFFFFF,
- c_AtletiPR = 0xFFFFFF,
- c_AtletiMG = 0xFFFFFF
- ;
- main()
- {
- // LoadGM();
- }
- public OnPlayerConnect(playerid)
- {
- GetPlayerIp(playerid, string, 16);
- format(string, sizeof(string), "{09FF1A}[INFO]:{FFFFFF} %s(ID:%i) Entrou no servidor! IP:(%s)", GetNick(playerid), playerid, string);
- SendClientMessageToAll(0xFFFFFFFF, string);
- SetPlayerColor(playerid, -1);
- format(string, sizeof(string),"./Usuarios/%s.REG", GetNick(playerid));
- if(dini_Isset(string,GetNick(playerid)))
- SetPlayerScore(playerid, dini_Int(string, GetNick(playerid)));
- return true;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- switch(reason)
- {
- case 0: format(string, sizeof(string),"|> %s Saiu do servidor ( Resolveu Sair ).",GetNick(playerid));
- case 1: format(string, sizeof(string),"|> %s Saiu do servidor ( Levou um Crash ).", GetNick(playerid));
- case 2: format(string, sizeof(string),"|> %s Saiu do servidor ( Kickado Banido, Leia as regras).", GetNick(playerid));
- }
- SendClientMessageToAll(Cinza, string);
- format(string, sizeof(string),"Usuarios/%s.REG", GetNick(playerid));
- dini_IntSet(string,"Score",GetPlayerScore(playerid));
- return ;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(!strcmp(cmdtext,"/Ajuda", true))
- {
- new istring[505]="#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#\n";
- strcat(istring, "#-> Digite: \"/Objetivo\" Para poder saber o objetivo deste servidor.\n",strlen(istring));
- strins(istring, "#-> Digite: \"/Comandos\" Para Saber os comandos disponíveis no servidor.\n",strlen(istring));
- strins(istring, "#-> Digite: \"/Admins\" Para saber os adminstradores Online.\n",strlen(istring));
- strins(istring, "#-> Digite: \"/Creditos\" Para saber os créditos deste GameMode.\n",strlen(istring));
- strins(istring, "#-> Digite: \"/Regras\" Para não ser punido injustamente por um adminstrador.\n",strlen(istring));
- strins(istring, "#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#",strlen(istring));
- ShowPlayerDialog(playerid, DIALOG_AJUDA, DIALOG_STYLE_MSGBOX,"~ AJUDA ~", istring, "Oky","Fechar");
- return true;
- }
- if(!strcmp(cmdtext,"/Objetivo", true))
- {
- new istring[400] =
- "Objetivo deste Gamemode é simplismente matar seu time rival, isto é matar e ainda Dominar,\n\
- Importante ! você deverá seguir as regras ou será punido,\n\
- Além de matar seu time rival deverá dominar a base do time,\n\
- Proteger a base do seu time e também não matar seus companheiros,\n\
- Caso morre você irá para o céu, más você irá para o céu somente se protejer sua base.";
- ShowPlayerDialog(playerid, DIALOG_OBJETIVO, DIALOG_STYLE_MSGBOX," ~ Objetivo ~", istring, "Ok","Fechar");
- printf("comands tem %d", strlen(istring));
- return true;
- }
- if(!strcmp(cmdtext,"/Comandos", true))
- {
- new istring[220] =
- "#-> \"/Duelos\" ==> Para saber as arenas de duelos disponíveis,\n\
- #-> \"/Kits\" ==> Para conseguir armas no servidor,\n\
- #-> \"/Agradecimentos\" ==> Para saber quem ajudou neste servidor,\n\
- #-> \"/MudarTime\" ==> Você muda seu time.";
- ShowPlayerDialog(playerid, DIALOG_COMANDOS, DIALOG_STYLE_MSGBOX,"~ Comandos ~",istring,"Ok","Fechar");
- printf("comands tem %d", strlen(istring));
- return true;
- }
- if(!strcmp(cmdtext,"/mudar", true))
- {
- ForceClassSelection(playerid);
- SetPlayerHealth(playerid,0);
- return true;
- }
- if(!strcmp(cmdtext, "/dominar", true))
- {
- format(string, sizeof(string),"[INFO]: O %s %s[ID:%i] está dominando a gang zone do %s!!!", GetTeamName(playerid), GetNick(playerid), playerid, GetPlayerCheckpointName(playerid));
- SendClientMessageToAll(Verde, string);
- GangZoneFlashForAll(checkpoli[playerid], GetPlayerColor(playerid));
- Contagem_(playerid);
- for(new i; i < MAX_PLAYERS; ++i)
- {
- if(IsPlayerConnected(i))
- {
- if(Team[i] == Dominando[playerid])
- {
- GameTextForPlayer(i,"Estao dominando sua gangzone!!!", 2500, 3);
- }
- }
- }
- return 1;
- }
- if(!strcmp(cmdtext, "/creditos", true))
- {
- 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","");
- return 1;
- }
- format(string, sizeof(string),"[ERRO]: O Comando \"%s\" que você digitou é desconhecido",cmdtext);
- return SendClientMessage(playerid, Vermelho, string);
- }
- public OnPlayerSpawn(playerid)
- {
- switch(GetPlayerSkin(playerid))
- {
- case 2,12,18,19,55: Team[playerid] = Flamengo,SetPlayerColor(playerid,0xFF000096);
- case 23,24: Team[playerid] = AtleticoGO,SetPlayerColor(playerid,0x00000096);
- case 41,44: Team[playerid] = AtleticoMG,SetPlayerColor(playerid,0xC0C0C096);
- case 50,51: Team[playerid] = AtleticoPR,SetPlayerColor(playerid,0xFFFFF96);
- case 45,92: Team[playerid] = Avai,SetPlayerColor(playerid,0x3366FF96);
- case 93,94: Team[playerid] = Botafogo,SetPlayerColor(playerid,0x3333FF96);
- case 99,98: Team[playerid] = Ceara,SetPlayerColor(playerid,0xFFFFCC96);
- case 106,109: Team[playerid] = Corinthians,SetPlayerColor(playerid,0xEE82EE96);
- case 101,184: Team[playerid] = Cruzeiro,SetPlayerColor(playerid,0x3333FF96);
- case 89,171: Team[playerid] = Fluminense,SetPlayerColor(playerid,0x66000096);
- case 111,112: Team[playerid] = Goias,SetPlayerColor(playerid,0x00990096);
- case 113, 114: Team[playerid] = Gremio,SetPlayerColor(playerid,0x33CCFF96);
- case 175,179: Team[playerid] = Barueri,SetPlayerColor(playerid,0x00006696);
- case 122,123: Team[playerid] = Guarani,SetPlayerColor(playerid,0x99FF9996);
- case 126,125: Team[playerid] = Internacional,SetPlayerColor(playerid,0xCC66CC96);
- case 133,128: Team[playerid] = Palmeiras,SetPlayerColor(playerid,0x00640096);
- case 134,144: Team[playerid] = Santos,SetPlayerColor(playerid,0xFFFF3396);
- case 153,148: Team[playerid] = SaoPaulo,SetPlayerColor(playerid,0xFF99FF96);
- case 157,156: Team[playerid] = Vasco,SetPlayerColor(playerid,0x33333396);
- case 162,163: Team[playerid] = Vitoria,SetPlayerColor(playerid,0x99999996);
- }
- GangZoneShowForPlayer(playerid, g_Cruzeiro, 0x3333FF96);
- GangZoneShowForPlayer(playerid, g_Vasco, 0x33333396);
- GangZoneShowForPlayer(playerid, g_Vitoria, 0x99999996);
- GangZoneShowForPlayer(playerid, g_Saopaulo, 0xFF99FF96);
- GangZoneShowForPlayer(playerid, g_Santos, 0xFFFF3396);
- GangZoneShowForPlayer(playerid, g_Palmeras, 0x00640096);
- GangZoneShowForPlayer(playerid, g_Fluminen, 0x66000096);
- GangZoneShowForPlayer(playerid, g_Corintia, 0xEE82EE96);
- GangZoneShowForPlayer(playerid, g_Ceara, 0xFFFFCC96);
- GangZoneShowForPlayer(playerid, g_Garaiano, 0x99FF9996);
- GangZoneShowForPlayer(playerid, g_Gremio, 0x33CCFF96);
- GangZoneShowForPlayer(playerid, g_Goias, 0x00990096);
- GangZoneShowForPlayer(playerid, g_Colorado, 0xCC66CC96);
- GangZoneShowForPlayer(playerid, g_Botafogo, 0x3333FF96);
- GangZoneShowForPlayer(playerid, g_Barueri, 0x00006696);
- GangZoneShowForPlayer(playerid, g_avai, 0x3366FF96);
- GangZoneShowForPlayer(playerid, g_AtletiGO, 0x00000096);
- GangZoneShowForPlayer(playerid, g_AtletiPR, 0xFFFFFF96);
- GangZoneShowForPlayer(playerid, g_AtletiMG, 0xC0C0C096);
- SetPlayerInterior(playerid, 0);
- format(string, sizeof(string),"[INFO]: Atenção %s's, entrou mais um membro para sua equipe!", GetTeamName(playerid));
- for(new i; i < MAX_PLAYERS; ++i)
- {
- if(IsPlayerConnected(i) && Team[i] == Team[playerid])
- {
- SendClientMessage(i, Amarelo, string);
- }
- }
- GivePlayerWeapon ( playerid , 26 , 9999 ) ;
- GivePlayerWeapon ( playerid , 31 ,9999 ) ;
- GivePlayerWeapon ( playerid , 24 ,9999 ) ;
- GivePlayerWeapon ( playerid , 32 ,9999 ) ;
- GangZoneShowForPlayer(playerid, g_Flamengo, -16777017);
- GangZoneShowForPlayer(playerid, g_AtleticoGO, 199);
- return true;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DIALOG_REGRAS)
- {
- if(response)
- {
- printf("%s aceitou as regras.", GetNick(playerid));
- format(string, sizeof(string),"Você (%s) Aceitou as regras.", GetNick(playerid));
- SendClientMessage(playerid, Verde,string);
- }
- else
- {
- format(string, sizeof(string), "|<%s>| Foi kickado do servidor porque não aceitou as regras.", GetNick(playerid));
- SendClientMessageToAll(0xFF4F22FF, string);
- // Kick(playerid);
- }
- }
- else if(dialogid == DIALOG_MUDAR_TIME)
- {
- if(response)
- {
- if(listitem)
- {
- SetPlayerTeam(playerid, AtleticoGO);
- OnPlayerSpawn(playerid);
- }
- else if(listitem == 1)
- {
- SetPlayerTeam(playerid, AtleticoMG);
- OnPlayerSpawn(playerid);
- }
- else if(listitem == 2)
- {
- SetPlayerTeam(playerid, Avai);
- OnPlayerSpawn(playerid);
- }
- else if(listitem == 3)
- {
- SetPlayerTeam(playerid, Botafogo);
- OnPlayerSpawn(playerid);
- }
- else if(listitem == 4)
- {
- SetPlayerTeam(playerid, Ceara);
- OnPlayerSpawn(playerid);
- }
- else if(listitem == 5)
- {
- SetPlayerTeam(playerid, Corinthians);
- OnPlayerSpawn(playerid);
- }
- else if(listitem == 6)
- {
- SetPlayerTeam(playerid, Cruzeiro);
- OnPlayerSpawn(playerid);
- }
- else if(listitem == 7)
- {
- SetPlayerTeam(playerid, Flamengo);
- OnPlayerSpawn(playerid);
- }
- else if(listitem == 8)
- {
- SetPlayerTeam(playerid, Fluminense);
- OnPlayerSpawn(playerid);
- }
- else if(listitem == 9)
- {
- SetPlayerTeam(playerid, Goias);
- OnPlayerSpawn(playerid);
- }
- else if(listitem == 10)
- {
- SetPlayerTeam(playerid, Gremio);
- OnPlayerSpawn(playerid);
- }
- else if(listitem == 11)
- {
- SetPlayerTeam(playerid, Barueri);
- OnPlayerSpawn(playerid);
- }
- else if(listitem == 12)
- {
- SetPlayerTeam(playerid, Guarani);
- OnPlayerSpawn(playerid);
- }
- else if(listitem == 13)
- {
- SetPlayerTeam(playerid, Internacional);
- OnPlayerSpawn(playerid);
- }
- else if(listitem == 14)
- {
- SetPlayerTeam(playerid, Palmeiras);
- OnPlayerSpawn(playerid);
- }
- else if(listitem == 15)
- {
- SetPlayerTeam(playerid, Santos);
- OnPlayerSpawn(playerid);
- }
- else if(listitem == 16)
- {
- SetPlayerTeam(playerid, SaoPaulo);
- OnPlayerSpawn(playerid);
- }
- else if(listitem == 17)
- {
- SetPlayerTeam(playerid, Vasco);
- OnPlayerSpawn(playerid);
- }
- else if(listitem == 18)
- {
- SetPlayerTeam(playerid, Vitoria);
- OnPlayerSpawn(playerid);
- }
- SetPlayerHealth(playerid, 0);
- }
- }
- else if(dialogid == DIALOG_SPAWNED_PLAYER)
- {
- 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);
- }
- return 1;
- }
- public OnGameModeInit()
- {
- // - Para Andar igual MACHO-
- UsePlayerPedAnims();
- // - Cores Players-
- ShowPlayerMarkers(true);
- // - GameModeText
- SendRconCommand("gamemodetext Base Torcidas");
- // -Nome Sever -
- SendRconCommand(Nome_Sever);
- // g_AtleticoGO = GangZoneCreate(1555.316894, 2134.959472, 1739.316894, 2294.959472);
- g_Flamengo = GangZoneCreate(1251.133178, 2043.975341, 1507.133178, 2275.975341);
- g_Cruzeiro = GangZoneCreate(1809.035522, 1268.140502, 2049.035644, 1460.140502);
- g_Vitoria = GangZoneCreate(2388.883544, 1456.561523, 2628.883544, 1632.561523);
- g_Vasco = GangZoneCreate(2310.975097, 2121.801757, 2542.975097, 2249.801757);
- g_Saopaulo = GangZoneCreate(1552.819702, 1692.753051, 1648.819702, 1876.753051);
- g_Santos = GangZoneCreate(2722.436523, 1215.569091, 2882.436523, 1407.569091);
- g_Palmeras = GangZoneCreate(2744.392822, 814.548522, 2912.392822, 1054.548583);
- g_Fluminen = GangZoneCreate(1479.078002, 1865.117797, 1735.078002, 2017.117797);
- g_Corintia = GangZoneCreate(2075.088134, 2584.966064, 2251.088134, 2864.966064);
- g_Ceara = GangZoneCreate(2496.531982, 1596.388916, 2696.531982, 1956.388916);
- g_Garaiano = GangZoneCreate(1070.873535, 2696.901123, 1550.873535, 2888.901123);
- g_Gremio = GangZoneCreate(2052.612060, 971.865600, 2364.612060, 1211.865600);
- g_Goias = GangZoneCreate(2549.355712, 1046.683227, 2685.355712, 1166.683227);
- g_Colorado = GangZoneCreate(1790.774780, 613.272949, 2022.774780, 805.272949);
- g_Botafogo = GangZoneCreate(2147.500244, 1868.889770, 2347.500244, 2036.889770);
- g_Barueri = GangZoneCreate(1558.803955, 848.317016, 1798.803955, 1136.317016);
- g_avai = GangZoneCreate(2065.472412, 1523.001708, 2329.472412, 1787.001708);
- g_AtletiGO = GangZoneCreate(1920.081787, 1977.764526, 2128.081787, 2161.764648);
- g_AtletiPR = GangZoneCreate(1804.203247, 2260.218505, 2044.203247, 2508.218505);
- g_AtletiMG = GangZoneCreate(1555.316894, 2134.959472, 1739.316894, 2294.959472);
- c_Flamengo = LCS_CreateCheckpoint(1485.0447,2148.7178,11.0234, 5.0);
- c_AtleticoGO = LCS_CreateCheckpoint(1949.7528,2143.3650,10.8203, 5.0);
- c_Cruzeiro = LCS_CreateCheckpoint(1956.9344,1343.0154,15.3746, 5.0);
- c_Vitoria = LCS_CreateCheckpoint(2564.8833,1577.4252,10.8203, 5.0);
- c_Vasco = LCS_CreateCheckpoint(2397.1313,2160.4221,10.8203, 5.0);
- c_Saopaulo = LCS_CreateCheckpoint(1590.4349,1818.3350,10.8203, 5.0);
- c_Santos = LCS_CreateCheckpoint(2840.1589,1310.1471,11.3906, 5.0);
- c_Palmeras = LCS_CreateCheckpoint(2641.7954,1123.6404,10.8203, 5.0);
- c_Fluminen = LCS_CreateCheckpoint(1628.8259,1945.1990,11.0234, 5.0);
- c_Corintia = LCS_CreateCheckpoint(2151.7209,2817.8379,10.8203, 5.0);
- c_Ceara = LCS_CreateCheckpoint(2631.0056,1897.1057,10.8203, 5.0);
- c_Garaiano = LCS_CreateCheckpoint(1486.8546,2774.3005,10.8203, 5.0);
- c_Gremio = LCS_CreateCheckpoint(2180.1489,1116.6871,12.6484, 5.0);
- c_Goias = LCS_CreateCheckpoint(2854.8855,896.4736,10.1788, 5.0);
- c_Colorado = LCS_CreateCheckpoint(1919.3624,672.0930,10.8203, 5.0);
- c_Botafogo = LCS_CreateCheckpoint(2195.1172,1668.2789,12.3672, 5.0);
- c_Barueri = LCS_CreateCheckpoint(1661.5531,1055.6764,11.1930, 5.0);
- c_avai = LCS_CreateCheckpoint(2191.7944,1968.5856,10.8203, 5.0);
- c_AtletiPR = LCS_CreateCheckpoint(1969.8562,2473.4878,11.1782, 5.0);
- c_AtletiMG = LCS_CreateCheckpoint(1609.7830,2232.2947,10.8203, 5.0);
- // -Derby-
- DerbyBloodringBanger[0] = AddStaticVehicle(504,-1355.5416,936.6710,1036.1837,11.4329,1,1); LinkVehicleToInterior(DerbyBloodringBanger[0],15);
- DerbyBloodringBanger[1] = AddStaticVehicle(504,-1350.6061,937.5493,1036.1947,12.4710,1,1); LinkVehicleToInterior(DerbyBloodringBanger[1],15); // BloodringBanger
- DerbyBloodringBanger[2] = AddStaticVehicle(504,-1345.6512,938.5836,1036.2046,13.2675,1,1); LinkVehicleToInterior(DerbyBloodringBanger[2],15); // BloodringBanger
- DerbyBloodringBanger[3] = AddStaticVehicle(504,-1340.6078,939.9857,1036.2150,17.2391,1,1); LinkVehicleToInterior(DerbyBloodringBanger[3],15); // BloodringBanger
- DerbyBloodringBanger[4] = AddStaticVehicle(504,-1336.7312,941.1116,1036.2316,17.4418,1,1); LinkVehicleToInterior(DerbyBloodringBanger[4],15); // BloodringBanger
- DerbyBloodringBanger[5] = AddStaticVehicle(504,-1331.5814,942.9241,1036.2539,20.6521,1,1); LinkVehicleToInterior(DerbyBloodringBanger[5],15);
- DerbyBloodringBanger[6] = AddStaticVehicle(504,-1487.5134,954.9534,1036.7303,325.7171,1,1); LinkVehicleToInterior(DerbyBloodringBanger[6],15); //BloodringBanger
- DerbyBloodringBanger[7] = AddStaticVehicle(504,-1491.5236,958.0043,1036.7849,318.9600,1,1); LinkVehicleToInterior(DerbyBloodringBanger[7],15);//BloodringBanger
- DerbyBloodringBanger[8] = AddStaticVehicle(504,-1495.4299,961.5493,1036.8516,316.2965,1,1); LinkVehicleToInterior(DerbyBloodringBanger[8],15);//BloodringBanger
- DerbyBloodringBanger[9] = AddStaticVehicle(504,-1499.6245,965.7825,1036.9264,313.8272,1,1); LinkVehicleToInterior(DerbyBloodringBanger[9],15);//BloodringBanger
- DerbyBloodringBanger[10] = AddStaticVehicle(504,-1503.4319,969.8809,1037.0063,308.4377,1,1); LinkVehicleToInterior(DerbyBloodringBanger[10],15);//BloodringBanger
- DerbyBloodringBanger[11] = AddStaticVehicle(504,-1506.2706,974.4487,1037.0886,304.1562,1,1); LinkVehicleToInterior(DerbyBloodringBanger[11],15);//BloodringBanger
- //==========================[ Classes ]============================================
- AddClass(2, 1485.0238,2110.6267,11.0234); // Flamenguistas
- AddClass(12, 1485.0238,2110.6267,11.0234); // Flamenguistas
- AddClass(18, 1485.0238,2110.6267,11.0234); // Flamenguistas
- AddClass(19, 1485.0238,2110.6267,11.0234); // Flamenguistas
- AddClass(55, 1485.0238,2110.6267,11.0234); // Flamenguistas
- AddClass(23, 1936.8875,2143.2437,10.8203); // AtléticoGO
- AddClass(25, 1936.8875,2143.2437,10.8203); // AtléticoGO
- AddClass(41, 1601.6687,2219.1516,11.0625); // AtleticoMG
- AddClass(44, 1601.6687,2219.1516,11.0625); // AtleticoMG
- AddClass(50, 1966.9290,2446.9578,11.1782); // AtleticoPR
- AddClass(51, 1966.9290,2446.9578,11.1782); // AtleticoPR
- AddClass(45, 2170.2358,1971.5815,10.8203); // Avai
- AddClass(92, 2170.2358,1971.5815,10.8203); // Avai
- AddClass(93, 2179.0535,1677.9661,11.0469); // Botafogo
- AddClass(94, 2179.0535,1677.9661,11.0469); // Botafogo
- AddClass(99, 2624.1013,1824.3339,11.0234); // Ceara
- AddClass(98, 2624.1013,1824.3339,11.0234); // Ceara
- AddClass(106, 2144.2249,2834.6289,10.8203); // Corinthians
- AddClass(109, 2144.2249,2834.6289,10.8203); // Corinthians
- AddClass(101, 2029.6152,1342.7455,10.8203); // Cruzeiro
- AddClass(184, 2029.6152,1342.7455,10.8203); // Cruzeiro
- AddClass(89, 1612.1167,1976.7167,10.8203); // Fluminense
- AddClass(171, 1612.1167,1976.7167,10.8203); // Fluminense
- AddClass(111, 2813.4482,891.7308,10.7578); // Goias
- AddClass(112, 2813.4482,891.7308,10.7578); // Goias
- AddClass(113, 2142.8750,1135.4270,13.5045); // Gremio
- AddClass(114, 2142.8750,1135.4270,13.5045); // Gremio
- AddClass(175, 1635.3081,1038.5396,10.8203); // Barueri
- AddClass(179, 1635.3081,1038.5396,10.8203); // Barueri
- AddClass(122, 1458.9167,2773.2495,10.8203); // Guarani
- AddClass(123, 1458.9167,2773.2495,10.8203); // Guarani
- AddClass(126, 1897.1155,728.6604,10.8203); // Internacional
- AddClass(125, 1897.1155,728.6604,10.8203); // Internacional
- AddClass(133, 2638.4526,1065.3898,10.8203); // Palmeiras
- AddClass(128, 2638.4526,1065.3898,10.8203); // Palmeiras
- AddClass(134, 2820.4114,1274.7181,10.9609); // Santos
- AddClass(144, 2820.4114,1274.7181,10.9609); // Santos
- AddClass(153, 1606.7523,1818.2369,10.8203); // SaoPaulo
- AddClass(148, 1606.7523,1818.2369,10.8203); // SaoPaulo
- AddClass(157, 2369.0251,2164.1074,10.8280); // Vasco
- AddClass(156, 2369.0251,2164.1074,10.8280); // Vasco
- AddClass(162, 2560.6370,1561.8170,10.8203); // Vitoria
- AddClass(163, 2560.6370,1561.8170,10.8203); // Vitoria
- AddStaticVehicle(451,2040.0520,1319.2799,10.3779,183.2439,16,16);
- AddStaticVehicle(429,2040.5247,1359.2783,10.3516,177.1306,13,13);
- AddStaticVehicle(421,2110.4102,1398.3672,10.7552,359.5964,13,13);
- AddStaticVehicle(411,2074.9624,1479.2120,10.3990,359.6861,64,64);
- AddStaticVehicle(477,2075.6038,1666.9750,10.4252,359.7507,94,94);
- AddStaticVehicle(541,2119.5845,1938.5969,10.2967,181.9064,22,22);
- AddStaticVehicle(541,1843.7881,1216.0122,10.4556,270.8793,60,1);
- AddStaticVehicle(402,1944.1003,1344.7717,8.9411,0.8168,30,30);
- AddStaticVehicle(402,1679.2278,1316.6287,10.6520,180.4150,90,90);
- AddStaticVehicle(415,1685.4872,1751.9667,10.5990,268.1183,25,1);
- AddStaticVehicle(411,2034.5016,1912.5874,11.9048,0.2909,123,1);
- AddStaticVehicle(411,2172.1682,1988.8643,10.5474,89.9151,116,1);
- AddStaticVehicle(429,2245.5759,2042.4166,10.5000,270.7350,14,14);
- AddStaticVehicle(477,2361.1538,1993.9761,10.4260,178.3929,101,1);
- AddStaticVehicle(550,2221.9946,1998.7787,9.6815,92.6188,53,53);
- AddStaticVehicle(558,2243.3833,1952.4221,14.9761,359.4796,116,1);
- AddStaticVehicle(587,2276.7085,1938.7263,31.5046,359.2321,40,1);
- AddStaticVehicle(587,2602.7769,1853.0667,10.5468,91.4813,43,1);
- AddStaticVehicle(603,2610.7600,1694.2588,10.6585,89.3303,69,1);
- AddStaticVehicle(587,2635.2419,1075.7726,10.5472,89.9571,53,1);
- AddStaticVehicle(437,2577.2354,1038.8063,10.4777,181.7069,35,1);
- AddStaticVehicle(535,2039.1257,1545.0879,10.3481,359.6690,123,1);
- AddStaticVehicle(535,2009.8782,2411.7524,10.5828,178.9618,66,1);
- AddStaticVehicle(429,2010.0841,2489.5510,10.5003,268.7720,1,2);
- AddStaticVehicle(415,2076.4033,2468.7947,10.5923,359.9186,36,1);
- AddStaticVehicle(487,2093.2754,2414.9421,74.7556,89.0247,26,57);
- AddStaticVehicle(506,2352.9026,2577.9768,10.5201,0.4091,7,7);
- AddStaticVehicle(506,2166.6963,2741.0413,10.5245,89.7816,52,52);
- AddStaticVehicle(411,1960.9989,2754.9072,10.5473,200.4316,112,1);
- AddStaticVehicle(429,1919.5863,2760.7595,10.5079,100.0753,2,1);
- AddStaticVehicle(415,1673.8038,2693.8044,10.5912,359.7903,40,1);
- AddStaticVehicle(402,1591.0482,2746.3982,10.6519,172.5125,30,30);
- AddStaticVehicle(603,1580.4537,2838.2886,10.6614,181.4573,75,77);
- AddStaticVehicle(550,1555.2734,2750.5261,10.6388,91.7773,62,62);
- AddStaticVehicle(535,1455.9305,2878.5288,10.5837,181.0987,118,1);
- AddStaticVehicle(477,1537.8425,2578.0525,10.5662,0.0650,121,1);
- AddStaticVehicle(451,1433.1594,2607.3762,10.3781,88.0013,16,16);
- AddStaticVehicle(603,2223.5898,1288.1464,10.5104,182.0297,18,1);
- AddStaticVehicle(558,2451.6707,1207.1179,10.4510,179.8960,24,1);
- AddStaticVehicle(550,2461.7253,1357.9705,10.6389,180.2927,62,62);
- AddStaticVehicle(558,2461.8162,1629.2268,10.4496,181.4625,117,1);
- AddStaticVehicle(477,2395.7554,1658.9591,10.5740,359.7374,0,1);
- AddStaticVehicle(404,1553.3696,1020.2884,10.5532,270.6825,119,50);
- AddStaticVehicle(400,1380.8304,1159.1782,10.9128,355.7117,123,1);
- AddStaticVehicle(418,1383.4630,1035.0420,10.9131,91.2515,117,227);
- AddStaticVehicle(404,1445.4526,974.2831,10.5534,1.6213,109,100);
- AddStaticVehicle(400,1704.2365,940.1490,10.9127,91.9048,113,1);
- AddStaticVehicle(404,1658.5463,1028.5432,10.5533,359.8419,101,101);
- AddStaticVehicle(581,1677.6628,1040.1930,10.4136,178.7038,58,1);
- AddStaticVehicle(581,1383.6959,1042.2114,10.4121,85.7269,66,1);
- AddStaticVehicle(581,1064.2332,1215.4158,10.4157,177.2942,72,1);
- AddStaticVehicle(581,1111.4536,1788.3893,10.4158,92.4627,72,1);
- AddStaticVehicle(522,953.2818,1806.1392,8.2188,235.0706,3,8);
- AddStaticVehicle(522,995.5328,1886.6055,10.5359,90.1048,3,8);
- AddStaticVehicle(521,993.7083,2267.4133,11.0315,1.5610,75,13);
- AddStaticVehicle(535,1439.5662,1999.9822,10.5843,0.4194,66,1);
- AddStaticVehicle(522,1430.2354,1999.0144,10.3896,352.0951,6,25);
- AddStaticVehicle(522,2156.3540,2188.6572,10.2414,22.6504,6,25);
- AddStaticVehicle(598,2277.6846,2477.1096,10.5652,180.1090,0,1);
- AddStaticVehicle(598,2268.9888,2443.1697,10.5662,181.8062,0,1);
- AddStaticVehicle(598,2256.2891,2458.5110,10.5680,358.7335,0,1);
- AddStaticVehicle(598,2251.6921,2477.0205,10.5671,179.5244,0,1);
- AddStaticVehicle(523,2294.7305,2441.2651,10.3860,9.3764,0,0);
- AddStaticVehicle(523,2290.7268,2441.3323,10.3944,16.4594,0,0);
- AddStaticVehicle(523,2295.5503,2455.9656,2.8444,272.6913,0,0);
- AddStaticVehicle(522,2476.7900,2532.2222,21.4416,0.5081,8,82);
- AddStaticVehicle(522,2580.5320,2267.9595,10.3917,271.2372,8,82);
- AddStaticVehicle(522,2814.4331,2364.6641,10.3907,89.6752,36,105);
- AddStaticVehicle(535,2827.4143,2345.6953,10.5768,270.0668,97,1);
- AddStaticVehicle(521,1670.1089,1297.8322,10.3864,359.4936,87,118);
- AddStaticVehicle(487,1614.7153,1548.7513,11.2749,347.1516,58,8);
- AddStaticVehicle(487,1647.7902,1538.9934,11.2433,51.8071,0,8);
- AddStaticVehicle(487,1608.3851,1630.7268,11.2840,174.5517,58,8);
- AddStaticVehicle(476,1283.0006,1324.8849,9.5332,275.0468,7,6); //11.5332
- AddStaticVehicle(476,1283.5107,1361.3171,9.5382,271.1684,1,6); //11.5382
- AddStaticVehicle(476,1283.6847,1386.5137,11.5300,272.1003,89,91);
- AddStaticVehicle(476,1288.0499,1403.6605,11.5295,243.5028,119,117);
- AddStaticVehicle(415,1319.1038,1279.1791,10.5931,0.9661,62,1);
- AddStaticVehicle(521,1710.5763,1805.9275,10.3911,176.5028,92,3);
- AddStaticVehicle(521,2805.1650,2027.0028,10.3920,357.5978,92,3);
- AddStaticVehicle(535,2822.3628,2240.3594,10.5812,89.7540,123,1);
- AddStaticVehicle(521,2876.8013,2326.8418,10.3914,267.8946,115,118);
- AddStaticVehicle(429,2842.0554,2637.0105,10.5000,182.2949,1,3);
- AddStaticVehicle(549,2494.4214,2813.9348,10.5172,316.9462,72,39);
- AddStaticVehicle(549,2327.6484,2787.7327,10.5174,179.5639,75,39);
- AddStaticVehicle(549,2142.6970,2806.6758,10.5176,89.8970,79,39);
- AddStaticVehicle(521,2139.7012,2799.2114,10.3917,229.6327,25,118);
- AddStaticVehicle(521,2104.9446,2658.1331,10.3834,82.2700,36,0);
- AddStaticVehicle(521,1914.2322,2148.2590,10.3906,267.7297,36,0);
- AddStaticVehicle(549,1904.7527,2157.4312,10.5175,183.7728,83,36);
- AddStaticVehicle(549,1532.6139,2258.0173,10.5176,359.1516,84,36);
- AddStaticVehicle(521,1534.3204,2202.8970,10.3644,4.9108,118,118);
- AddStaticVehicle(549,1613.1553,2200.2664,10.5176,89.6204,89,35);
- AddStaticVehicle(400,1552.1292,2341.7854,10.9126,274.0815,101,1);
- AddStaticVehicle(404,1637.6285,2329.8774,10.5538,89.6408,101,101);
- AddStaticVehicle(400,1357.4165,2259.7158,10.9126,269.5567,62,1);
- AddStaticVehicle(411,1281.7458,2571.6719,10.5472,270.6128,106,1);
- AddStaticVehicle(522,1305.5295,2528.3076,10.3955,88.7249,3,8);
- AddStaticVehicle(521,993.9020,2159.4194,10.3905,88.8805,74,74);
- AddStaticVehicle(415,1512.7134,787.6931,10.5921,359.5796,75,1);
- AddStaticVehicle(522,2299.5872,1469.7910,10.3815,258.4984,3,8);
- AddStaticVehicle(522,2133.6428,1012.8537,10.3789,87.1290,3,8);
- LoadGM();
- LCS_Load();
- return true;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- static ISTRI[50];
- switch(GetPlayerSkin(playerid))
- {
- case 2,12,18,19,55: ISTRI = "Flamengo";
- case 23,24: ISTRI = "AtleticoGO";
- case 41,44: ISTRI = "AtleticoMG";
- case 50,51: ISTRI = "AtleticoPR";
- case 45,92: ISTRI = "Avai";
- case 93,94: ISTRI = "Botafogo";
- case 99,98: ISTRI = "Ceara";
- case 106,109: ISTRI = "Corinthians";
- case 101,184: ISTRI = "Cruzeiro";
- case 89,171: ISTRI = "Fluminense";
- case 111,112: ISTRI = "Goias";
- case 113, 114: ISTRI = "Gremio";
- case 175,179: ISTRI = "Barueri";
- case 122,123: ISTRI = "Guarani";
- case 126,125: ISTRI = "Internacional";
- case 133,128: ISTRI = "Palmeiras";
- case 134,144: ISTRI = "Santos";
- case 153,148: ISTRI = "SaoPaulo";
- case 157,156: ISTRI = "Vasco";
- case 162,163: ISTRI = "Vitoria";
- }
- format(string,sizeof(string),"~>~%s~<~",ISTRI);
- GameTextForPlayer(playerid,string, 2500, 3);
- SetPlayerInterior(playerid,0);
- SetPlayerPos(playerid,1555.4786,2185.1101,11.1193);
- SetPlayerFacingAngle(playerid, 233.0569);
- SetPlayerCameraPos(playerid,1557.746,2182.884,12.230);
- SetPlayerCameraLookAt(playerid,1555.478,2185.110,11.119);
- return 1;
- }
- public KickShau(playerid)
- {
- CreatePlayerObject(playerid,19138,0,0,0,0,0,0); //Kick(playerid);
- return true;
- }
- public OnPlayerText(playerid, text[])
- {
- if(strlen(text) > 60)
- return SendClientMessage(playerid, Vermelho,"[ERRO]: Seu texto atingiu o limite máximo, resuma!"), false;
- static oString[200];
- format(oString, sizeof(oString),"{C0C0C0}O %s %s %s{FFFFFF}[ID:%i] Diz: %s",GetTeamName(playerid),ProcessColorName(playerid),GetNick(playerid),playerid, text);
- SendClientMessageToAll(-1, oString);
- return false;
- }
- public LCS_OnPlayerEnterCheckpoint(playerid,checkpointid)
- {
- if(checkpointid == c_Flamengo)return checkId[playerid] = c_Flamengo,checkpoli[playerid] = g_Flamengo,Dominando[playerid] = c_Flamengo,OnPlayerCommandText(playerid, "/dominar");
- if(checkpointid == c_Vitoria)return checkId[playerid] = c_Vitoria,checkpoli[playerid] = g_Vitoria,Dominando[playerid] = c_Vitoria,OnPlayerCommandText(playerid, "/dominar");
- if(checkpointid == c_Vasco)return checkId[playerid] = c_Vasco,checkpoli[playerid] = g_Vasco,Dominando[playerid] = c_Vasco,OnPlayerCommandText(playerid, "/dominar");
- if(checkpointid == c_Cruzeiro)return checkId[playerid] = c_Cruzeiro,checkpoli[playerid] = g_Cruzeiro,Dominando[playerid] = c_Cruzeiro,OnPlayerCommandText(playerid, "/dominar");
- if(checkpointid == c_Saopaulo)return checkId[playerid] = c_Saopaulo,checkpoli[playerid] = g_Saopaulo,Dominando[playerid] = c_Saopaulo,OnPlayerCommandText(playerid, "/dominar");
- if(checkpointid == c_Santos)return checkId[playerid] = c_Santos,checkpoli[playerid] = g_Santos,Dominando[playerid] = c_Santos,OnPlayerCommandText(playerid, "/dominar");
- if(checkpointid == c_Palmeras)return checkId[playerid] = c_Palmeras,checkpoli[playerid] = g_Palmeras,Dominando[playerid] = c_Palmeras,OnPlayerCommandText(playerid, "/dominar");
- if(checkpointid == c_Fluminen)return checkId[playerid] = c_Fluminen,checkpoli[playerid] = g_Fluminen,Dominando[playerid] = c_Fluminen,OnPlayerCommandText(playerid, "/dominar");
- if(checkpointid == c_Corintia)return checkId[playerid] = c_Corintia,checkpoli[playerid] = g_Corintia,Dominando[playerid] = c_Corintia,OnPlayerCommandText(playerid, "/dominar");
- if(checkpointid == c_Ceara)return checkId[playerid] = c_Ceara,checkpoli[playerid] = g_Ceara,Dominando[playerid] = c_Ceara,OnPlayerCommandText(playerid, "/dominar");
- if(checkpointid == c_Garaiano)return checkId[playerid] = c_Garaiano,checkpoli[playerid] = g_Garaiano,Dominando[playerid] = c_Garaiano,OnPlayerCommandText(playerid, "/dominar");
- if(checkpointid == c_Gremio)return checkId[playerid] = c_Gremio,checkpoli[playerid] = g_Gremio,Dominando[playerid] = c_Gremio,OnPlayerCommandText(playerid, "/dominar");
- if(checkpointid == c_Goias )return checkId[playerid] = c_Goias,checkpoli[playerid] = g_Goias,Dominando[playerid] = c_Goias,OnPlayerCommandText(playerid, "/dominar");
- if(checkpointid == c_Colorado)return checkId[playerid] = c_Colorado,checkpoli[playerid] = g_Colorado,Dominando[playerid] = c_Colorado,OnPlayerCommandText(playerid, "/dominar");
- if(checkpointid == c_Botafogo)return checkId[playerid] = c_Botafogo,checkpoli[playerid] = g_Botafogo,Dominando[playerid] = c_Botafogo,OnPlayerCommandText(playerid, "/dominar");
- if(checkpointid == c_Barueri)return checkId[playerid] = c_Barueri,checkpoli[playerid] = g_Barueri,Dominando[playerid] = c_Barueri,OnPlayerCommandText(playerid, "/dominar");
- if(checkpointid == c_avai)return checkId[playerid] = c_avai,checkpoli[playerid] = g_avai,Dominando[playerid] = c_avai,OnPlayerCommandText(playerid, "/dominar");
- if(checkpointid == c_AtletiPR)return checkId[playerid] = c_AtletiPR,checkpoli[playerid] = g_AtletiPR,Dominando[playerid] = c_AtletiPR,OnPlayerCommandText(playerid, "/dominar");
- if(checkpointid == c_AtletiMG)return checkId[playerid] = c_AtletiMG,checkpoli[playerid] = g_AtletiMG,Dominando[playerid] = c_AtletiMG,OnPlayerCommandText(playerid, "/dominar");
- if(checkpointid == c_AtleticoGO)return checkId[playerid] = c_AtleticoGO,checkpoli[playerid] = g_AtleticoGO,Dominando[playerid] = c_AtleticoGO,OnPlayerCommandText(playerid, "/dominar");
- return 1;
- }
- public LCS_OnPlayerLeaveCheckpoint(playerid, checkpointid) return 1;
- public LoadGM()
- {
- print("________________________________________________________________________");
- print(".----. _ .---. .----. .--. .--. _ .-. .-.");
- print(": .--':_;: .; : `--. :: .--' : .-':_; : : : :");
- print(": : .-.: _.'.--. : :: : _ .--. .--. : `; .-. .--. : : .-' :");
- print(": :__ : :: : `._-.' __: :: :; :' .; ; : ..': : : :' '_.': :_ ' .; :");
- print(":____::_;:_; `.__.':____:`.__.'`.__,_;:_; :_; :_;`.__.'`.__;`.__.'");
- print("________________________________________________________________________");
- return 1;
- }
- stock GetNick(playerid)
- {
- static Nome[24];
- GetPlayerName(playerid, Nome, 24);
- return Nome;
- }
- stock iGetPlayerTeam(pid)
- {
- static TeamID;
- if(Team[pid] == AtleticoGO) TeamID = Team[pid];
- if(Team[pid] == AtleticoMG) TeamID = Team[pid];
- if(Team[pid] == AtleticoPR) TeamID = Team[pid];
- if(Team[pid] == Avai) TeamID = Team[pid];
- if(Team[pid] == Botafogo) TeamID = Team[pid];
- if(Team[pid] == Ceara) TeamID = Team[pid];
- if(Team[pid] == Corinthians) TeamID = Team[pid];
- if(Team[pid] == Cruzeiro) TeamID = Team[pid];
- if(Team[pid] == Flamengo) TeamID = Team[pid];
- if(Team[pid] == Fluminense) TeamID = Team[pid];
- if(Team[pid] == Goias) TeamID = Team[pid];
- if(Team[pid] == Gremio) TeamID = Team[pid];
- if(Team[pid] == Barueri) TeamID = Team[pid];
- if(Team[pid] == Guarani) TeamID = Team[pid];
- if(Team[pid] == Internacional) TeamID = Team[pid];
- if(Team[pid] == Palmeiras) TeamID = Team[pid];
- if(Team[pid] == Santos) TeamID = Team[pid];
- if(Team[pid] == SaoPaulo) TeamID = Team[pid];
- if(Team[pid] == Vasco) TeamID = Team[pid];
- if(Team[pid] == Vitoria) TeamID = Team[pid];
- return TeamID;
- }
- stock GetTeamName(pid)
- {
- new TeamID[50];
- if(Team[pid] == AtleticoGO) TeamID = "AtléticanoGO";
- if(Team[pid] == AtleticoMG) TeamID = "AtléticanoMG";
- if(Team[pid] == AtleticoPR) TeamID = "AtléticanoPR";
- if(Team[pid] == Avai) TeamID = "Avaiano";
- if(Team[pid] == Botafogo) TeamID = "Botafoguense";
- if(Team[pid] == Ceara) TeamID = "Cearaense";
- if(Team[pid] == Corinthians) TeamID = "Corinthiano";
- if(Team[pid] == Cruzeiro) TeamID = "Cruzeirense";
- if(Team[pid] == Flamengo) TeamID = "Flamenguista";
- if(Team[pid] == Fluminense) TeamID = "Tri/Carioca";
- if(Team[pid] == Goias) TeamID = "Goiano";
- if(Team[pid] == Gremio) TeamID = "Gremista";
- if(Team[pid] == Barueri) TeamID = "Barueriense";
- if(Team[pid] == Guarani) TeamID = "Guaraniano";
- if(Team[pid] == Internacional) TeamID = "Colorado";
- if(Team[pid] == Palmeiras) TeamID = "Palmerense";
- if(Team[pid] == Santos) TeamID = "Santista";
- if(Team[pid] == SaoPaulo) TeamID = "Tri/Paulista";
- if(Team[pid] == Vasco) TeamID = "Vascaino";
- if(Team[pid] == Vitoria) TeamID = "Vitorioso";
- return TeamID;
- }
- stock ProcessColorName(playerid)
- {
- static COLOR[20];
- switch(GetPlayerSkin(playerid))
- {
- case 2,12,18,19,55: COLOR = "{FF0000}";
- case 23,24: COLOR = "{000000}";
- case 41,44: COLOR = "{C0C0C0}";
- case 50,51: COLOR = "{FFFFFF}";
- case 45,92: COLOR = "{3366FF}";
- case 93,94: COLOR = "{3333FF}";
- case 99,98: COLOR = "{FFFFCC}";
- case 106,109: COLOR = "{EE82EE}";
- case 101,184: COLOR = "{3333FF}";
- case 89,171: COLOR = "{660000}";
- case 111,112: COLOR = "{009900}";
- case 113, 114: COLOR = "{33CCFF}";
- case 175,179: COLOR = "{000066}";
- case 122,123: COLOR = "{99FF99}";
- case 126,125: COLOR = "{CC66CC}";
- case 133,128: COLOR = "{006400}";
- case 134,144: COLOR = "{FFFF33}";
- case 153,148: COLOR = "{FF99FF}";
- case 157,156: COLOR = "{333333}";
- case 162,163: COLOR = "{999999}";
- }
- return COLOR;
- }
- public OnGameModeExit()
- {
- SendClientMessageToAll(Vermelho,"[ANUNCIO] Atenção Todos: o servidor foi fechado, esperem ele reabrir.");
- }
- forward Contagem_(playerid);
- new dTimer[MAX_PLAYERS];
- public Contagem_(playerid)
- {
- if(!IsPlayerInCheckpoint(playerid))
- {
- dTimer[playerid] = 0;
- GangZoneStopFlashForAll(checkpoli[playerid]);
- checkId[playerid] = 0;
- return false;
- }
- if(dTimer[playerid] == 15)
- {
- GameTextForPlayer(playerid, "Dominado", 3000, 0);
- format(string, sizeof(string),"%s acabou de dominar a GangZone %s",GetNick(playerid),GetPlayerCheckpointName(playerid));
- SendClientMessageToAll(0xFFFF00, string);
- GivePlayerMoney(playerid, 1000);
- dTimer[playerid] = 0;
- GangZoneStopFlashForAll(checkpoli[playerid]);
- GangZoneShowForAll(checkpoli[playerid],GetPlayerColor(playerid));
- return false;
- }
- SetTimerEx("Contagem_", 1000, false, "d", playerid);
- format(string, sizeof(string),"Aguarde...~n~Dominando: %i/15", dTimer[playerid]);
- GameTextForPlayer(playerid, string, 2500, 4);
- return dTimer[playerid]++;
- }
- stock GetPlayerCheckpointName(p)
- {
- static _p[30];
- if(checkId[p] == c_Flamengo) _p = "Flamengo";
- if(checkId[p] == c_Vitoria) _p = "Vitória";
- if(checkId[p] == c_Vasco) _p = "Vasco";
- if(checkId[p] == c_Cruzeiro) _p = "Cruzeiro";
- if(checkId[p] == c_Saopaulo) _p = "São paulo";
- if(checkId[p] == c_Santos) _p = "Santos";
- if(checkId[p] == c_Palmeras) _p = "Palmeiras";
- if(checkId[p] == c_Fluminen) _p = "Fluminense";
- if(checkId[p] == c_Corintia) _p = "Corinthias";
- if(checkId[p] == c_Ceara) _p = "Ceará";
- if(checkId[p] == c_Garaiano) _p = "Guarani";
- if(checkId[p] == c_Gremio) _p = "Gremio";
- if(checkId[p] == c_Goias) _p = "Goiás";
- if(checkId[p] == c_Colorado) _p = "Internacional";
- if(checkId[p] == c_Botafogo) _p = "Botafogo";
- if(checkId[p] == c_Barueri) _p = "Barueri";
- if(checkId[p] == c_avai) _p = "Avai";
- if(checkId[p] == c_AtletiPR) _p = "AtléticoPR";
- if(checkId[p] == c_AtletiMG) _p = "AtléticoMG";
- if(checkId[p] == c_AtleticoGO)_p = "AtléticoGO";
- return _p;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement