Quote:
Originally Posted by feren02
I just have said. Not in .sma files but in .ini files......... What I uploaded are related files:
1. .SMA file = the file where the .ini file is based and gets functions
2. .INI file = the file where I input the commands I want to have in my server in simple way because it already gets the functions from the .SMA file.
My question is, how can I put colored text messages using the .INI file but the script/function will come from the .SMA file so that when I put [green] [/green] in the .INI file, i will get a colored text chat in-game.
|
I dont think you can put colors on your server messages with php code using a .ini file,
bazhenov93 is right.
download a colorchat include or strip a colorchat stock from an existing plugin into an include yourself. I recommend the colorprint from pastout's jailbreakmod. It is very good and can display multiple colors (green, team based red, blue) and is user friendly.
you can simply use his stock in the sma itself or if you use a plugin that uses a dictonary then you can put the colors in the dictonary itself.
a lil example:
In the script:
PHP Code:
//without using a dictonary:
fnColorPrint(id, "sentence starts in default yellow ^2blue/red or teamcolor(not sure) ^3blue/red or teamcolor (not sure) ^4green text ^1yellow text ")
//with dictonary:
fnColorPrint(id, "%L", LANG_SERVER, "TESTLINE", '^4', '^1');
Code:
//inside the dictonary (.txt):
TESTLINE = %cGreen text %cYellow Text.