Players getting same message when in same interior and virtual world.
#4

Make your own function using stock. SOmething like SendIntMessage like this one:
PHP код:
stock SendIntMessage(playerid,COLOR,message[])
{
    for(new 
i=0i<MAX_PLAYERS;i++)
    if(
IsPlayerConnected(i))
    {
        if(
GetPlayerInterior(playerid) == GetPlayerInterior(i))
        {
            if(
GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i))
            {
                
SendClientMessage(i,COLOR,message);
            }
        }
    }

This one will send message to all players in same interior and virtual world as sender.

EDIT: Wait. This might wont work
Reply


Messages In This Thread
Players getting same message when in same interior and virtual world. - by Jack_Leslie - 10.10.2011, 10:19
Re: Players getting same message when in same interior and virtual world. - by [MG]Dimi - 10.10.2011, 10:21
Re: Players getting same message when in same interior and virtual world. - by Jack_Leslie - 10.10.2011, 10:23
Re: Players getting same message when in same interior and virtual world. - by [MG]Dimi - 10.10.2011, 10:28

Forum Jump:


Users browsing this thread: 1 Guest(s)