Players HP Bar refilling
#1

For some unknown reason, the players HP bars keep on refilling on damage..
PHP код:
public OnPlayerTakeDamage(playeridissueridFloat:amountweaponid)
{
    if(
issuerid != INVALID_PLAYER_ID)
    {
        new 
Float:health;
        
GetPlayerHealth(playeridhealth);
        if(
weaponid == 7)
                        
SetPlayerHealth(playerid,health-12);
        if(
weaponid == 8)
                        
SetPlayerHealth(playerid,health-90);
        if(
weaponid == 4)
                        
SetPlayerHealth(playerid,health-78);
        if(
weaponid == 3)
                        
SetPlayerHealth(playerid,health-11);
        if(
weaponid == 5)
                        
SetPlayerHealth(playerid,health-11);
        if(
weaponid == 23)
                        
SetPlayerHealth(playerid,health-53);
        if(
weaponid == 24)
                        
SetPlayerHealth(playerid,health-90);
        if(
weaponid == 22)
                        
SetPlayerHealth(playerid,health-39);
        if(
weaponid == 25)
                        
SetPlayerHealth(playerid,health-65);
        if(
weaponid == 26)
                        
SetPlayerHealth(playerid,health-48);
        if(
weaponid == 27)
                        
SetPlayerHealth(playerid,health-32);
        if(
weaponid == 28)
                        
SetPlayerHealth(playerid,health-28);
        if(
weaponid == 29)
                        
SetPlayerHealth(playerid,health-31);
        if(
weaponid == 30)
                        
SetPlayerHealth(playerid,health-41);
        if(
weaponid == 31)
                        
SetPlayerHealth(playerid,health-41);
        if(
weaponid == 32)
                        
SetPlayerHealth(playerid,health-27);
        if(
weaponid == 33)
                        
SetPlayerHealth(playerid,health-97);
        if(
weaponid == 34)
                        
SetPlayerHealth(playerid,health-213);
        if(
weaponid == 33)
                        
SetPlayerHealth(playerid,health-97);
        if(
weaponid == 33)
                       
SetPlayerHealth(playerid,health-97);
    }
    return 
1;

I tried removing it, still..
anyone knows?
Reply


Messages In This Thread
Players HP Bar refilling - by _Khaled_ - 26.10.2012, 11:01
Re: Players HP Bar refilling - by _Khaled_ - 26.10.2012, 20:59
Re: Players HP Bar refilling - by iPLEOMAX - 26.10.2012, 21:03
Re: Players HP Bar refilling - by _Khaled_ - 26.10.2012, 21:43
Re: Players HP Bar refilling - by _Khaled_ - 27.10.2012, 08:15
Re: Players HP Bar refilling - by Black Axe - 27.10.2012, 08:29
Re: Players HP Bar refilling - by WizBoy - 27.10.2012, 08:37
Re: Players HP Bar refilling - by Vasu99 - 27.10.2012, 08:38
Re: Players HP Bar refilling - by _Khaled_ - 27.10.2012, 08:52
Re: Players HP Bar refilling - by gtakillerIV - 27.10.2012, 09:23

Forum Jump:


Users browsing this thread: 2 Guest(s)