SA-MP Forums Archive
Multiple NPCs using 2 npcmodes? - 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: Multiple NPCs using 2 npcmodes? (/showthread.php?tid=132333)



Multiple NPCs using 2 npcmodes? - Programie - 07.03.2010

Hi,

Is it possible to use 2 npcmodes (on foot and in vehicle) to connect all NPCs?
I want to add a few NPCs driving with a vehicle, but the codes of every NPC mode is the same.
I tried to use the NPC name as the recording name, but every time the NPC disconnects with a timeout.

Example: I have a NPC called "TaxiDriver". Then I want to call the "TaxiDriver.rec" script.
The next NPC is "TrainDriver". Then I want to call the "TrainDriver.rec" script.

But I don't want to write a script for every NPC.


Is it possible?