increase 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: increase weapon damage (
/showthread.php?tid=248584)
increase weapon damage -
cruising - 14.04.2011
Hello!
I have seen some script who increase the weapon damage to players, is it possible to increase the damage for example hunter and rustler to?
Re: increase weapon damage -
Ben7544 - 14.04.2011
Use OnPlayerShootPlayer include.
Here's code example which raises the sniper's damage :
Код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
new Float:H[2];
GetPlayerHealth(Target, H[0]);
GetPlayerArmour(Target,H[1]);
if(GetPlayerWeapon(Shooter) == 34)
{
if(H[1] > 0) return SetPlayerArmour(Target,0);
SetPlayerHealth(Target, H[0]-100);
FadeColorForPlayer(Target,255,0,0,0,255,0,0,255,100,10);
}
Re: increase weapon damage -
The_Moddler - 14.04.2011
Not possible on cars.
Re: increase weapon damage -
cruising - 15.04.2011
Quote:
Originally Posted by The_Moddler
Not possible on cars.
|
hmm to bad