Player 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)
+--- Thread: Player Chat (
/showthread.php?tid=495293)
Player Chat -
Clavier911 - 16.02.2014
Hello to all
This is when a player speaks I want that there's but how?
Clavier911 (1): Hello worl
Sorry for my english
Re: Player Chat -
Sledgehammer - 16.02.2014
You want it global? If you do, I'd suggest adding this under onplayertext.
pawn Код:
public OnPlayerText(playerid, text[])
{
new string[126], name[30];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s (%d): %s", name, playerid, text);
SendClientMessageToAll(-1, string);
return 0;
}
(+ rep if I helped)
Re: Player Chat -
Necip - 16.02.2014
I think he wants the ID to be shown. Can you explain what you want better?