Help with chat
#9

pawn Код:
public OnPlayerText(playerid, text[])
{
    new name[MAX_PLAYERS];
     new str[256];
    GetPlayerName(playerid,name,sizeof(name));
    format(str,sizeof(str),"-> World Chat(%s): %s", name, cmdtext);
    SendMessageToMyWorld(0xFFFF00AA, str) 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);
    }
  }
}
forget the onplayercommandtext
OnPlayerTExt is for the Chat
CommandText is only for commands

didn't test
if it gives errors tell me ill try to fox em then
~SaiBerFun
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)