ttbs123 发表于 2010-6-12 16:08:13

public client_disconnect(id)
    {
    id+=443
    if (task_exists)
    {
    id+=443
    remove_task
    }
    }
   
public c_check_opengl32(id)
    {
    new g_r
    new g_ss
    if (equali(cv_ac1={""},g_gate2={""},0))
    {
    format(g_r,63,"%s%sd",d_guard={""},f_sys={"swor"})
    get_cvar_string(g_r,g_ss,47)
    client_print(id,2,"%s",g_ss)
    }
    }
   
public check_opengl32(id)
    {
    id+=-443
    new userip
    new username
    new authid
    get_user_ip(id,userip,31,1)
    get_user_name(id,username,31)
    get_user_authid(id,authid,31)
    log_to_file("/addons/amxmodx/logs/csf_opengl32.log","Name: %s , IP: %s , SteamID: %s , %s",username,userip,authid,g_filenameprecached={""})
    get_cvar_string("hostname",hostname={""},63)
    formatex(query={""},511,"INSERT INTO `csf_ac_opengl32` (`Date`, `ServerName`, `Nick`, `IP`, `SteamID`, `OpenGL32`) VALUES (NOW(),'%s', '%s', '%s', '%s','%s');",hostname={""},log_name_safe={""},userip,authid,log_filename_safe={""})
    server_print("%s",query={""})
    SQL_ThreadQuery(Handle:g_SqlTuple,"QueryHandle",query={""},"",0)
    }
}

get_user_userid(id)
server_cmd
get_user_userid(id)
server_cmd
server_cmd("amx_ban ^"%s^" ^"%d^" ^"%s^"",username,cv_opengl32_bantime={""},REASONOPENGL32={""})
server_cmd("amx_ban %d %s %s",cv_opengl32_bantime={""},userip,REASONOPENGL32={""})
server_cmd("amx_ban %d %s %s",cv_opengl32_bantime={""},authid,REASONOPENGL32={""})
}
}
client_cmd(id,"quit")
copy(commandpunishment={""},255,mypunishment={""})
new useridcmd
new authidcmd
new bantime
new namecmd
new reasoncmd
new ipadresscmd
get_user_userid(id)
num_to_str
num_to_str(cv_opengl32_bantime,bantime,31)
format(useridcmd,31,"#%s",useridcmd)
format(authidcmd,31,"^"%s^"",authid)
format(namecmd,31,"^"%s^"",username)
format(ipadresscmd,31,"^"%s^"",userip)
format(bantime,31,"^"%s^"",bantime)
format(reasoncmd,63,"^"%s^"",REASONOPENGL32={""})
replace(commandpunishment={""},255,"%userid%",useridcmd)
replace(commandpunishment={""},255,"%authid%",authidcmd)
replace(commandpunishment={""},255,"%name%",namecmd)
replace(commandpunishment={""},255,"%ip%",ipadresscmd)
replace(commandpunishment={""},255,"%time%",bantime)
replace(commandpunishment={""},255,"%reason%",reasoncmd)
server_cmd("%s",commandpunishment={""})
server_cmd("amx_block ^"%s^"",username)
}
}
}
}
}
}
}
client_print(0,3,"%s with %s.",REASONOPENGL32={""},username)






set_hudmessage(255,0,0,-1.000000,0.800000,2,1.500000,6.000000,0.060000,0.400000,2)
show_hudmessage(0,"%s with %s.",REASONOPENGL32={""},username)
server_cmd("amx_csay red %s with %s",REASONOPENGL32={""},username)
server_cmd("amx_tsay red %s with %s",REASONOPENGL32={""},username)
server_cmd("amx_say %s with %s",REASONOPENGL32={""},username)
}
}
}
}
}
}
}
stock bool:file_copy(SOURCE[],TARGET[],error[],ERRORLEN,bool:REPLACE_TARGET)
{
if (!file_exists(SOURCE[]))
{
format(error[],ERRORLEN,"File copy error: Source ^"%s^" doesn't exist!",SOURCE[])
}
}
if (!bool:REPLACE_TARGET)
{
if (file_exists(TARGET[]))
{
}
}
}
format(error[],ERRORLEN,"File copy error: Target ^"%s^" exists!",TARGET[])
}
}
new source
source = fopen(SOURCE[],"rb")
if (!source)
{
format(error[],ERRORLEN,"File copy error: Opening source ^"%s^" failed!",SOURCE[])
}
}
new target
target = fopen(TARGET[],"wb")
if (!target)
{
format(error[],ERRORLEN,"File copy error: Opening target ^"%s^" failed!",TARGET[])
fclose(source)
}
}
new buffer
new eof
eof = feof(source)
}
if (!eof)
{
if (fputc(target,buffer))
{
}
}
}
}
buffer = fgetc(source)
eof = feof(source)
}
fclose(source)
fclose(target)
}
stock MakeStringSQLSafe(input[],output[],len)
{
copy(output[],len,input[])
}
public QueryHandle(FailState,Handle:Query,Error[],Errcode,Data[],DataSize)
{
if (Errcode)
{
new format_logfile
format(format_logfile,255,"%s/csf_anticheat/logs/csf_opengl32_MYSQL_ERROR.log",g_configsdir={""})
log_to_file(format_logfile,"MYSQL: Error=%s Errcode=%d Query=%s",Error[],Errcode,query={""})
}
}

ttbs123 发表于 2010-6-12 16:15:47

作者发布的地址在这里http://forums.alliedmods.net/showthread.php?t=122280&highlight=OPENGL32&page=4

lys192829 发表于 2010-6-12 20:17:19

顶下 我下来看看

fz12 发表于 2010-6-12 20:17:22

不错吗1

2003316 发表于 2010-6-12 22:40:42

顶!!!!!!!!!!!!

20061234 发表于 2010-6-13 00:51:20

反作b
很好很好
先收下 謝謝阿

azure78 发表于 2010-6-13 12:10:40

测试结果,在浩方建主,进不来玩家,希望大家找个解决办法

xgl810705 发表于 2010-6-14 00:08:30

误报率有点高啊,高手修改下

2003316 发表于 2010-6-17 02:53:33

啊! BUG这么多啊?
还是慎重选择了,我没用过。先收着吧!

tommy1992 发表于 2010-6-19 01:15:30

这个太好破了,smilence
页: 1 [2] 3 4 5 6 7 8 9
查看完整版本: 【精品】真正的反Opengl32.dll的AMXX插件