[HELP] Adding ID's INTO CHAT!! PLEASE HELP
#8

Quote:
Originally Posted by Gozerr
pawn Код:
public OnPlayerText(playerid, text[])
{
new str[160];
new name[32];
GetPlayerName(playerid, name, sizeof(name));
format(str, sizeof(str), "%s(%d): %s", name, playerid, text);
SendClientMessageToAll(0xFFFFFFAA, str); // Replace the 0xFFFFFFAA (White) with some team color checking
return 0;
}
the playername will also be white, but if it is what he wants.. ok ;p

Quote:
Originally Posted by [HiC
TheKiller ]
pawn Код:
public OnPlayerText(playerid, text[])
{
  new str[9];
  format(str, 9, "(%d) ", playerid);
  strins(text, str, 0);  
  return 1;
}
1234 posts :P.
ye also a good method..
Reply


Messages In This Thread
[HELP] Adding ID's INTO CHAT!! PLEASE HELP - by will_92 - 02.03.2010, 05:00
Re: [HELP] Adding ID's INTO CHAT!! PLEASE HELP - by Gamer_Z - 02.03.2010, 05:10
Re: [HELP] Adding ID's INTO CHAT!! PLEASE HELP - by will_92 - 02.03.2010, 05:39
Re: [HELP] Adding ID's INTO CHAT!! PLEASE HELP - by will_92 - 02.03.2010, 05:39
Re: [HELP] Adding ID's INTO CHAT!! PLEASE HELP - by [HiC]TheKiller - 02.03.2010, 05:50
Re: [HELP] Adding ID's INTO CHAT!! PLEASE HELP - by ev0lution - 02.03.2010, 05:54
Re: [HELP] Adding ID's INTO CHAT!! PLEASE HELP - by Gozerr - 02.03.2010, 05:58
Re: [HELP] Adding ID's INTO CHAT!! PLEASE HELP - by Gamer_Z - 02.03.2010, 06:07

Forum Jump:


Users browsing this thread: 1 Guest(s)