19.07.2016, 12:14
Quote:
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); Any idea? |
PHP код:
public OnPlayerSpawn(playerid)
{
new worldid = playerid+1;
if(!IsPlayerNPC(playerid))
{
SetPlayerVirtualWorld(playerid, worldid);
//then
if(IsPlayerNPC(playerid) && playerid + 1 = 1)
{
SetPlayerVirtualWorld(playerid, worldid);