Help with chat
#1

pawn Код:
new
    world = GetPlayerVirtualWorld(playerid);
  for (new i; i < MAX_PLAYERS; i++)
  {
    if (world == GetPlayerVirtualWorld(i))
    {
      SendPlayerMessageToPlayer(i, playerid, text);
    }
  }
OK, I want to limit chat to people in worlds. Now saying that world 0 is the main world everybody in that world should be able to see chat from everybody in that world, they should not see chat from people in other virtual worlds and the people in those worlds should not see chat from any other worlds.

If I use the above code, it repeats everything twice in mainchat. Help?
Reply


Messages In This Thread
Help with chat - by ded - 21.09.2009, 19:49
Re: Help with chat - by xCoder - 22.09.2009, 08:19
Re: Help with chat - by ded - 22.09.2009, 09:00
Re: Help with chat - by Abernethy - 22.09.2009, 09:02
Re: Help with chat - by ded - 22.09.2009, 09:06
Re: Help with chat - by ded - 23.09.2009, 20:48
Re: Help with chat - by member - 23.09.2009, 21:11
Re: Help with chat - by ded - 23.09.2009, 21:41
Re: Help with chat - by saiberfun - 23.09.2009, 21:51
Re: Help with chat - by ded - 23.09.2009, 21:59

Forum Jump:


Users browsing this thread: 1 Guest(s)