SA-MP Forums Archive
Knife problem - 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: Knife problem (/showthread.php?tid=558696)



Knife problem - Dusan01 - 18.01.2015

Hi guys im using FCNPC plugin for NPC and how can i make to NPC cant be knifed?


Re: Knife problem - nezo2001 - 18.01.2015

I don't know how to work with npc well but i think
UnderOnPlayerTakeDamage
PHP код:
if(IsPlayerNPC && GetPlayerWeapon(issuerid) == 4)
{
return 
0;

I think !!!