Damage List
#1

Hello.
I'm searching a Damage List.
Like
"Weapon-ID 0 | Nothing | (xy) Damage, etc."

thx^^
Reply
#2

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;

Reply
#3

What's this?
I think you don't understand me.
I wan't a list, like this:
https://sampwiki.blast.hk/wiki/Weapons
But there should be a special list: "damage"
the official damage which a player gives another player with weapon "xy".
Reply
#4

#bump
Reply
#5

I don't really get what you mean
Reply
#6

I think he wants a list of the default damage values of each weapon. I'm not sure if there is one but you could run some tests to find out by getting the old health - the new health.
Reply
#7

This should help you greatly:
http://www.gtasanandreas.net/weapons/
- Scroll down to the firearm section.
Reply
#8

Kawada, this isn't the real sa-mp damage.^^

Desert Eagle
Rounds per reload: 7
Damage: 70 initially, 140 at Gangster level and up




@V1ceC1ty
That's right, but i can't test all weapons because nobody is online currently to help me, also my internet isn't good :/
Reply
#9

#bump

o.O
Reply
#10

Weapon name Actual GTA Damage
Desert Eagle 46
Colt45 8
Tec9 6
UZI 6
Silenced Colt45 13
M4 9
AK47 9
MP5 8
Sniper 41
Rifle 24
Shotgun 49
SPAZ 39

From LS-RP.com
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)