In Interior - Remove Player on map
#1

Edited... fixed.
Reply
#2

Try this:

https://sampwiki.blast.hk/wiki/SetPlayerVirtualWorld
https://sampwiki.blast.hk/wiki/Function:SetPlayerInterior

https://sampwiki.blast.hk/wiki/GetPlayerInterior
https://sampwiki.blast.hk/wiki/GetPlayerVirtualWorld
Reply
#3

Yes I've read those but I have no clue what to put add and combine. xD
Reply
#4

Try using OnPlayerInteriorChange like this:

pawn Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
    SetPlayerVirtualWorld(playerid, newinteriorid);
    return 1;
}
Reply
#5

Quote:
Originally Posted by OPremium
Посмотреть сообщение
Try using OnPlayerInteriorChange like this:

pawn Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
    SetPlayerVirtualWorld(playerid, newinteriorid);
    return 1;
}
Added some more to that so the player gets back to the right world when the player leaves the interior. This is not tested but i believe it works.
pawn Код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
    if(GetPlayerVirtualWorld(playerid) == 0)
    {
        SetPlayerVirtualWorld(playerid, 1+playerid);//sets the player in world 1 then + the players id. so no other players will ever see eachother on the map.
    }
    else
    {
        SetPlayerVirtualWorld(playerid, 0);
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)