mardi 19 juillet 2016

Player vs NPC's VW, rep+

Okay, so basically I have no idea how to set the npc's virtual world the same as the player's one.

Code:

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?

Let's block ads! (Why?)



Player vs NPC's VW, rep+

Aucun commentaire:

Enregistrer un commentaire