Damage List - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Damage List (
/showthread.php?tid=387912)
Damage List -
'Pawno. - 26.10.2012
Hello.
I'm searching a Damage List.
Like
"Weapon-ID 0 | Nothing | (xy) Damage, etc."
thx^^
Re: Damage List -
_Khaled_ - 26.10.2012
PHP код:
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;
}
Re: Damage List -
'Pawno. - 26.10.2012
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".
Re: Damage List -
'Pawno. - 27.10.2012
#bump
Re: Damage List -
_Khaled_ - 27.10.2012
I don't really get what you mean
Re: Damage List -
V1ceC1ty - 27.10.2012
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.
Re : Damage List -
KawadaGaming - 27.10.2012
This should help you greatly:
http://www.gtasanandreas.net/weapons/
- Scroll down to the firearm section.
Re: Damage List -
'Pawno. - 27.10.2012
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 :/
Re: Damage List -
'Pawno. - 27.10.2012
#bump
o.O
Re: Damage List -
B-Matt - 27.10.2012
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