weapon damage help
#3

Quote:
Originally Posted by PlayLSX_Founder
Посмотреть сообщение
If you found out how to shoot someone and set their health then you have already answered your own question. Just set it to however much you want to take away?

pawn Код:
OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
    new Float:HP;
    GetPlayerHealth(    damagedid, HP   );
    SetPlayerHealth(    damagedid, HP -[amount you want to reduce by]   );
   
    return 1;
}
?
pawn Код:
OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
    new Float:HP;
    GetPlayerHealth(playerid, HP);
    SetPlayerHealth(playerid, HP -[amount you want to reduce by]);
    return 1;
}
And even with this code, it still might not function the way you want it, because of lagg etc.
Reply


Messages In This Thread
weapon damage help - by MichaelWharton101 - 14.12.2012, 01:58
Re: weapon damage help - by PlayLSX_Founder - 14.12.2012, 03:07
Re: weapon damage help - by Threshold - 14.12.2012, 03:37

Forum Jump:


Users browsing this thread: 2 Guest(s)