19.07.2016, 11:50
Okay, so basically I have no idea how to set the npc's virtual world the same as the player's one.
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?
Код:
public OnPlayerSpawn(playerid) { new worldid = playerid+1; if(!IsPlayerNPC(playerid)) { SetPlayerVirtualWorld(playerid, worldid); //then if(IsPlayerNPC(playerid)) { SetPlayerVirtualWorld(playerid, worldid);
Any idea?