SA-MP Forums Archive
[Need a lil help] Kick Gun - 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: [Need a lil help] Kick Gun (/showthread.php?tid=361192)



[Need a lil help] Kick Gun - UnknownGamer - 20.07.2012

public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)

When you punch the person when you have the kick-gun out, they get kicked.

How would I make it so that they only get kicked when they get shot with ID Gun 33.


Re: [Need a lil help] Kick Gun - Cypress - 20.07.2012

pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
    if(GetPlayerWeapon(issuerid) == 33) return Kick(issuerid);
    return 1;
}
This will kick the issuerid who shot a playerid with weapon id 33.


Re: [Need a lil help] Kick Gun - UnknownGamer - 20.07.2012

Ok that worked, Thankyou to everyone who was helped me with this Kickgun Script. Amazing, Thanks !