Advertisement
Guest User

antifakekill

a guest
Nov 19th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. new pLastDamager[MAX_PLAYERS] = {65535,...};
  4.  
  5. public OnPlayerDisconnect(playerid, reason)
  6. {
  7. pLastDamager[playerid] = 65535;
  8. return 1;
  9. }
  10.  
  11. public OnPlayerDeath(playerid, killerid, reason)
  12. {
  13. if(killerid != pLastDamager[playerid])
  14. {
  15. Kick(playerid); //change to your's
  16. }
  17. return 1;
  18. }
  19.  
  20. public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
  21. {
  22. if(issuerid != 65535)
  23. {
  24. pLastDamager[playerid] = issuerid;
  25. }
  26. return 1;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement