SA-MP Forums Archive
Question about interiors/virtualworld - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Question about interiors/virtualworld (/showthread.php?tid=528819)



Question about interiors/virtualworld - Beckett - 30.07.2014

------


Re: Question about interiors/virtualworld - arko123 - 30.07.2014

What do you mean by hear?


Re: Question about interiors/virtualworld - Clad - 30.07.2014

Yes, They will have the ability to see the Messages.
You can disable them using this.
pawn Код:
stock SendInteriorMessage(playerid,COLOR,message[])
{
    for(new i=0; i<MAX_PLAYERS;i++)
    if(IsPlayerConnected(i))
    {
        if(GetPlayerInterior(playerid) == GetPlayerInterior(i))
        {
                SendClientMessage(i,COLOR,message);
                // Will basicly, Send a message to players with same Interior.
          }
    }
}
pawn Код:
stock SendVirtualWorldMessage(playerid,COLOR,message[])
{
    for(new i=0; i<MAX_PLAYERS;i++)
    if(IsPlayerConnected(i))
    {
        if(GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i))
        {
                SendClientMessage(i,COLOR,message);
                // Will basicly, Send a message to players with same virtual world.
          }
    }
}



Re: Question about interiors/virtualworld - Beckett - 30.07.2014

Thanks.