Raised This Month: $ Target: $400
 0% 

Solved


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 02-27-2013 , 08:28   Solved
Reply With Quote #1

Hum i tried to make anti crash plugin but there is one problem.
With crash thing player do in console say i_dont_say_for_people_dont_go_crash; retry

So this plugin cant ban because he auto do retry and don get kick & ban

Can someone tell me how i can put this working?

PS:With the version i did, if i dont put ";retry" after crash words i get ban

PHP Code:
#include <amxmodx>

#define PLUGIN    "Crash Detect"
#define AUTHOR    "Jhob94"
#define VERSION    "0.0.2"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    
register_dictionary("crashdetect.txt")
    
register_clcmd("say""crash_detect");
}

public 
crash_detect(id)
{
    new 
said[192];
    
read_args(said192);
    if    ((
contain(said"Crash Words") != -1))
    {
        new 
userid get_user_userid(id)
        new 
authid[35], name[32]
        
get_user_authid(id,authid,34)
        
get_user_name(id,name,31)
        
        
server_cmd("kick #%d ^"Try Crash The Server (AutoBanPERMANENT)^";wait;banid ^"0^" ^"%s^";wait;writeid"useridauthid)
        
client_print(idprint_chat"%L"id"AC_CHAT"name)
        
client_print(idprint_console"%L"id"AC_CONSOLE"nameauthid)
    }
    return 
PLUGIN_CONTINUE;

__________________
Jhob94 is offline
 


Thread Tools
Display Modes

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 21:37.


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