[HELP] show id in chat
#3

Quote:
Originally Posted by ColdIce
Посмотреть сообщение
It's no doubt that I will be corrected. But what the heck

pawn Код:
for(new i = 1; i < MAX_CHAT_LINES-1; i++)
    Chat[i] = Chat[i+1];
    new ChatSTR[128];
    GetPlayerName(playerid,ChatSTR,sizeof(ChatSTR));
    format(ChatSTR,128,"[CHAT]%s: %s",ChatSTR, text[0]);
    Chat[MAX_CHAT_LINES-1] = ChatSTR;
    return 1;
}
What is this? i dont even...

pawn Код:
public OnPlayerText(playerid, text[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            new string[128];
            new temp[48];
            GetPlayerName(playerid, temp, sizeof(temp));
            format(string, sizeof(string), "%s (%i) says:{FFFFFF} %s", temp, playerid, text);
            SendClientMessage(i, 0xFFFF00AA, string);
        }
    }
    return 0;
}
Reply


Messages In This Thread
[HELP] show id in chat - by [ITS]StatickShock - 13.06.2011, 22:55
Re: [HELP] show id in chat - by ColdIce - 13.06.2011, 23:02
Re: [HELP] show id in chat - by PrawkC - 13.06.2011, 23:29
Re: [HELP] show id in chat - by ColdIce - 13.06.2011, 23:33
Re: [HELP] show id in chat - by Laronic - 13.06.2011, 23:33
Re: [HELP] show id in chat - by randomkid88 - 14.06.2011, 01:36
Re: [HELP] show id in chat - by Tee - 14.06.2011, 02:00
Re: [HELP] show id in chat - by [ITS]StatickShock - 14.06.2011, 16:53
Re: [HELP] show id in chat - by [ITS]StatickShock - 14.06.2011, 17:02

Forum Jump:


Users browsing this thread: 3 Guest(s)