|
楼主 |
发表于 2007-7-24 16:09:32
|
显示全部楼层
来自 中国–甘肃–兰州
回复: 关于超级英雄插件v1.18e的两个问题
1. 我知道了,对于第一个问题,其实是因为开启的英雄插件过多而导致的,少开启一些英雄就不会出现上面的问题了!
2. 至于第二个问题,我找到了superheromod.sma的这段源代码,应该就是定义是否保报存BOT的经验值(XP):
public getSaveKey(id, key[35] )
{
if (is_user_bot(id)) {
new botname[32]
get_user_name(id,botname,31)
//Get Rid of BOT Tag
//PODBot
replace(botname,31,"[POD]","")
replace(botname,31,"[P*D]","")
replace(botname,31,"[P0D]","")
//CZ Bots
replace(botname,31,"[BOT] ","")
//Attempt to get rid of the skill tag so we save with bots true name
new lastchar = strlen(botname) - 1
if ( equal(botname[lastchar],")",1) ) {
for (new x = lastchar - 1; x > 0; x--) {
if ( equal(botname[x],"(",1) ) {
botname[x - 1] = 0
break
}
if ( !isdigit(botname[x]) ) break
}
}
if (strlen(botname) > 0 ) {
#if defined SAVE_MYSQL
replace_all(botname,31,"`","\`")
replace_all(botname,31,"'","\'")
#endif
replace_all(botname,31," ","_")
format(key,34,"[BOT]%s", botname)
}
}
//Hack for STEAM's retardedness with listen servers
else if (!is_dedicated_server() && id == 1) {
copy(key,34,"loopback")
}
else {
if (get_cvar_num("sv_lan") == 1) {
get_user_ip(id,key,34,1) // by ip without port
}
else {
get_user_authid(id,key,34) // by steamid
if (equali(key,"STEAM_ID_LAN") || equali(key,"4294967295")) {
get_user_ip(id,key,34,1) // by ip without port
}
}
}
//Check to make sure we got something useable
if (equali(key,"STEAM_ID_PENDING") || equali(key,"") ) return false
return true
}
有人知道怎么修改才能不保存BOT的经验值吗? |
|