|
发表于 2006-12-9 11:22:19
|
显示全部楼层
来自 中国–新疆–巴音郭楞蒙古自治州–库尔勒市
回复: 【发布】自动投票换热门地图插件
如果我不想把源代码中的:{
register_plugin("Auto vote hot map", "1.0", "Rulzy")
register_concmd("amx_addvotetime", "cmdAddVoteTime", ADMIN_VOTE, "<hh:mm> <hh:mm>")
register_concmd("amx_hotmaps", "cmdHotMaps", ADMIN_VOTE, "<map> [map]...[map]")
register_cvar("amx_minplayersnum", "6")
register_cvar("amx_votedelay", "60")
register_cvar("amx_autovotemap", "1")
g_HotMapsCount = 7
copy(g_HotMaps[0], 31, "de_dust2")
copy(g_HotMaps[1], 31, "de_dust")
copy(g_HotMaps[2], 31, "de_aztec")
copy(g_HotMaps[3], 31, "de_inferno")
copy(g_HotMaps[4], 31, "de_cbble")
copy(g_HotMaps[5], 31, "de_train")
copy(g_HotMaps[6], 31, "de_nuke")
set_task(60.0, "votecheck",_,_,_,"b")
}
修改成:{
register_plugin("Auto vote hot map", "1.0", "Rulzy")
register_concmd("amx_addvotetime", "cmdAddVoteTime", ADMIN_VOTE, "<hh:mm> <hh:mm>")
register_concmd("amx_hotmaps", "cmdHotMaps", ADMIN_VOTE, "<map> [map]...[map]")
register_cvar("amx_minplayersnum", "6")
register_cvar("amx_votedelay", "60")
register_cvar("amx_autovotemap", "1")
g_HotMapsCount = 3
copy(g_HotMaps[0], 31, "de_dust2")
copy(g_HotMaps[1], 31, "de_aztec")
copy(g_HotMaps[2], 31, "de_inferno")
set_task(60.0, "votecheck",_,_,_,"b")
}
为什么编译成AMXX后就用不成了呢?请帮忙解释一下。
注:因为我要用在1.5下使用,所以,有几幅地图不需要。 |
|