bug Increase Damage HP/ARMOR back sometimes
#1

Hello guys, i have a problem with my damage modified.

The Hp/Armor back sometimes, i understand why.

Look this video with TEC9 damage modified +2 (8 DMG/HIT):
[ame]http://www.youtube.com/watch?v=NZ9q-vcFVhg[/ame]

My calcul

PHP код:
if(GetPlayerTeam(issuerid) != GetPlayerTeam(playerid))
        {
               if(
weaponid == 22 || weaponid == 33 || weaponid == 28 || weaponid == 32 || weaponid == 34 || weaponid == 15 || weaponid == 5 || weaponid == 4)
            {
                   if(!
OnPlayerAnimButtGun(issuerid,weaponid))
                 {
                        switch(
weaponid)
                           {
                               case 
22: amount = 18.0;
                            case 
15: amount = 12.0;
                            case 
4: amount = 40.0;
                            case 
5: amount = 12.0;
                            case 
28: amount = 8.0;
                            case 
32: amount = 9.0;
                            case 
33: amount = 40.0;
                            case 
34: amount = 50.0;
                        }
                         
armour = armour - amount;
                        if(
armour < 0.0)
                        {
                              
health += armour;
                             if(
health <= 0.0)
                             {
                                
health = 0.0;
                               }
                            
armour = 0.0;
                         }
                         
SetPlayerHealthTakeDamage(playerid,health);
                         
SetPlayerArmourTakeDamage(playerid,armour);
                }
            }
        } 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)