SA-MP Forums Archive
Attacking NPC - 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: Attacking NPC (/showthread.php?tid=165804)



Attacking NPC - Giotis11 - 06.08.2010

I need the npc to attack a player if the player take out the gun how i would do this


Re: Attacking NPC - selten98 - 06.08.2010

pawn Code:
OnPlayerKeyStateChange(playerid,etc)// the key with the change of weapons
{
  //NPC ATTACKING ACTION
}