Player vs NPC's VW, rep+
#6

PHP код:
if(IsPlayerNPC(playerid))

SetPlayerVirtualWorld(playeridplayerid);

Like that? I don't know how you spawn NPCs but I'm assuming when 1 player connects you connect a NPC for them, right?
if not you should make an array keeping a list of which NPC is in which player's world, when a player connects assign one of the NPCs to the player.
Reply


Messages In This Thread
Player vs NPC's VW, rep+ - by cdoubleoper - 19.07.2016, 11:50
Re: Player vs NPC's VW, rep+ - by GuyB790 - 19.07.2016, 12:06
Re: Player vs NPC's VW, rep+ - by cdoubleoper - 19.07.2016, 12:12
Re: Player vs NPC's VW, rep+ - by Dayrion - 19.07.2016, 12:14
Re: Player vs NPC's VW, rep+ - by GuyB790 - 19.07.2016, 12:19
Re: Player vs NPC's VW, rep+ - by PrO.GameR - 19.07.2016, 12:27
Re: Player vs NPC's VW, rep+ - by cdoubleoper - 19.07.2016, 12:31
Re: Player vs NPC's VW, rep+ - by GuyB790 - 19.07.2016, 12:45

Forum Jump:


Users browsing this thread: 2 Guest(s)