Raised This Month: $ Target: $400
 0% 

Can any one edit this code ..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 04-24-2012 , 15:34   Re: Can any one edit this code ..
Reply With Quote #10

First of all, you need to read the link that Moody92 posted above.

BTW Moody92 your wrong about 'there is no need to change the sma', read the link you posted carefully

Quote:
Originally Posted by [B
ConnorMcLeod[/B]]In ML files you still have to use !g, !t and !n, but in plugin, user register_dictionary_colored instead of register_dictionary.
So you need to add/change these to the sma:
PHP Code:
// This is just a comment, add the line below at the first of the sma (after the includes)
#include <colorchat> 
And put the colorchat.inc in the addons\amxmodx\scripting\includes folder.

PHP Code:
// Change this ---->
register_dictionary 

PHP Code:
// To this ------>
register_dictionary_colored 
As it says in the link, !g is for green, !t is for team color (if the player is a T he will see the message in red, if he was a CT he will see it in blue and for last if he was a Spectator then he will see it in white\grey), also, last but not least !n is for normal messages (the yellow color I suppose).

Here are few examples:
Code:
ADMIN_MAP_1 =!g[ Land Of KillerS ] !nADMIN: !tchangelevel !n%s
This message will appear like this for CT's:
[ Land Of KillerS ] ADMIN: changelevel %s

And for T's:
[ Land Of KillerS ] ADMIN: changelevel %s

I'm sorry the yellow color is so bright.

I hope you have understood what I said.

pokemonmaster 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:19.


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