Raised This Month: $ Target: $400
 0% 

NEED A CODE


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pepe.argento
Member
Join Date: Jul 2008
Old 08-02-2008 , 13:41   NEED A CODE
Reply With Quote #1

I need a code for this:
someone says a word that I choose, and the plug replaced by a text that I want.
For example, someone says XJ and replaced the plug XJ SPAM.
Someone writes XJ but in the chat look the text "SPAM"
__________________
Sry for my bad inglish ... I Tandil (argentina)
Pepe.argento is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-02-2008 , 15:04   Re: NEED A CODE
Reply With Quote #2

Use a swear filter plugin.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Pepe.argento
Member
Join Date: Jul 2008
Old 08-02-2008 , 15:55   Re: NEED A CODE
Reply With Quote #3

I need a code... no a plugin for that.. a code.
__________________
Sry for my bad inglish ... I Tandil (argentina)
Pepe.argento is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 08-02-2008 , 16:27   Re: NEED A CODE
Reply With Quote #4

Hmm , try to explain better what you want . I dont understand it quite good .
You can always download the source code of the spam filter
__________________
I am out of order!
grimvh2 is offline
[X]-RayCat
Senior Member
Join Date: Sep 2006
Old 08-02-2008 , 19:40   Re: NEED A CODE
Reply With Quote #5

Code:
#include <amxmodx>   public plugin_init() {      register_plugin("Spamblock", "1.0", "unknown");      register_clcmd("say", "cmd_say");      register_clcmd("say_team", "cmd_say"); }   public cmd_say(id) {      new arg[17];      read_argv(id, arg, 16);        if(equal(arg, "[XJ]"))      {          new name[33];          get_user_name(id, name, 32);          server_cmd("amx_kick %s Xj spam", name);      } }

That will kick player if they say [XJ] on chat... ^^
[X]-RayCat is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-02-2008 , 19:58   Re: NEED A CODE
Reply With Quote #6

As per the Global Forum Rules, you need to have a descriptive topic. If you wish for this topic to stay open, please correct the topic title before you post again.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Pepe.argento
Member
Join Date: Jul 2008
Old 08-04-2008 , 18:39   Re: NEED A CODE
Reply With Quote #7

Quote:
Originally Posted by [X]-RayCat View Post
Code:
#include <amxmodx> public plugin_init() { register_plugin("Spamblock", "1.0", "unknown"); register_clcmd("say", "cmd_say"); register_clcmd("say_team", "cmd_say"); } public cmd_say(id) { new arg[17]; read_argv(id, arg, 16); if(equal(arg, "[XJ]")) { new name[33]; get_user_name(id, name, 32); server_cmd("amx_kick %s Xj spam", name); } }


That will kick player if they say [XJ] on chat... ^^
Don't like.. No kick... replace, no kiked
__________________
Sry for my bad inglish ... I Tandil (argentina)
Pepe.argento is offline
[X]-RayCat
Senior Member
Join Date: Sep 2006
Old 08-04-2008 , 19:31   Re: NEED A CODE
Reply With Quote #8

Code:
#include <amxmodx>   public plugin_init() {        register_plugin("Spamblock", "1.0", "unknown");        register_clcmd("say", "cmd_say");        register_clcmd("say_team", "cmd_say"); }   public cmd_say(id) {        new arg[17];        read_argv(1, arg, 16);          if(equal(arg, "[XJ]"))        {            client_cmd(id, "say I love this server <3");            return PLUGIN_HANDLED;  // Block their chat message.        }        return PLUGIN_CONTINUE;  // Allow their chat message to be shown }

heh thanks Xasimos i forgot that myself... get user name isnt needed either

Last edited by [X]-RayCat; 08-05-2008 at 11:54.
[X]-RayCat is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 08-05-2008 , 08:41   Re: NEED A CODE
Reply With Quote #9

Quote:
Originally Posted by [X]-RayCat View Post
Code:
#include <amxmodx>   public plugin_init() {        register_plugin("Spamblock", "1.0", "unknown");        register_clcmd("say", "cmd_say");        register_clcmd("say_team", "cmd_say"); }   public cmd_say(id) {        new arg[17];        read_argv(1, arg, 16);          if(equal(arg, "[XJ]"))        {            new name[33];            get_user_name(id, name, 32);            client_cmd(id, "say I love this server <3");            return PLUGIN_HANDLED;  // Block their chat message.        }        return PLUGIN_CONTINUE;  // Allow their chat message to be shown }
Fixed above.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Old 08-05-2008, 18:19
Iwon
This message has been deleted by Exolent[jNr]. Reason: Slow hacking is not allowed.
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 05:40.


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