Advertisement
Guest User

Gr

a guest
Jul 21st, 2008
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 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 antibot22[MAX_PLAYERS];
  19. forward antibot2(playerid);
  20. new pname[250],string[256];
  21.  
  22. public OnFilterScriptInit()
  23. {
  24. print("\n-----------------------------------------------------------------------");
  25. print(" [FS] Anti bot2 Team Fight-international [Fi] By garderer 1.0 Charge.");
  26. print("-----------------------------------------------------------------------\n");
  27. return 1;
  28. }
  29. public OnFilterScriptExit()
  30. {
  31. print("\n-----------------------------------------------------------------------");
  32. print(" [FS] Anti bot2 Team Fight-international [Fi] By garderer 1.0 Retire.");
  33. print("-----------------------------------------------------------------------\n");
  34. return 1;
  35. }
  36. #else
  37. main()
  38. {
  39. }
  40. #endif
  41. public OnGameModeInit()
  42. {
  43.  
  44. return 1;
  45. }
  46.  
  47. public OnGameModeExit()
  48. {
  49. return 1;
  50. }
  51. public OnPlayerDisconnect(playerid)
  52. {
  53. KillTimer(antibot22[playerid]);
  54. }
  55. public OnPlayerConnect(playerid){
  56. antibot22[playerid] = SetTimerEx("antibot2",5000,1,"%d",playerid);
  57. return 1;
  58. }
  59. public antibot2(playerid)
  60. {
  61. if(GetPlayerPing(playerid) == 0)
  62. {
  63. GetPlayerName(playerid, pname, sizeof(pname));
  64. SendAdminMessage(COLOR_ORANGE,"( ! ) [Fi] Anti-Bot2 (msg[admin]): Bot d�tect� et banni !.");
  65. format(string, sizeof(string), "( ! ) [Fi] Anti-Bot2 : D�tection d'un bot nom� %s (Banni).", pname);
  66. SendClientMessageToAll(COLOR_ORANGE,string);
  67. SendClientMessage(playerid, COLOR_ORANGE,"( ! ) Vous avez �tait banni car vous �tes consid�r� comme un bot.");
  68. print(") [Fi] Anti-Bot2: A banni un bot !");
  69. KillTimer(antibot22[playerid]);
  70. Ban(playerid);
  71. }
  72. }
  73. //----[Fi]----------------------------------------------------------------------
  74. // SendAdminMessage
  75. //-----------------------------------------------------------------------G@R----
  76. SendAdminMessage(color, text[]) {
  77. for(new i = 0; i < MAX_PLAYERS; i ++) {
  78. if(IsPlayerConnected(i)) {
  79. if (IsPlayerAdmin(i)) {
  80. SendClientMessage(i, color, text);
  81. }}}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement