|
楼主 |
发表于 2005-9-14 16:23:31
|
显示全部楼层
来自 日本
回复: 【求助】请问这2个代码所实现的功能是?
第2个是
/* AMX Mod script.
*
* (c) Copyright 2002, [CCC]Taz-Deveil
* This file is provided as is (no warranties).
* Bug fixed
* - NoCL bug after changed map
* - Change name for all with the same name
* http://www.cheaterlog.de
* http://amxmod.net
* http://www.countercheat.com
* Thx to Muldy for condump
*
* replace in server file "CLServer.ini"
* ; --------------------------------------------------------------------------------
* ; DO NOT CHANGE ANYTHING WITHIN THIS SECTION UNLESS YOU KNOW EXACTLY WHAT YOU DO !
* ; Hier solltest du die Finger von lassen, wenn du dich nicht wirklich auskennst !
* ; --------------------------------------------------------------------------------
* ; Enter clexec command to work with.
* ; ----------------------------------
* ; Use HLGuard by default. DON'T FORGET TO INSTALL IT !
* ;CLExecCMD = hlg_clexec
* ; If using StatsMe instead, uncomment this line and comment the HLGuard line:
* ;CLExecCMD = sm_clexec
*
* ; AMX-Mod
* CLExecCMD = amx_cheaterlog
*/
#include <amxmod>
public admin_cheaterlog() {
new varcommande[150], Clide[9]
read_argv(1, Clide,9)
read_argv(2,varcommande,150)
new cluserID = find_player("k",strtonum(Clide[1]))
replace(varcommande,150,"\'[NOCL] ","[NOCL]")
while(containi(varcommande,"\'")!=-1) {
replace(varcommande,150,"\'","")
}
if (cluserID !=0) {
client_cmd(cluserID,"%s",varcommande)
}
return PLUGIN_HANDLED
}
public send_condump()
{
new players[32],pnum
new i
get_players(players, pnum);
for (i=0; i < pnum; i++) {
client_cmd(players,"condump")
}
server_print("[Cheaterlog] AntiNoCL Bug !!")
}
public plugin_init() {
register_plugin("AmxCheaterLog","1.3.040","[CCC]Taz-Devil")
register_srvcmd("amx_cheaterlog","admin_cheaterlog")
set_task(3.0,"send_condump")
} |
|