Help with chat
#7

This is just a total guess. Don't know if it will work but give it a try. :P

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    new name[MAX_PLAYERS];
    GetPlayerName(playerid,name,sizeof(name));
    format(string,sizeof(string),"-> World Chat(%s): %s", name, cmdtext);
    SendMessageToMyWorld(0xFFFF00AA, string) return true;
    return false;
}
pawn Код:
SendMessageToMyWorld(color, text[])
{

    new world;
    world = GetPlayerVirtualWorld(playerid);
  for (new i; i < MAX_PLAYERS; i++)
  {
    if (world == GetPlayerVirtualWorld(i))
    {
            SendClientMessage(i, color, text);
    }
  }
}
Let me know.
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: 2 Guest(s)