CraZy 发表于 2008-4-21 16:43:22

求个每图第一次人满才刷新

每个图第一次人满31 或者 32 的时候服务器自动刷新
以后都不刷新

jim_yang大哥 能稍作修改吗?


#include <amxmodx>
#define PLUGIN "Test"
#define AUTHOR "Jim"
#define VERSION "1.0"
new bool:refreshed
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_logevent("round_end", 2, "1=Round_End")
}
public round_end()
{
if(!refreshed)
{
server_cmd("sv_restartround 5")
refreshed = true
}
}

jim_yang 发表于 2008-4-21 17:48:53

回复: 求个每图第一次人满才刷新


#include <amxmodx>
#define PLUGIN "Test"
#define AUTHOR "Jim"
#define VERSION "1.0"
new bool:refreshed
new g_maxplayers
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
g_maxplayers = get_maxplayers()
}
public client_putinserver(id)
{
if(!refreshed && get_playersnum() == g_maxplayers)
{
set_cvar_string("sv_restartround", "1")
refreshed = true
}
}

CraZy 发表于 2008-4-21 20:13:59

回复: 求个每图第一次人满才刷新

非常感谢!!您真是个大好人:)
页: [1]
查看完整版本: 求个每图第一次人满才刷新