Raised This Month: $ Target: $400
 0% 

Colored text messages


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 05-09-2012 , 10:17   Re: Colored text messages
Reply With Quote #7

Quote:
Originally Posted by feren02 View Post
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.

Last edited by striker07; 05-09-2012 at 10:24.
striker07 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode