BBCODE in SAMP
#1

Hallo, I asking how to create in OnPlayerText BBCODE
I use {FF000}** hi hi **

Result
Henryk what's up ** hi hi **
Reply
#2

You can use a string replace function everytime {FF0000} is used in chat.
Reply
#3

Try something like that:
PHP код:
new string[256], name[MAX_PLAYER_NAME];
GetPlayerName(playeridnamesizeof(name));
format(stringsizeof(string), "%s: %s {FF0000}**hi hi**"nametext); 
SendClientMessageToAll(0xFFFFFFFF,string); 
EDITED: Don't forget return 0; in Your OnPlayerText callback!
Reply
#4

The more I like something like it is on the forum

So I write something in the chat Example:

Will you help me? < smile >

And it looks so:

Will you help me? * smile *
Reply
#5

Quote:
Originally Posted by Auri
Посмотреть сообщение
The more I like something like it is on the forum

So I write something in the chat Example:

Will you help me? < smile >

And it looks so:

Will you help me? * smile *
I know what you meant, but that needs scripting. You should find " [COLOR] " tags in their message and then appy the color.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)