NPCs not working
#1

Sry for this Post but iam a noob a need help^^

I have this GM
http://forum.sa-mp.com/index.php?topic=122841.0

an when i add NPC filterscripts


the NPCs are joining and disconnection everytime

What is the Problem?
Reply
#2

[20:56:46] Incoming connection: 127.0.0.1:61783
[20:56:46] [npc:join] TrainDriverLS has joined the server (0:127.0.0.1)
[20:56:46] NPC: Connection from 127.0.0.1 is allowed.
[20:56:46] [npcart] TrainDriverLS has left the server (0:2)
[20:56:46] Incoming connection: 127.0.0.1:61785
[20:56:46] [npc:join] TrainDriverSF has joined the server (1:127.0.0.1)
[20:56:46] NPC: Connection from 127.0.0.1 is allowed.
[20:56:46] [npcart] TrainDriverSF has left the server (1:2)
[20:56:46] Incoming connection: 127.0.0.1:61784
[20:56:46] [npc:join] TrainDriverLV has joined the server (2:127.0.0.1)
[20:56:46] NPC: Connection from 127.0.0.1 is allowed.
[20:56:46] [npcart] TrainDriverLV has left the server (2:2)
[20:56:46] Incoming connection: 127.0.0.1:61786
[20:56:46] [npc:join] PilotLV has joined the server (3:127.0.0.1)
[20:56:46] NPC: Connection from 127.0.0.1 is allowed.
[20:56:46] [npcart] PilotLV has left the server (3:2)
[20:56:46] Incoming connection: 127.0.0.1:61787
[20:56:46] [npc:join] PilotSF has joined the server (4:127.0.0.1)
[20:56:46] NPC: Connection from 127.0.0.1 is allowed.
[20:56:46] [npcart] PilotSF has left the server (4:2)
[20:56:46] Incoming connection: 127.0.0.1:61788
[20:56:46] [npc:join] PilotLS has joined the server (5:127.0.0.1)
[20:56:46] NPC: Connection from 127.0.0.1 is allowed.
[20:56:46] [npcart] PilotLS has left the server (5:2)
[20:56:46] Incoming connection: 127.0.0.1:61789
[20:56:46] [npc:join] Train has joined the server (6:127.0.0.1)
[20:56:46] NPC: Connection from 127.0.0.1 is allowed.
[20:56:46] [npcart] Train has left the server (6:2)
[20:56:46] Incoming connection: 127.0.0.1:61790
[20:56:46] [npc:join] Boater has joined the server (7:127.0.0.1)
[20:56:46] NPC: Connection from 127.0.0.1 is allowed.
[20:56:46] [npcart] Boater has left the server (7:2)
[20:56:46] Incoming connection: 127.0.0.1:61792
[20:56:46] [npc:join] Beagle has joined the server (8:127.0.0.1)
[20:56:46] NPC: Connection from 127.0.0.1 is allowed.
[20:56:46] [npcart] Beagle has left the server (8:2)
[20:56:46] Incoming connection: 127.0.0.1:61794
[20:56:46] [npc:join] Tom has joined the server (11:127.0.0.1)
[20:56:46] NPC: Connection from 127.0.0.1 is allowed.
[20:56:46] [npcart] Tom has left the server (11:2)
[20:56:46] Incoming connection: 127.0.0.1:61791
[20:56:46] [npc:join] Coach has joined the server (9:127.0.0.1)
[20:56:46] NPC: Connection from 127.0.0.1 is allowed.
[20:56:46] [npcart] Coach has left the server (9:2)
[20:56:46] Incoming connection: 127.0.0.1:61793
[20:56:46] [npc:join] Mike has joined the server (10:127.0.0.1)
[20:56:46] NPC: Connection from 127.0.0.1 is allowed.
[20:56:46] [npcart] Mike has left the server (10:2)
[20:56:46] Incoming connection: 127.0.0.1:61795
[20:56:46] [npc:join] Johnson has joined the server (12:127.0.0.1)
[20:56:46] NPC: Connection from 127.0.0.1 is allowed.
[20:56:46] [npcart] Johnson has left the server (12:2)
[20:56:46] Incoming connection: 127.0.0.1:61796
[20:56:46] [npc:join] Andrew has joined the server (13:127.0.0.1)
[20:56:46] NPC: Connection from 127.0.0.1 is allowed.
[20:56:46] [npcart] Andrew has left the server (13:2)
[20:56:46] Incoming connection: 127.0.0.1:61804
[20:56:46] [npc:join] Sarah has joined the server (1:127.0.0.1)
[20:56:46] NPC: Connection from 127.0.0.1 is allowed.
[20:56:46] [npcart] Sarah has left the server (1:2)
[20:56:46] Incoming connection: 127.0.0.1:61805
[20:56:46] [npc:join] Roy has joined the server (2:127.0.0.1)
[20:56:46] NPC: Connection from 127.0.0.1 is allowed.
[20:56:46] [npcart] Roy has left the server (2:2)
[20:56:46] Incoming connection: 127.0.0.1:61797
[20:56:46] Incoming connection: 127.0.0.1:61798
[20:56:46] [npc:join] Mathew has joined the server (14:127.0.0.1)
[20:56:46] NPC: Connection from 127.0.0.1 is allowed.
[20:56:46] [npcart] Mathew has left the server (14:2)
[20:56:46] [npc:join] Anderson has joined the server (15:127.0.0.1)
[20:56:46] NPC: Connection from 127.0.0.1 is allowed.
[20:56:46] [npcart] Anderson has left the server (15:2)
[20:56:46] Incoming connection: 127.0.0.1:61803
[20:56:46] [npc:join] Michael has joined the server (0:127.0.0.1)
[20:56:46] NPC: Connection from 127.0.0.1 is allowed.
[20:56:46] [npcart] Michael has left the server (0:2)
[20:56:47] Incoming connection: 127.0.0.1:61799
[20:56:47] [npc:join] Davidson has joined the server (16:127.0.0.1)
[20:56:47] NPC: Connection from 127.0.0.1 is allowed.
[20:56:47] [npcart] Davidson has left the server (16:2)
[20:56:47] Incoming connection: 127.0.0.1:61800
[20:56:47] [npc:join] Moralles has joined the server (17:127.0.0.1)
[20:56:47] NPC: Connection from 127.0.0.1 is allowed.
[20:56:47] [npcart] Moralles has left the server (17:2)
[20:56:47] Incoming connection: 127.0.0.1:61801
[20:56:47] [npc:join] Kelroy has joined the server (18:127.0.0.1)
[20:56:47] NPC: Connection from 127.0.0.1 is allowed.
[20:56:47] [npcart] Kelroy has left the server (18:2)
[20:56:47] Incoming connection: 127.0.0.1:61802
[20:56:47] [npc:join] Yards has joined the server (19:127.0.0.1)
[20:56:47] NPC: Connection from 127.0.0.1 is allowed.
[20:56:47] [npcart] Yards has left the server (19:2)
Reply
#3

They get kicked, perhaps because they don't login, so make sure you have got an exception for them in the gamemode.
Reply
#4

ok that make sense

and how can i make this?
i have not really the know how


I would be very grateful when someone can help me
Reply
#5

Quote:

My NPC leaves my server after it joins
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

ok i make this

Thanks for Help ViceCity

you are really one of the best here and always helps some noobs like me^^

Thank You
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)