#1

how can i connect a npc to the server through filterscript (without adding the functions in gamemode)?
EDIT: driving npc
Reply
#2

Unless you have a filterscript loading the NPC script, the functions are needed in the gamemode to both load/run and communicate with the NPC script.
Reply
#3

If your gamemode involves registering and logging in to be able to spawn etc., then I suggest you add the following line to your login system:
pawn Код:
if(!IsPlayerNPC(playerid))
That way, NPCs will be able to bypass the login.
I've never tried before, but I'm sure you can connect NPCs by using the function ConnectNPC

https://sampwiki.blast.hk/wiki/ConnectNPC
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)