Help text "says"
#1

Hi,
How can i make so when player text's something, on the end it is "says"
Example:
Player_Name SAYS: blahblahblah
Reply
#2

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;
}
Reply
#3

Yes, but now it sends the default messge too...
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)