AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved (https://forums.alliedmods.net/showthread.php?t=209588)

Jhob94 02-27-2013 08:28

Solved
 
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;



ConnorMcLeod 02-27-2013 13:23

Re: Fix this. Cant ban if retry after say command
 
PHP Code:

 if    ((contain(said"Crash Words") != -1)) 

WTF is this ?
Fix badly coded plugin instead.

Jhob94 02-27-2013 14:23

Re: Fix this. Cant ban if retry after say command
 
I put "Crash Words" instead of crash characters for who see this thread dont go crash servers ;)
Like instead of "Crash Words" if i put "lol" and someone say lol in chat he will got kick and perm ban (but that you know xD)
If this way to precache words used in chat is bad, please tell me an better way x)

ConnorMcLeod 02-28-2013 00:29

Re: Fix this. Cant ban if retry after say command
 
If there is some chat issues on your server, fix the badly coded plugin that has those issues.

Jhob94 02-28-2013 11:16

Re: Fix this. Cant ban if retry after say command
 
I think isnt chat issue. This crash iam talking about is "say some_characters;retry" and then it shows in chat to players a mandorin words and crash them(iam not sure if is mandorin i just think is very weird words xD)
And plugin runs perfectly if i use command without ";retry"

micapat 02-28-2013 12:10

Re: Fix this. Cant ban if retry after say command
 
%s%s%s ...

Jhob94 02-28-2013 15:02

Re: Fix this. Cant ban if retry after say command
 
yes but i think you shouldnt say for people dont go crash servers

Podarok 02-28-2013 15:27

Re: Fix this. Cant ban if retry after say command
 
You have a backdoor in some of your plugin , i suggest you find the infected plugin..

Jhob94 02-28-2013 16:02

Re: Fix this. Cant ban if retry after say command
 
lol isnt any plugin
this is a crash thing, it works all servers not just in mine

fysiks 03-01-2013 00:51

Re: Fix this. Cant ban if retry after say command
 
You should report it to Valve while they are doing updates to CS 1.6 if you know how to recreate the crash consistently.


All times are GMT -4. The time now is 21:37.

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