Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Need help on Damage Weapon

$
0
0
Currently I have code but when it shoots only blood loss when there is armor, blood and armor loss in a high rate can someone help me?
Code:

public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
    if(issuerid != INVALID_PLAYER_ID)
    {
        new Float:health;
        GetPlayerHealth(playerid, health);
        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;
}


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>