Advertisement
Bruno

ANTI-XITER de ARMAS

Jun 23rd, 2011
1,501
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.38 KB | None | 0 0
  1. www.projetosbrunopereira.com.br
  2.  
  3. //- FS criado por Bruno Pereira/DJ Bruninho. Porfavor não retire os creditos! - //
  4. //- Acesse: www.projetosbrunopereira.com.br -//
  5. //- Contato: brunopereiraa-@hotmail.com -//
  6. //- Creditos para Shadoww5 pela explicação de simplificar o codigo - //
  7.  
  8. www.projetosbrunopereira.com.br
  9.  
  10. //Includes
  11. #include <a_samp>
  12.  
  13. //Defines
  14. #define FILTERSCRIPT
  15. #if defined FILTERSCRIPT
  16. #define MAX_PLAYER 100
  17. #define COLOR_LIGHTRED 0xFF6347AA
  18.  
  19. //News
  20. new tempodaarma;
  21. new Armashack[] = {
  22.     2,
  23.     8,
  24.     35,
  25.     38,
  26.     36,
  27.     37,
  28.     44,
  29.     45,
  30.     9,
  31.     16,
  32.     22,
  33.     26,
  34.     27,
  35.     28,
  36.     32,
  37.     39,
  38.     40,
  39.     43
  40. };
  41.  
  42. //Public's
  43. public OnFilterScriptInit()
  44. {
  45.     tempodaarma = SetTimer("Check",1000,1);
  46.     print("||| ANTI-XITER DE ARMAS CARREGADO COM SUCESSO |||");
  47.     print("||| By Bruno Pereira / DJ Bruninho e Shadoww5 |||");
  48.     print("||| BPS: http://playstars.forumeiros.com |||");
  49.     return 1;
  50. }
  51.  
  52. public OnFilterScriptExit()
  53. {
  54.     KillTimer(tempodaarma);
  55.     return 1;
  56. }
  57.  
  58. forward Check();
  59. public Check()
  60. {
  61.     new string[256];
  62.     new giveplayer[MAX_PLAYER_NAME];
  63.     for(new d = 0; d < MAX_PLAYER; d++)
  64.     {
  65.  
  66.             if(GetPlayerSpecialAction(d) == SPECIAL_ACTION_USEJETPACK)
  67.                 {
  68.                 GetPlayerName(d, giveplayer, sizeof(giveplayer));
  69.                 format(string, sizeof(string), "AVISO: %s[ID:%d] usou um JetPack e foi {E600FF}BANIDO", giveplayer,d);
  70.                 SendClientMessageToAll(COLOR_LIGHTRED, string);
  71.                 Ban(d);
  72.                 }
  73.             for(new a = 0; a < sizeof(Armashack); a ++)
  74.             {
  75.                  if(GetPlayerWeapon(d) == Armashack[a])
  76.                  {
  77.                         GetPlayerName(d, giveplayer, sizeof(giveplayer));
  78.                         format(string, sizeof(string), "AVISO: %s[ID:%d] usou uma arma PROIBIDA e foi {E600FF}BANIDO", giveplayer,d);
  79.                         SendClientMessageToAll(COLOR_LIGHTRED, string);
  80.                         Ban(d);
  81.                         }
  82.                      }
  83.                       }
  84.                   return 1;
  85.         }
  86.                
  87.                
  88.  
  89. #endif
  90.  
  91. www.projetosbrunopereira.com.br
  92.  
  93. //- FS criado por Bruno Pereira/DJ Bruninho. Porfavor não retire os creditos! - //
  94. //- Acesse: www.projetosbrunopereira.com.br -//
  95. //- Contato: brunopereiraa-@hotmail.com -//
  96. //- FS criado por Bruno Pereira/DJ Bruninho. Porfavor não retire os creditos! - //
  97. //- Creditos para Shadoww5 pela explicação de simplificar o codigo - //
  98.  
  99. www.projetosbrunopereira.com.br
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement