11.07.2017, 00:56
Hey, ever single weapon works except for shotguns(only sometimes, depends on damage) but M4's and AK's don't work at all. Here is the basic code.
Video: https://www.youtube.com/watch?v=_rbVO6iK4BY
PHP код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart)
{
new Float:PlayerHealth;
if(Character[damagedid][BrutalM] == 0 && Character[damagedid][Dead] == 0 && playerid != INVALID_PLAYER_ID)
{
GetPlayerHealth(damagedid, PlayerHealth);
if(PlayerHealth - amount < 36 && Character[damagedid][BrutalM] == 0 && !IsPlayerInAnyVehicle(damagedid)) {
BrutalMode(damagedid);
return 0;
}
}