SA-MP Forums Archive
[Help]Guns Effect - 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: [Help]Guns Effect (/showthread.php?tid=162252)



[Help]Guns Effect - -Xan- - 22.07.2010

i want to make a tazer when a player gets hit by silenced pistol

and i can think on making some orther effects on orther weapons,

does someone know how to define when a player gets hit by a gun in script?


Re: [Help]Guns Effect - Carlton - 22.07.2010

Search, this has been asked plenty of times.


Re: [Help]Guns Effect - -Xan- - 22.07.2010

i found this but it doesnt show when a player gets hit

pawn Код:
public OnPlayerKeyStateChange(playerid, oldkeys, newkeys)
{
    if((newkeys & KEY_FIRE) && GetPlayerWeapon == some weapon id)    
{
        //tazer cmd    
}
}
i tried searching but in 200 threads only 1 is about this but i dont understand it