chat help!
#5

Quote:
Originally Posted by DarkKillerWithPride<3
Посмотреть сообщение
should work:
pawn Код:
public OnPlayerText(playerid,text[])
{
    new PlayerName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,PlayerName,MAX_PLAYER_NAME);
    format(text,128,"%s Says: %s",PlayerName,text);
    SendClientMessageToAll(0x00E6E6FF,text);
    return 1;
}
Wouldn't it send double message?
pawn Код:
#include <a_samp>

#define COLOR_NAME  "{FF0000}" //this one is red. You add here you HEX color code
#define COLOR_TEXT  "{00FF00}" //this one is green which means player's text would be green. Same, chnage it with HEX color code

public OnPlayerText(playerid,text[])
{
    new PlayerName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,PlayerName,MAX_PLAYER_NAME);
    format(text,128,""COLOR_NAME"%s(%d) says: "COLOR_TEXT"%s",PlayerName,text);
    SendClientMessageToAll(0x00E6E6FF,text);
    return 0;
}
Untested. Should work.
Reply


Messages In This Thread
chat help! - by Dan_Barocu - 04.01.2012, 15:18
Re: chat help! - by DarkKillerWithPride<3 - 04.01.2012, 15:23
Re: chat help! - by Dan_Barocu - 04.01.2012, 15:26
Re: chat help! - by DarkKillerWithPride<3 - 04.01.2012, 15:35
Re: chat help! - by [MG]Dimi - 04.01.2012, 15:40
Re: chat help! - by Dan_Barocu - 04.01.2012, 16:15
Re: chat help! - by DarkKillerWithPride<3 - 04.01.2012, 16:16
Re: chat help! - by Dan_Barocu - 04.01.2012, 16:21
Re: chat help! - by [ABK]Antonio - 04.01.2012, 16:24
Re: chat help! - by [MG]Dimi - 04.01.2012, 16:24

Forum Jump:


Users browsing this thread: 1 Guest(s)