Raised This Month: $ Target: $400
 0% 

Coloring (print_chat)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Evaldas
Member
Join Date: Jul 2005
Location: Lithuania
Old 10-25-2005 , 02:40   Coloring (print_chat)
Reply With Quote #1

Hellp, here I have a quaesion about coloring text (print_chat), using ^x03. I haven't found no manual about that. How shoult I use it?

Code:
#include <amxmodx> #define MAX_WORDS 64 #define MESSAGES   1 new g_wordList[] = "addons/amxmodx/configs/badwords.ini" new g_swears[MAX_WORDS][32] new g_swearsNum public plugin_init() {     register_plugin("Censorship","1.1","Evaldas")     register_clcmd("say","swearFilter")     register_clcmd("say_team","swearFilter")         if (file_exists(g_wordList))     {       new len, i = 0       while( read_file(g_wordList,i++,g_swears[g_swearsNum],31,len) )         if (len) ++g_swearsNum     } } public swearFilter(id) {    new said[128]    read_args(said,127)    for (new i=0; i<g_swearsNum; ++i)    {         if ( containi(said,g_swears[i]) != -1 )         {             client_print(id,print_chat, "Prasome laikytis cenzuros ir nevartoti draudziamu issireiskimu!" ) <-- I believe, I should put the ^x03 somewhere here!             return PLUGIN_HANDLED         }    }        return PLUGIN_CONTINUE }
__________________
Evaldas 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 23:58.


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