How to force NPC connection order?
#1

Hello! Currently, I have 6 NPC's:
pawn Код:
ConnectNPC("[NPC]Jason","tram"); // train driver
ConnectNPC("[NPC]Paul","copdrvr1"); // cop car driver #1
ConnectNPC("[NPC]Ben","copdrvr2"); // cop car driver #2
ConnectNPC("[NPC]Dave","copdrvr3"); // cop car driver #3
ConnectNPC("[NPC]Jack","copdrvr4"); // cop car driver #4
ConnectNPC("[NPC]Ingvar","copdrvr5"); // cop car driver #5
But sometimes, they are connected in wrong order, e.g. train driver gets ID 3.
Is there any sleep command that would force them to connect in proper order?

Thanks.

Edit: I think IsPlayerConnected before connecting new NPC would help, but how to do that?
Reply
#2

with a timer
Reply
#3

oh lol I am dumb. I forgot about timers completely

Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)