Does SetPlayerSkillLevel affect weapon Damage? - 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: Does SetPlayerSkillLevel affect weapon Damage? (
/showthread.php?tid=419162)
Does SetPlayerSkillLevel affect weapon Damage? -
Dokins - 27.02.2013
title says all?
Re : Does SetPlayerSkillLevel affect weapon Damage? -
yusei - 27.02.2013
use OnPlayerTakeDamage callback
PHP код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(issuerid != INVALID_PLAYER_ID)
{
if(weaponid == 34)// id weapon
{
SetPlayerHealth(playerid, 50.0);
if (GetPlayerHealth(playerid,health) < 50.0)
{
SetPlayerHealth(playerid, 0.0);
}
} // two shoot to kill player
}
return 1;
}
Re: Does SetPlayerSkillLevel affect weapon Damage? -
Dokins - 27.02.2013
thanks!!
Re: Does SetPlayerSkillLevel affect weapon Damage? -
Apenmeeuw - 27.02.2013
The answer is yes,
For example:
If you have sawn off shotgun and you shoot with it WITH wep skills then you will shoot double as much then without wep skills, meaning you give twice as much damage too.
AW: Does SetPlayerSkillLevel affect weapon Damage? -
Kwashiorkor - 27.02.2013
@Apenmeeuw: it does not affect the damage per bullet just the amount of ammo you can carry (two weapons) and shoot them at the same time
Re: Does SetPlayerSkillLevel affect weapon Damage? -
Apenmeeuw - 27.02.2013
Thats right, 2 guns give more damage than 1 gun, because it van shoot double as much then.