19.07.2016, 12:31
Quote:
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]). |
Seems like it is working with 2 players, but I'm kind of afraid how it is going to react while many players are spawning at the same time.