SA-MP Forums Archive
Fire rate - 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: Fire rate (/showthread.php?tid=531801)



Fire rate - Brys - 14.08.2014

Hello,i Can make a gun fire rate like just the sniper,1 shot kills ?


Re: Fire rate - Stinged - 14.08.2014

pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart)
{
    if (weaponid == WEAPON_SNIPER)
    {
        SetPlayerHealth(damagedid, 0);
    }
    return 1;
}