NPCs/Bots walking and shoot players ? - 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: NPCs/Bots walking and shoot players ? (
/showthread.php?tid=612389)
NPCs/Bots walking and shoot players ? -
Leonardo_Gonzalez - 17.07.2016
Hi,
Today i would like to do npcs armed walking in an area and who shoot the players when they are close to them.
But I don't know how to do this :/
I know how to create npcs walking but I don't know how to give them a gun and make them shoot players
Sorry for my bad english ^^
Thank you in advance for your answers
Re: NPCs/Bots walking and shoot players ? -
GangstaSunny - 17.07.2016
Hello Leonardo_Gonzalez,
i recommend to use a plugin (for example: FCNPC).
NPC's do also have IDs. So you can use "GivePlayerWeapon(npcid, weaponid, ammunation);".