Raised This Month: $ Target: $400
 0% 

[HELP] Abuse = Kick


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
m.touqeerafzal
Member
Join Date: May 2013
Old 11-12-2013 , 23:52   Re: [HELP] Abuse = Kick
Reply With Quote #1

i have showed the motd...

PHP Code:
#include <amxmodx>

public plugin_init() {
    
register_plugin("Abuse","1.0","N e [X] u $")    
    
register_clcmd("say /abuse" "showmotd")
    
register_clcmd"say",        "CheckSay" )
    
register_clcmd"say_team",   "CheckSay" )
}

public 
CheckSay(id){
    new 
g_szUserSpeech[32];
    new 
name[32];
    
get_user_name(id,name,31);
    
read_argsg_szUserSpeech[id-1],32);
    
remove_quotes(g_szUserSpeech[id-1]);
    if( 
containig_szUserSpeech[id-1], "fuck" ) > -1)
    {
        
client_print0print_chat"[XTREME-| Server]  Player  %s  Has Been Kicked for Abusing!"name);
        
server_cmd"kick #%d ^"Learn Some Manners of Talking!!!^""get_user_userid(id));
    }
}

public 
showmotd(id){
    
show_motd(id"addons/amxmodx/configs/abuse.txt""Abusive Words")


i just need a help how to read a line from file n check those abusive words in user chat..... plzzzz someone help.....
__________________
N e [X] u $
m.touqeerafzal is offline
Send a message via Skype™ to m.touqeerafzal
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-13-2013 , 00:10   Re: [HELP] Abuse = Kick
Reply With Quote #2

And have you looked at a plugin that already does this? If yes, which one? What are you having trouble with?
__________________
fysiks is online now
m.touqeerafzal
Member
Join Date: May 2013
Old 11-13-2013 , 13:21   Re: [HELP] Abuse = Kick
Reply With Quote #3

hey fysiks dude


would you plzz mention any plugin... from where i would get help??
__________________
N e [X] u $

Last edited by m.touqeerafzal; 11-13-2013 at 13:22.
m.touqeerafzal is offline
Send a message via Skype™ to m.touqeerafzal
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-13-2013 , 15:26   Re: [HELP] Abuse = Kick
Reply With Quote #4

If what you have there is working, all you need is the file part. You can look at my bot plugin (in my signature) for how to read from a file.
__________________
fysiks is online now
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:22.


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