Change chatting way
#1

Hi, I want to modify the chat system.
It standard says 'Superthijs: blahblah' when I type something.
Is it possible to modify it, like it will say 'Superthijs says: blahblah' or something?
Reply
#2

Yes, you can. You need to learn to script though.
Reply
#3

I can script. But I don't know how to do this.
Reply
#4

Return 0 in OnPlayerText callback and send the message in your own format (format, SendClientMessageToAll). Simple as that.
Reply
#5

Код:
public OnPlayerText(playerid, text[])
{
	new string[256], pname[MAX_PLAYER_NAME], color;
	color = GetPlayerColor(playerid);
	GetPlayerName(playerid, pname, sizeof(pname));
	format(string, sizeof(string), "{%x}%s {ffffff}said: %s", color, pname ,text);
	SendClientMessageToAll(0xffffffff, string);
	return 0;
}
Here.
Reply
#6

Thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)