I got a question please. - 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: I got a question please. (
/showthread.php?tid=341628)
I got a question please. -
StyleR - 11.05.2012
Hello,I'm wondering if there is anyway that I can make on my server the Sniper to be like 1 shot=1 kill,If it's possible please somebody tell me.
Re: I got a question please. -
TheDominator - 11.05.2012
http://forum.sa-mp.com/showthread.ph...yerShootPlayer
Re: I got a question please. -
SuperViper - 11.05.2012
Assuming you have 0.3d, use this code:
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(weaponid == 34)
{
SetPlayerHealth(playerid, 0.0);
}
return 1;
}
Re: I got a question please. -
Niko_boy - 11.05.2012
use 0.3d Function better alot then OPSP
https://sampwiki.blast.hk/wiki/OnPlayerGiveDamage
Re: I got a question please. -
TheDominator - 11.05.2012
Never knew that function even existed, yes it's much better than what I suggested