how to get your id after your name in chat? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to get your id after your name in chat? (
/showthread.php?tid=80143)
how to get your id after your name in chat? -
myandyou - 02.06.2009
the titel says the quistion :P
Re: how to get your id after your name in chat? -
Weirdosport - 02.06.2009
That will send a message like this:
Thomas_Conroy (0): Hello
To send one like this:
Thomas_Conroy (0): Hello
Do this:
pawn Код:
public OnPlayerText(playerid, text[])
{
new string[128];
format(string, sizeof(string), "[%d]: %s", playerid, text);
SendPlayerMessageToAll(playerid, string);
return 0;
}
Re: how to get your id after your name in chat? -
harly - 02.06.2009
-Snip-
Got mixed with SendClientMessageToAll.
Rather than SendPlayerMessageToAll