Raised This Month: $ Target: $400
 0% 

Solved


Post New Thread Reply   
 
Thread Tools Display Modes
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
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-27-2013 , 13:23   Re: Fix this. Cant ban if retry after say command
Reply With Quote #2

PHP Code:
 if    ((contain(said"Crash Words") != -1)) 
WTF is this ?
Fix badly coded plugin instead.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 02-27-2013 , 14:23   Re: Fix this. Cant ban if retry after say command
Reply With Quote #3

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)
__________________
Jhob94 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-28-2013 , 00:29   Re: Fix this. Cant ban if retry after say command
Reply With Quote #4

If there is some chat issues on your server, fix the badly coded plugin that has those issues.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 02-28-2013 , 11:16   Re: Fix this. Cant ban if retry after say command
Reply With Quote #5

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"
__________________
Jhob94 is offline
micapat
Veteran Member
Join Date: Feb 2010
Location: Nyuu, nyuu (France).
Old 02-28-2013 , 12:10   Re: Fix this. Cant ban if retry after say command
Reply With Quote #6

%s%s%s ...
__________________
micapat is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 02-28-2013 , 15:02   Re: Fix this. Cant ban if retry after say command
Reply With Quote #7

yes but i think you shouldnt say for people dont go crash servers
__________________
Jhob94 is offline
Podarok
BANNED
Join Date: Jan 2011
Location: Narnia
Old 02-28-2013 , 15:27   Re: Fix this. Cant ban if retry after say command
Reply With Quote #8

You have a backdoor in some of your plugin , i suggest you find the infected plugin..
Podarok is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 02-28-2013 , 16:02   Re: Fix this. Cant ban if retry after say command
Reply With Quote #9

lol isnt any plugin
this is a crash thing, it works all servers not just in mine
__________________
Jhob94 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-01-2013 , 00:51   Re: Fix this. Cant ban if retry after say command
Reply With Quote #10

You should report it to Valve while they are doing updates to CS 1.6 if you know how to recreate the crash consistently.
__________________
fysiks is offline
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 21:37.


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