Raised This Month: $ Target: $400
 0% 

Coloring (print_chat)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 10-25-2005 , 04:29  
Reply With Quote #1

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,g_iMsgSayText public plugin_init() {     register_plugin("Censorship","1.1","Evaldas")     register_clcmd("say","swearFilter")     register_clcmd("say_team","swearFilter")         g_iMsgSayText = get_user_msgid("SayText")     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 )         {             print_green(id,"Prasome laikytis cenzuros ir nevartoti draudziamu issireiskimu!")             return PLUGIN_HANDLED         }    }        return PLUGIN_CONTINUE } public print_green(id,msg[]) {     message_begin( MSG_ONE, g_iMsgSayText, {0,0,0}, id )     write_byte  ( 3 )     write_string( msg )     message_end () }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Reply



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