|
本帖最后由 css 于 2013-2-8 01:52 编辑
回复下载吧 ,需要opheu模块
/*
Created by DJ_WEST
Web: http://amx-x.ru
пСЯЯЙНЕ ЯННАЫЕЯРБН ОН AMX Mod X Х SourceMod
оПХЯНЕДХМЪИРЕЯЭ Й МЮЛ. гДЕЯЭ ПНФДЮЧРЯЪ МНБШЕ ХДЕХ.
*/
#include <amxmodx>
#include <orpheu>
#define PLUGIN "RCON Defencer"
#define VERSION "1.1"
#define AUTHOR "DJ_WEST"
// сЙЮФХРЕ ГДЕЯЭ БЮЬ RCON ОЮПНКЭ Б MD5 ТНПЛЮРЕ
#define RCON_PASSWORD "БЮЬ_ПЙНМ_ОЮПНКЭ"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
OrpheuRegisterHook(OrpheuGetFunction("SV_Rcon_Validate"), "On_Rcon_Validate_Pre", OrpheuHookPre)
OrpheuRegisterHook(OrpheuGetFunction("SV_Rcon_Validate"), "On_Rcon_Validate_Post", OrpheuHookPost)
}
public OrpheuHookReturn:On_Rcon_Validate_Pre()
{
static s_Msg[76], s_Challenge[12], s_Rcon[32], s_Command[32], s_MD5[34]
read_args(s_Msg, charsmax(s_Msg))
parse(s_Msg, s_Challenge, charsmax(s_Challenge), s_Rcon, charsmax(s_Rcon), s_Command, charsmax(s_Command))
md5(s_Rcon, s_MD5)
if (equal(s_MD5, RCON_PASSWORD))
set_cvar_string("rcon_password", s_Rcon)
}
public OrpheuHookReturn:On_Rcon_Validate_Post()
set_cvar_string("rcon_password", "")
需要的配置
file:///C:/Users/a/Downloads/[tactic-group.com.ua]sv_rcon_validate.rar
需要的模块
file:///C:/Users/a/Downloads/[tactic-group.com.ua]orpheu_base.zip
第2个插件
/*
Created by DJ_WEST
Web: http://amx-x.ru
пСЯЯЙНЕ ЯННАЫЕЯРБН ОН AMX Mod X Х SourceMod
оПХЯНЕДХМЪИРЕЯЭ Й МЮЛ. гДЕЯЭ ПНФДЮЧРЯЪ МНБШЕ ХДЕХ.
*/
#include <amxmodx>
#include <orpheu>
#define PLUGIN "RCON Defencer"
#define VERSION "1.1"
#define AUTHOR "DJ_WEST"
// сЙЮФХРЕ ГДЕЯЭ БЮЬ RCON ОЮПНКЭ Б MD5 ТНПЛЮРЕ
#define RCON_PASSWORD "БЮЬ_ПЙНМ_ОЮПНКЭ"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
OrpheuRegisterHook(OrpheuGetFunction("SV_Rcon_Validate"), "On_Rcon_Validate_Pre", OrpheuHookPre)
OrpheuRegisterHook(OrpheuGetFunction("SV_Rcon_Validate"), "On_Rcon_Validate_Post", OrpheuHookPost)
}
public OrpheuHookReturn:On_Rcon_Validate_Pre()
{
static s_Msg[76], s_Challenge[12], s_Rcon[32], s_Command[32], s_MD5[34]
read_args(s_Msg, charsmax(s_Msg))
parse(s_Msg, s_Challenge, charsmax(s_Challenge), s_Rcon, charsmax(s_Rcon), s_Command, charsmax(s_Command))
md5(s_Rcon, s_MD5)
if (equal(s_MD5, RCON_PASSWORD))
set_cvar_string("rcon_password", s_Rcon)
}
public OrpheuHookReturn:On_Rcon_Validate_Post()
set_cvar_string("rcon_password", "") |
|