Custom chat
#3

Quote:
Originally Posted by Karl[NDZ]
Посмотреть сообщение
Hey, i have seen on some servers that they have like their name and id in chat.
Something like this: Karl[NDZ] [0].
If someone could tell me how to make this or give me a link to a tutorial to do it, because i dont know what it is called, then i would be really glad!
Replace this with your normal OnPlayerText:
Код:
public OnPlayerText(playerid, text[])
{
	new string[256], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
	format(string,sizeof(string),"%s(%d): %s",name,playerid,text);
	SendClientMessageToAll(0xFFFFFFFF,string);
	return 0;

}
Reply


Messages In This Thread
Custom chat - by Karl[NDZ] - 19.03.2012, 15:30
Re: Custom chat - by Richie© - 19.03.2012, 15:34
Re: Custom chat - by Roel - 19.03.2012, 15:34
Re: Custom chat - by Littlehelper - 19.03.2012, 15:35
Re: Custom chat - by Karl[NDZ] - 19.03.2012, 15:49
Re: Custom chat - by Roel - 19.03.2012, 15:55
Re: Custom chat - by Karl[NDZ] - 19.03.2012, 15:58
Re: Custom chat - by Roel - 19.03.2012, 16:05
Re: Custom chat - by new121 - 19.03.2012, 16:13
Re: Custom chat - by Roel - 19.03.2012, 16:24

Forum Jump:


Users browsing this thread: 3 Guest(s)