Guest User

Anti-Fake-Kill [BloGdoSamP]

a guest
Apr 27th, 2012
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.82 KB | None | 0 0
  1. #include <a_samp>
  2. new antifakekill[MAX_PLAYERS];
  3. public OnFilterScriptInit()
  4. {
  5.     print(" Anti Fake Kill by; LuizFel");
  6.     return 1;
  7. }
  8.  
  9. public OnPlayerDeath(playerid, killerid, reason)
  10. {
  11.     antifakekill[playerid] ++;
  12.     SetTimerEx("antifakekill2", 1000,false,"i",playerid);
  13.     return 1;
  14. }
  15. forward antifakekill2(playerid);
  16. public antifakekill2(playerid)
  17. {
  18.     antifakekill[playerid] --;
  19.     if(antifakekill[playerid] > 5)
  20.     {
  21.         new string[50], Nome[MAX_PLAYER_NAME];
  22.         SendClientMessage(playerid, 0xFF0000AA, "Este servidor esta protegido por um Anti Fake Kill");
  23.         GetPlayerName(playerid, Nome, sizeof(Nome));
  24.         format(string, 50, "%s foi kickado pelo uso do Auto Fake Kill.", Nome);
  25.         SendClientMessageToAll(0xFF0000AA, string);
  26.         Kick(playerid);
  27.     }
  28.     return 1;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment