SHARE
TWEET

[FS] Anti -Fake Kill

Chip7 Apr 28th, 2012 2,434 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*VISITE NOSSO SITE: http://www.sampknd.com/
  2.   SAMP KND MELHOR BLOG DE SAMP DO BRASIL
  3. */
  4.  
  5. #include <a_samp>
  6. new antifakekill[MAX_PLAYERS];
  7. public OnFilterScriptInit()
  8. {
  9.     print(" Anti Fake Kill by; LuizFel");
  10.     return 1;
  11. }
  12.  
  13. public OnPlayerText(playerid, text[])
  14. {
  15.    if(strfind(text,"!kill",true) == 0) return Kick(playerid);
  16.    if(strfind(text,"www.samphax.tk",true) == 0) return Kick(playerid);
  17.  
  18.    return 1;
  19. }
  20.  
  21. public OnPlayerDeath(playerid, killerid, reason)
  22. {
  23.     antifakekill[playerid] ++;
  24.     SetTimerEx("antifakekill2", 1000,false,"i",playerid);
  25.     return 1;
  26. }
  27.  
  28. forward antifakekill2(playerid);
  29. public antifakekill2(playerid)
  30. {
  31.     antifakekill[playerid] --;
  32.     if(antifakekill[playerid] > 5)
  33.     {
  34.         SendClientMessage(playerid, 0xFF0000AA, "Este servidor esta protegido por um Anti Fake Kill");
  35.         Kick(playerid);
  36.     }
  37.     return 1;
  38. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top