18.05.2009, 05:57
How do I add a playerid in the chatbox, like so:
"(0)Remi: Test"
It must be possible, i've seen it on more servers.
"(0)Remi: Test"
It must be possible, i've seen it on more servers.
Originally Posted by Remi-X
How do I add a playerid in the chatbox, like so:
"(0)Remi: Test" It must be possible, i've seen it on more servers. |
GetPlayerName format SetPlayerName SendPlayerMessageToAll SetPlayerName // back to original name
Originally Posted by OmeRinG
In the public "OnPlayerText":
new formattext[256]; format(formattext,sizeof(formattext),"%s (ID: %d)",text,playerid); SendPlayerMessage(playerid,formattext); return 0; |
Originally Posted by Karlip
+ your little snippet will only work for you,since you have another SendClientMessageToAll defined.
|
Originally Posted by OmeRinG
and MenaceX, I used 256 cells because this is a player message and it should have maximum cells, so player's messages are not cut in the end
|
Originally Posted by OmeRinG
and MenaceX, I used 256 cells because this is a player message and it should have maximum cells, so player's messages are not cut in the end
|
Originally Posted by MenaceX^
I'd rather done it with SendClientMessageToAll, also I still don't get why you use 256 cells.
Added due to Omering's reply: Quote:
Though it's a wasted array - once your server has many players it will be lagging as hell. |