23.10.2009, 10:08
Hello! Currently, I have 6 NPC's:
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?
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
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?
