04.11.2015, 07:38
Код:
#if defined _ALS_SetPlayerHealth #undef SetPlayerHealth #else #define _ALS_SetPlayerHealth #endif #define SetPlayerHealth SetPlayerHealthEx SetPlayerHealthEx(playerid,Float:NewHealth) { PlayerHealth[playerid] = NewHealth; SetPlayerHealth(playerid , NewHealth) ; return CheckHack(playerid); } CheckHack(playerid) { new Float:Health; GetPlayerHealth(playerid, Health); if(Health > PlayerHealth[playerid])return KickMessages(playerid, "Health Hack"); return 1; }
Kindly help thanks.