06.09.2018, 16:40
I tried hooking "OnPlayerDamage" from weapon-config it didn't work, the code I used
It also doesn't work with Pawn.CMD callback "OnPlayerCommandPerformed(playerid, cmd[], params[], result, flags)"
PHP код:
hook OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)
{
SetPlayerHealth(playerid, 1.0);
return 1;
}