help about text - 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: help about text (
/showthread.php?tid=90192)
help about text -
xCoder - 06.08.2009
xCoder: (xCoder's id) (message)
how can do i when player send a messega with T or F6
Re: help about text -
dice7 - 06.08.2009
pawn Код:
//on top somewhere
new ctext[256];
public OnPlayerText(playerid, text[])
{
GetPlayerName(playerid, cname, sizeof(cname));
format(ctext, sizeof(ctext), "[%d]: %s",playerid, text);
SendPlayerMessageToAll(ctext);
return 0; // <-- IMPORTANT
}
Re: help about text -
UsaBoy91 - 06.08.2009
SendPlayerMessageToAll(ctext);
are you sure ?
SendClientMessageToAll(0xFFFFFFFF,ctext);
Re: help about text -
kaisersouse - 06.08.2009
SendPlayerMessage...not SendClientMEssage. PlayerMessage uses the players color by default