Player vs NPC's VW, rep+
#1

Okay, so basically I have no idea how to set the npc's virtual world the same as the player's one.
Код:
public OnPlayerSpawn(playerid)
{
    new worldid = playerid+1;
		if(!IsPlayerNPC(playerid))
		{
                      SetPlayerVirtualWorld(playerid, worldid);

//then
	if(IsPlayerNPC(playerid))
	{
		SetPlayerVirtualWorld(playerid, worldid);
In this case NPC's vw will be its playerid+1, but I need to set it to the spawned player's one.
Any idea?
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: 1 Guest(s)