VenomMancer

Anti Health Hack v1

Mar 23rd, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
  2. {
  3. //---------------------------------------------------
  4. new Float:pHealth;
  5. new Float:pArmour;
  6. //---------------------------------------------------
  7. if(IsPlayerConnected(playerid))
  8. {
  9. GetPlayerArmour(playerid, pArmour);
  10. GetPlayerHealth(playerid, pHealth);
  11. if(pHealth >= 100 || pArmour >= 100 )
  12. {
  13. new namex[MAX_PLAYER_NAME];
  14. new string[256];
  15. GetPlayerName(playerid, namex, sizeof(namex));
  16. format(string, sizeof(string), "{FFFFFF}:: ANTI CHEAT :: {FF0000}%s {FFFF00}Has been kick from this server. (Reason : Health Hack!)",namex);
  17. SendClientMessageToAll(-1, string);
  18. Kick(playerid);
  19. }
  20. }
  21. return 1;
  22. }
Add Comment
Please, Sign In to add comment