求个每图第一次人满才刷新
每个图第一次人满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
}
}
回复: 求个每图第一次人满才刷新
#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
}
}
回复: 求个每图第一次人满才刷新
非常感谢!!您真是个大好人:)
页:
[1]