Don't like ads? PRO users don't see any ads ;-)
Guest

anti fake kill

By: a guest on Jul 6th, 2012  |  syntax: None  |  size: 1.22 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include <a_samp>
  2. #include <core>
  3. #include <float>
  4.  
  5. new reklam[] = "[BILGI]Bu Server, [T]HeLLBoY un Anti Fake-Kill Sistemini Kullanmaktadir. Iletisim: muha-mmed97@hotmail.com";
  6.  
  7. new TTest[MAX_PLAYERS];
  8.  
  9. new GTest[MAX_PLAYERS];
  10.  
  11. new BanSebep[] = "FakeKill";
  12.  
  13.  
  14. public OnFilterScriptInit()
  15. {
  16.         SetTimer("sendmessage", 120000, true);
  17.         print(" Anti Fake-Kill - By .:: [T]HeLLBoY ::.");
  18.         return 1;
  19. }
  20.  
  21. public OnFilterScriptExit()
  22. {
  23.         return 1;
  24. }
  25.  
  26. public OnPlayerConnect(playerid)
  27. {
  28.         TTest[playerid] = 0;
  29.         GTest[playerid] = 0;
  30.         return 1;
  31. }
  32. forward sendmessage();
  33. public sendmessage()
  34. {
  35.         return SendClientMessageToAll(0xFFFF00AA, reklam);
  36. }
  37.  
  38. public OnPlayerDeath(playerid, killerid, reason)
  39. {
  40.         if(!TTest[playerid])
  41.         {
  42.                 GTest[playerid] = gettime();
  43.  
  44.         }
  45.         TTest[playerid]++;
  46.         if(GTest[playerid] == 4)
  47.         {
  48.                 if(gettime() - GTest[playerid] <= 4)
  49.                 {
  50.                         new pName[25];
  51.                         new string[256];
  52.                         GetPlayerName(playerid, pName, 25);
  53.                         format(string, 256, "%s {FFBF00} Adli Oyuncu Sunucudan Banlandi.[Sebep:{001BE1} Fake Kill]", pName);
  54.                         SendClientMessageToAll(0x33FF33AA, string);
  55.                         BanEx(playerid, BanSebep);
  56.  
  57.                 }
  58.                 else if(gettime() - GTest[playerid] > 5)
  59.                 {
  60.                         TTest[playerid] = 0;
  61.                 }
  62.         }
  63.         return 1;
  64. }