Highest Damage Point that can be given out by weapon (that supports skills)
#8

Quote:
Originally Posted by iLearner
View Post
Example:

Current damage per shot by Deagle is 10hp (you have players health's saved in their data array)
You want to make the damage 12hp:



and so on...



PS: JE: I need a good house interior map o.o
What about something like this
Code:
OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
    if (weaponid == 24) amount = 15.0; //desired damage

    new Float:health;
    GetPlayerHealth(playerid, health);
    SetPlayerHealth(playerid, health - amount);

    return 1;
}
or https://sampforum.blast.hk/showthread.php?tid=558839
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)