25.08.2016, 13:08
Hi, how is it possible to remove fall damage? Slice removed it in weapon-config.inc, but how?
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
new Float:hp;
if(weaponid == 54) GetPlayerHealth(playerid, hp), hp+=amount, SetPlayerHealth(playerid, hp);
return 1;
}
|
No, I have custom damage system in my script, it would totally mess it up. And I'm not planning to change anything if I'd use it.
|
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if (issuerid == INVALID_PLAYER_ID)
{
return 0;
}
}
//This will cause no damage to player if player fall or damage himself