Help text "says" - 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: Help text "says" (
/showthread.php?tid=543458)
Help text "says" -
Fjclip99 - 26.10.2014
Hi,
How can i make so when player text's something, on the end it is "says"
Example:
Player_Name SAYS: blahblahblah
Re: Help text "says" -
Fj0rtizFredde - 26.10.2014
You mean something like this?
pawn Код:
public OnPlayerText(playerid, text[])
{
new pText[128 + MAX_PLAYER_NAME], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, 24);
format(pText, sizeof (pText), "%s SAYS: %s", pName, text);
SendClientMessageToAll(-1, pText);
return 0;
}
Re: Help text "says" -
Fjclip99 - 26.10.2014
Yes, but now it sends the default messge too...
Re: Help text "says" -
Anzipane - 26.10.2014
Quote:
Originally Posted by Fjclip99
Yes, but now it sends the default messge too...
|
Make sure you use 'return 0' at the end of the
OnPlayerText callback.