19.07.2016, 12:19
Does the NPC connect & spawn necessarily after each playerm? If so you can just decrease the ID.
Otherwise save a player's VW in a variable and once looking for the playerid of the NPC then put it according to the stored virtual world (in like, pVirtualWorld[MAX_PLAYERS]).
Otherwise save a player's VW in a variable and once looking for the playerid of the NPC then put it according to the stored virtual world (in like, pVirtualWorld[MAX_PLAYERS]).