Posts: 1,047
Threads: 23
Joined: Jun 2009
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..