Advertisement
Guest User

GR

a guest
Jul 19th, 2008
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. //---------------------------------------------------------------------------
  2. //- |||||||| ||||||| |||||| ||||||| |||||| |||||| |||||| |||||| -
  3. //- || || || || || || || || || || || || || -
  4. //- || |||| ||||||| |||||| || || |||| |||||| |||| |||||| -
  5. //- || || || || || ||| || || || || ||| || || ||| -
  6. //- |||||||| || || || ||| ||||||| |||||| || ||| |||||| || ||| -
  7. //---------------------------------------------------------------------------
  8. // SCRIPT BY GARDERER "Team fight-International"
  9. //------------------------------------------------------------------G@R------
  10. //Includes
  11. #include <a_samp>
  12. //FILTERSCRIPT
  13. #define FILTERSCRIPT
  14. #if defined FILTERSCRIPT
  15. //COLOR_ORANGE
  16. #define COLOR_ORANGE 0xFF9900AA
  17. //Anti-Bot
  18. new con[MAX_PLAYERS];
  19. forward va1(playerid);
  20. forward va2(playerid);
  21. new va3;
  22.  
  23. public OnFilterScriptInit()
  24. {
  25. print("\n-----------------------------------------------------------------------");
  26. print(" [FS] Anti Flood Team Fight-international [Fi] By garderer 3.1 Charge.");
  27. print("-----------------------------------------------------------------------\n");
  28. va3 = SetTimer("va1",4000,1);
  29. SetTimer("va4",1000,0);
  30. return 1;
  31. }
  32. public OnFilterScriptExit()
  33. {
  34. print("\n-----------------------------------------------------------------------");
  35. print(" [FS] Anti Flood Team Fight-international [Fi] By garderer 3.1 Retire.");
  36. print("-----------------------------------------------------------------------\n");
  37. SetTimer("va2",1000,0);
  38. return 1;
  39. }
  40. #else
  41. main()
  42. {
  43. }
  44. #endif
  45. public OnGameModeInit()
  46. {
  47.  
  48. return 1;
  49. }
  50.  
  51. public OnGameModeExit()
  52. {
  53. SetTimer("va2",1000,0);
  54. return 1;
  55. }
  56.  
  57. public OnPlayerConnect(playerid){
  58. {
  59. con[playerid]=con[playerid]+1;
  60. if(con[playerid] == 10){
  61. SendAdminMessage(COLOR_ORANGE,"( ! ) [Fi] Anti-bot (msg[admin]): L'attaque de bot est banni par l'anti-flood de la team [Fi].");
  62. SendClientMessage(playerid,COLOR_ORANGE,"( ! ) Anti-flood Bot [Fi] :");
  63. SendClientMessage(playerid,COLOR_ORANGE,"( ! ) Vous avez �tes banni car vous �tes consid�r� comme bot par l'anti flood.");
  64. SendClientMessage(playerid,COLOR_ORANGE,"( ! ) Si erreur contacter un admin.");
  65. print("[FS] Anti Flood Team Fight-international .A banni l attaque de bot.");
  66. Ban(playerid);
  67. SendClientMessageToAll(COLOR_ORANGE,"( ! ) [Fi] Anti-bot: L'attaque de bot a �tait banni par l'anti flood de la team Fight-International.");
  68. }
  69. }
  70. return 1;
  71. }
  72. public va1(playerid)
  73. {
  74. con[playerid]=0;
  75. }
  76. public va2(playerid)
  77. {
  78. KillTimer(va3);
  79. con[playerid]=0;
  80. }
  81. //----[Fi]----------------------------------------------------------------------
  82. // SendAdminMessage
  83. //-----------------------------------------------------------------------G@R----
  84. SendAdminMessage(color, text[]) {
  85. for(new i = 0; i < MAX_PLAYERS; i ++) {
  86. if(IsPlayerConnected(i)) {
  87. if (IsPlayerAdmin(i)) {
  88. SendClientMessage(i, color, text);
  89. }}}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement