20.01.2014, 07:17
there like have a simple way..
I tried to test it with my friend then succeed anti-health locking
Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart) { new msg[256],Float:health; format(msg,256,"OnPlayerGiveDamage: Playerid:%d Damagedid:%d Amount:%f Weaponid:%d Bodypart:%d",playerid,damagedid,amount,weaponid,bodypart); SendClientMessage(playerid,-1,msg); GetPlayerHealth(damagedid,health); SetPlayerHealth(damagedid,health-amount); //Is this can anti health locking cheat? return 1; }