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-11-2013 , 11:47   Re: [HELP] Abuse = Kick
Reply With Quote #1

i did some work its working fine....


PHP Code:
#include <amxmodx>

public plugin_init() {
    
register_plugin("Abuse","1.0","N e [X] u $")    
    
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));
    }

but now i want to increase some functionality.....

1==> abusive word should be in file n it should check that file for matching,

2==> when user say /abuse it should show a MOTD containing abusive words from that file..


some one please help.......
__________________
N e [X] u $

Last edited by m.touqeerafzal; 11-11-2013 at 11:47.
m.touqeerafzal is offline
Send a message via Skype™ to m.touqeerafzal
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