Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- www.projetosbrunopereira.com.br
- //- FS criado por Bruno Pereira/DJ Bruninho. Porfavor não retire os creditos! - //
- //- Acesse: www.projetosbrunopereira.com.br -//
- //- Contato: brunopereiraa-@hotmail.com -//
- //- Creditos para Shadoww5 pela explicação de simplificar o codigo - //
- www.projetosbrunopereira.com.br
- //Includes
- #include <a_samp>
- //Defines
- #define FILTERSCRIPT
- #if defined FILTERSCRIPT
- #define MAX_PLAYER 100
- #define COLOR_LIGHTRED 0xFF6347AA
- //News
- new tempodaarma;
- new Armashack[] = {
- 2,
- 8,
- 35,
- 38,
- 36,
- 37,
- 44,
- 45,
- 9,
- 16,
- 22,
- 26,
- 27,
- 28,
- 32,
- 39,
- 40,
- 43
- };
- //Public's
- public OnFilterScriptInit()
- {
- tempodaarma = SetTimer("Check",1000,1);
- print("||| ANTI-XITER DE ARMAS CARREGADO COM SUCESSO |||");
- print("||| By Bruno Pereira / DJ Bruninho e Shadoww5 |||");
- print("||| BPS: http://playstars.forumeiros.com |||");
- return 1;
- }
- public OnFilterScriptExit()
- {
- KillTimer(tempodaarma);
- return 1;
- }
- forward Check();
- public Check()
- {
- new string[256];
- new giveplayer[MAX_PLAYER_NAME];
- for(new d = 0; d < MAX_PLAYER; d++)
- {
- if(GetPlayerSpecialAction(d) == SPECIAL_ACTION_USEJETPACK)
- {
- GetPlayerName(d, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "AVISO: %s[ID:%d] usou um JetPack e foi {E600FF}BANIDO", giveplayer,d);
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- Ban(d);
- }
- for(new a = 0; a < sizeof(Armashack); a ++)
- {
- if(GetPlayerWeapon(d) == Armashack[a])
- {
- GetPlayerName(d, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "AVISO: %s[ID:%d] usou uma arma PROIBIDA e foi {E600FF}BANIDO", giveplayer,d);
- SendClientMessageToAll(COLOR_LIGHTRED, string);
- Ban(d);
- }
- }
- }
- return 1;
- }
- #endif
- www.projetosbrunopereira.com.br
- //- FS criado por Bruno Pereira/DJ Bruninho. Porfavor não retire os creditos! - //
- //- Acesse: www.projetosbrunopereira.com.br -//
- //- Contato: brunopereiraa-@hotmail.com -//
- //- FS criado por Bruno Pereira/DJ Bruninho. Porfavor não retire os creditos! - //
- //- Creditos para Shadoww5 pela explicação de simplificar o codigo - //
- www.projetosbrunopereira.com.br
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement