Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <a_players>
- #include <zcmd>
- #include <sscanf>
- #if defined FILTERSCRIPT
- #pragma tabsize 0
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print("System:Ataque By:CoreiiA");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #endif
- //Enums
- enum pInfo
- {pBope,attack,Hacker,Pacotao};
- new CoreiiAInfo[MAX_PLAYERS][pInfo];
- //News
- new coreiaantatack;
- new coreiaatacotimer;
- new coreiausoatack;
- new coreiaatacao;
- new TempoAttackzao;
- new sendername[MAX_PLAYER_NAME];
- new string[256];
- new BKick[MAX_PLAYERS];
- new block;
- public OnGameModeInit()
- {
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- //Defines
- #define COLOR_BLACK 0x000000AA
- #define COR_NEGATIVO 0xFF7777AA
- #define COLOR_BLUE 0x33AAFFFF
- #define COLOR_DBLUE 0x2641FEAA
- #define COLOR_RED 0xFF0000FF
- #define VERMELHO 0xAA3333AA
- #define MAX_SPIKESTRIPS 200
- #define CINZA 0xAFAFAFAA
- #define VERDE 0x33AA33AA
- #define COR_PRINCIPAL 0x33AAFFFF
- #define COR_ROXO 0xC798FAAA
- #define AMARELO 0xFFFF00AA
- #define BRANCO 0xFFFFFFAA
- #define COR_NEGATIVO 0xFF7777AA
- #define AZULCLARO 0x33CCFFAA
- #define COR_ADM 0xCECEFF7D
- #define COR_USOCORRETO 0x2641FEAA
- #define CORPLAYER 0xE9E7A0AA
- #define LARANJA 0xFF9900AA
- #define LIMAO 0x32CD32AA
- #define COLOR_VERDECLARO 0x00F600AA
- #define COLOR_PINK 0xF600F6AA
- #define CORADMIN 0xCECEFF7D
- #define COLOR_KICK 0xFF7777AA
- #define ROXO 0xC798FAAA
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid,VERMELHO,"FilterScripter Criado Por CoreiiA");
- SendClientMessage(playerid,VERMELHO,"FilterScripter Criado Por CoreiiA");
- SendClientMessage(playerid,VERMELHO,"FilterScripter Criado Por CoreiiA");
- SendClientMessage(playerid,VERMELHO,"FilterScripter Criado Por CoreiiA");
- SendClientMessage(playerid,VERMELHO,"FilterScripter Criado Por CoreiiA");
- SendClientMessage(playerid,VERMELHO,"FilterScripter Criado Por CoreiiA");
- SendClientMessage(playerid,VERMELHO,"FilterScripter Criado Por CoreiiA");
- SendClientMessage(playerid,VERMELHO,"FilterScripter Criado Por CoreiiA");
- SendClientMessage(playerid,VERMELHO,"FilterScripter Criado Por CoreiiA");
- SendClientMessage(playerid,VERMELHO,"FilterScripter Criado Por CoreiiA");
- SendClientMessage(playerid,VERMELHO,"FilterScripter Criado Por CoreiiA");
- SendClientMessage(playerid,VERMELHO,"FilterScripter Criado Por CoreiiA");
- SendClientMessage(playerid,VERMELHO,"FilterScripter Criado Por CoreiiA");
- SendClientMessage(playerid,VERMELHO,"FilterScripter Criado Por CoreiiA");
- SendClientMessage(playerid,VERMELHO,"FilterScripter Criado Por CoreiiA");
- SendClientMessage(playerid,VERMELHO,"FilterScripter Criado Por CoreiiA");
- coreiaantatack = 0;
- coreiaatacotimer = 0;
- coreiausoatack = 0;
- coreiaatacao = 0;
- TempoAttackzao = 0;
- BKick[playerid] = 0;
- block = 1;
- return 1;
- }
- //Publics
- forward coreiaataco(playerid);
- public coreiaataco(playerid)
- {
- #pragma unused TempoAttackzao
- #pragma unused coreiaatacao
- GameTextForPlayer(playerid, "~r~Radio Dos PM Derrubado.", 5000, 5);
- format(string, sizeof(string), "%s Derrubou a Comunicação do Governo, Agora ninguem poderá Falar no /radio /d Até Desbloquearem os Ataques !.", sendername);
- SendClientMessageToAll(ROXO, string);
- coreiausoatack = 1;
- coreiaatacao = 1;
- TempoAttackzao = SetTimer("Attackzao",1500000, 0);
- return 1;
- }
- forward coreiadesabilitate(playerid);
- public coreiadesabilitate(playerid)
- {
- SendClientMessage(playerid,-1,"Segurança Desligado !");
- coreiaantatack = 0;
- return 1;
- }
- forward coreiablock(playerid);
- public coreiablock(playerid)
- {
- SendClientMessage(playerid, 0xCC0000FF, "~ Você normalizou o Sistema de Comunicação do Governo! ~");
- coreiausoatack = 0;
- return 1;
- }
- CMD:evitaratack(playerid)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- if(IsPlayerInRangeOfPoint(playerid,1.0, x,y,z))
- {
- if(CoreiiAInfo[playerid][pBope] >= 1) return SendClientMessage(playerid,COLOR_BLUE,"Voce Nao e Do Bope !");
- {
- if(IsPlayerConnected(playerid))
- {
- if(CoreiiAInfo[playerid][attack] == 0) return SendClientMessage(playerid,-1,"Voce Nao Tem Seguranca !");
- {
- #pragma unused coreiaantatack
- coreiaantatack = 1;
- SendClientMessage(playerid,COLOR_VERDECLARO,"Voce Consegiu Ativar o Modo Seguranca do Ataques !");
- SendClientMessage(playerid,COLOR_VERDECLARO,"ANOTACOES:Os Traficantes Poderam Atacar Novamente !");
- return 1;
- }
- }
- return 1;
- }
- }
- return 1;
- }
- CMD:desativaratack(playerid)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- if(IsPlayerInRangeOfPoint(playerid,1.0,x,y,z))
- {
- if(CoreiiAInfo[playerid][pBope] >= 1) return SendClientMessage(playerid,AZULCLARO,"Voce Nao e Bope !");
- {
- if(IsPlayerConnected(playerid))
- {
- SendClientMessage(playerid,AZULCLARO,"Voce Desativou o Ataque Dos Policias !");
- SendClientMessage(playerid,LARANJA,"ANOTACOES:O Sistema De Segurança Esta Desprotegido !");
- coreiaantatack = 0;
- return 1;
- }
- return 1;
- }
- }
- return 1;
- }
- CMD:atacar(playerid)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- if(IsPlayerInRangeOfPoint(playerid,1.0,x,y,z))
- {
- if(coreiaatacotimer == 1) return SendClientMessage(playerid,LIMAO,"Jah Atacaram Os Policias Espere + 30 Minuto Para Atacar Novamente");
- if(coreiausoatack == 1) return SendClientMessage(playerid,COLOR_DBLUE,"ERRO:O Sistema Da Justica Estar Offiline No Momento !");
- if(CoreiiAInfo[playerid][Hacker] == 0) return SendClientMessage(playerid,-1,"Voce Nao Tem o Hacker Para Atacar Compre-las !");
- if(coreiaantatack == 1)
- {
- GetPlayerName(playerid,sendername,sizeof(sendername));
- format(string,sizeof(string),"{41FEAA}[Defesa Info]O Player %s Tentou Derruba-lo o Sistema Mais Foi Abatido Pela Segurança Dos Policia Militar !",sendername);
- SendClientMessageToAll(LARANJA,string);
- SendClientMessage(playerid,CORADMIN,"Os Policiais Militar Se Defendeu Com Sucesso e Voce Foi Morto !");
- SetPlayerHealth(playerid,0.0);
- return 1;
- }
- if(CoreiiAInfo[playerid][Pacotao] == 0)
- {
- SendClientMessage(playerid,-1,"Voce Nao Tem o Pacote Malono !");
- return 1;
- }
- GetPlayerName(playerid,sendername,sizeof(sendername));
- format(string, sizeof(string), "%s está Derrubando a Comunicação dos Policiais.", sendername);
- SendClientMessageToAll(VERMELHO, string);
- SendClientMessage(playerid, AMARELO, "Você está Derrubando Dos Policiais de LS.");
- SendClientMessageToAll(AMARELO, string);
- SetTimerEx("coreiaataco", 30000, 0, "i", playerid);
- SetTimer("coreiausandoatacks", 300000, 0);
- coreiausoatack = 0;
- }
- else
- {
- SendClientMessage(playerid,-1,"Voçe Nao Esta No Local De Ataque !");
- }
- return 1;
- }
- CMD:stopatack(playerid)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- if(IsPlayerInRangeOfPoint(playerid,1.0,x,y,z))
- {
- if(coreiausoatack == 0) return SendClientMessage(playerid,-1,"Infelizmente Nao Teve Nenhum Ataque No Governo !");
- SendClientMessage(playerid,-1,"Voce Desativou o Sistema !");
- coreiausoatack = 0;
- return 1;
- }
- else
- {
- SendClientMessage(playerid,AMARELO,"Voce Nao Esta No Local De Para Ataque !");
- }
- return 1;
- }
- CMD:desabilitarattack(playerid)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- if(IsPlayerConnected(playerid))
- {
- if(coreiaantatack == 0) return SendClientMessage(playerid,-1,"O Sistema Dos Policias Estao Desativado !");
- if(CoreiiAInfo[playerid][pBope] >= 1) return SendClientMessage(playerid,VERMELHO,"Voçe Nao e Um Policia !");
- }
- if(IsPlayerInRangeOfPoint(playerid,4.0,x,y,z))
- {
- GetPlayerName(playerid,sendername,sizeof(sendername));
- format(string,sizeof(string),"%s Esta Tentando Desabilitar Os Ataque",sendername);
- SendClientMessageToAll(VERDE,string);
- SetTimerEx("coreiadesabilitate", 30000, 0, "i", playerid);
- SetTimer("coreiausandoatacks",300000,0);
- coreiaantatack = 1;
- return 1;
- }
- return 1;
- }
- CMD:blockataque(playerid)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- if(coreiausoatack == 0) return SendClientMessage(playerid,COLOR_KICK,"Por Enquanto Neum Ataque No Governo !");
- if(CoreiiAInfo[playerid][pBope] >= 1) return SendClientMessage(playerid,-1,"Voce Nao e Do Bope !");
- if(IsPlayerInRangeOfPoint(playerid,4.0,x,y,z))
- {
- GetPlayerName(playerid,sendername,sizeof(sendername));
- format(string, sizeof(string), "%s está Bloqueando os Ataques que estão sendo feito contra o Governo!",sendername);
- SendClientMessageToAll(VERMELHO, string);
- SendClientMessage(playerid, COR_NEGATIVO, "Bloqueando Attacks Contra o Governo aguarde 30 Segundos!");
- SetTimerEx("coreiablock", 30000, 0, "i", playerid);
- SetTimer("Usarattack", 300000, 0);
- coreiausoatack = 1;
- return 1;
- }
- else
- {
- SendClientMessage(playerid,-1,"Voce Nao Esta No Local De Block !");
- }
- return 1;
- }
- CMD:comprarhacker(playerid)
- {
- if(GetPlayerMoney(playerid) < 1500000) return SendClientMessage(playerid,LIMAO,"Voce Nao tem Essa Grana Suficiente !");
- if(block == 0) return SendClientMessage(playerid,VERMELHO,"Algum Policial Bloquio a Loja");
- SendClientMessage(playerid,COR_NEGATIVO,"Comprado Com Sucesso !");
- CoreiiAInfo[playerid][Hacker] = 1;
- GivePlayerMoney(playerid,-1500000);
- GetPlayerName(playerid,sendername,sizeof(sendername));
- return 1;
- }
- CMD:comprarpacotao(playerid)
- {
- if(GetPlayerMoney(playerid) < 1500000) return SendClientMessage(playerid,LIMAO,"Voce Nao tem Essa Grana Suficiente !");
- if(block == 0) return SendClientMessage(playerid,VERMELHO,"Algum Pm Blockio a Loja");
- SendClientMessage(playerid,-1,"Comprado C/Sucesso !");
- CoreiiAInfo[playerid][Pacotao] = 1;
- GivePlayerMoney(playerid,-1500000);
- GetPlayerName(playerid,sendername,sizeof(sendername));
- return 1;
- }
- CMD:comprarantatack(playerid)
- {
- if(CoreiiAInfo[playerid][pBope] == 5) return SendClientMessage(playerid,COR_PRINCIPAL,"Voce Presisa Ser Lider Da Bope");
- if(GetPlayerMoney(playerid) < 1500000) return SendClientMessage(playerid,COR_PRINCIPAL,"Voce Nao tem Essa Grana Suficiente !");
- SendClientMessage(playerid,-1,"Voce Comprou o anti-attack !");
- CoreiiAInfo[playerid][attack] = 1;
- GivePlayerMoney(playerid,-1500000);
- return 1;
- }
- CMD:r(playerid,params[])
- {
- new texto;
- GetPlayerName(playerid,sendername,sizeof(sendername));
- if(sscanf(params,"s[100]",texto)) return SendClientMessage(playerid,VERMELHO,"/r [Menssagem]");
- if(coreiausoatack == 1) return SendClientMessage(playerid,CINZA,"Voce Nao Pode usar /r Pos Esta Bloquiado Por Algum Traficante !");
- format(string,sizeof(string),"[CHAT BOPE]%s Texto:{5D1BE0}%s",sendername,texto);
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(CoreiiAInfo[i][pBope] >= 1)
- {
- SendClientMessage(playerid,CINZA,string);
- return 1;
- }
- }
- return 1;
- }
- return 1;
- }
- CMD:vereumaterial(playerid)
- {
- format(string,sizeof(string),"Voce tem {CF3E78}%d De Hackers",CoreiiAInfo[playerid][Hacker]);
- SendClientMessage(playerid,VERMELHO,string);
- format(string,sizeof(string),"Voce tem {CF3E78}%d De Pacote",CoreiiAInfo[playerid][Pacotao]);
- SendClientMessage(playerid,VERMELHO,string);
- SetPlayerPos(playerid, 1539.6094,-1694.4749,13.5469);
- return 1;
- }
- CMD:apreenderloja(playerid)
- {
- if(block == 1)
- {
- GetPlayerName(playerid,sendername,sizeof(sendername));
- format(string,sizeof(string),"O OFICIAL Da Policia %s Bloquio As Lojas Niguem Poderar Mais Comprar Hacker's",sendername);
- SendClientMessageToAll(CINZA,string);
- SendClientMessageToAll(AZULCLARO,"A Populaçao De LS Depende Da Policia Para a Segurança Da Loja Bem Seguro !");
- block = 0;
- return 1;
- }
- else
- {
- SendClientMessage(playerid,VERMELHO,"Voce Ja Fechou a Loja !");
- }
- return 1;
- }
- CMD:arrombarloja(playerid)
- {
- if(block == 0)
- {
- GetPlayerName(playerid,sendername,sizeof(sendername));
- format(string,sizeof(string),"O Traficante %s Arrombou A Loja Liberado Tudo Para Comprar Hacker e Invadir Os Oficiais",sendername);
- SendClientMessageToAll(VERMELHO,string);
- SendClientMessageToAll(CINZA,"A Policia Deu Mole Mane !");
- block = 1;
- return 1;
- }
- else
- {
- SendClientMessage(playerid,AMARELO,"Voce Ja Arrombou a Loja !");
- }
- return 1;
- }
- CMD:grana(playerid)
- {
- GivePlayerMoney(playerid,15000000);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement