NPC's Problem
#1

I did 3 NPC buses in my server but when i join they leave the server. Any one knows why ? Thanks
Reply
#2

make sure u have
pawn Код:
if(IsPlayerNPC(playerid)) return 1;
under Ongamemodeinit.....onplayerspawn and on playerrecquestclass if u got it
Reply
#3

After some time (few seconds), they quit.
Reply
#4

yup the code i gave u should do it

i hate this-->This forum requires that you wait 60 seconds between posts. Please try again in 25 seconds.
Reply
#5

ok let me put it in a great way for u to understand:

Your script is forcing the NPC to login, or you have an anti-cheat / ping kicker that is interfering with your NPC. You can add...
pawn Код:
if(IsPlayerNPC(playerid)) return 1;
... as the first line of any callbacks that bots will use, e.g. OnPlayerRequestClass or OnPlayerRequestSpawn. For an efficient, simple way of excluding NPCs from loops, check out foreach by ******.
Reply
#6

I did that but they still leave. I dont know why.
Reply
#7

make sure u have 'maxnpc 2' + maxnpc's in ur server.cfg.
Reply
#8

Show us your script, server.cfg, something that might help us to HELP you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)