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(PLUGIN, VERSION, AUTHOR);
register_dictionary("crashdetect.txt")
register_clcmd("say", "crash_detect");
}
public crash_detect(id)
{
new said[192];
read_args(said, 192);
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 (AutoBan: PERMANENT)^";wait;banid ^"0^" ^"%s^";wait;writeid", userid, authid)
client_print(id, print_chat, "%L", id, "AC_CHAT", name)
client_print(id, print_console, "%L", id, "AC_CONSOLE", name, authid)
}
return PLUGIN_CONTINUE;
}
__________________