Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
- {
- //---------------------------------------------------
- new Float:pHealth;
- new Float:pArmour;
- //---------------------------------------------------
- if(IsPlayerConnected(playerid))
- {
- GetPlayerArmour(playerid, pArmour);
- GetPlayerHealth(playerid, pHealth);
- if(pHealth >= 100 || pArmour >= 100 )
- {
- new namex[MAX_PLAYER_NAME];
- new string[256];
- GetPlayerName(playerid, namex, sizeof(namex));
- format(string, sizeof(string), "{FFFFFF}:: ANTI CHEAT :: {FF0000}%s {FFFF00}Has been kick from this server. (Reason : Health Hack!)",namex);
- SendClientMessageToAll(-1, string);
- Kick(playerid);
- }
- }
- return 1;
- }
Add Comment
Please, Sign In to add comment