[Help] With OnPlayerText
#4

Quote:
Originally Posted by Paladin
Is this what you mean:

Код:
public OnPlayerText(playerid, text[])
{
new string[128];
new pname[18];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s: %s (2134)", pname, text);
SendClientMessageToAll([COLOR_HERE], string);
return 0;
}
The return 0; is very important, without it it will allow you're original text to be said too.

It's not tested, so not sure if it works
I had that before, but then it's so boring because the chat is all the same color.

Quote:
Originally Posted by zozo
Use the strcat and SendPlayerMessage
Trying now :P

Both, thx for the reply on my question
Reply


Messages In This Thread
[Help] With OnPlayerText - by [nl]daplayer - 09.05.2009, 13:10
Re: [Help] With OnPlayerText - by Paladin - 09.05.2009, 13:44
Re: [Help] With OnPlayerText - by Nubotron - 09.05.2009, 13:52
Re: [Help] With OnPlayerText - by [nl]daplayer - 09.05.2009, 14:45
Re: [Help] With OnPlayerText - by Bodo4you - 09.05.2009, 14:51
Re: [Help] With OnPlayerText - by FUNExtreme - 09.05.2009, 15:00

Forum Jump:


Users browsing this thread: 1 Guest(s)