|
发表于 2007-5-21 23:32:19
|
显示全部楼层
|阅读模式
来自 中国–广西–柳州–柳北区
#include <amxmodx>
public plugin_init(){
register_plugin( "restart", "1.0", "yyyy");
}
public client_connect(){
new count=0;
new maxplayers=get_maxplayers();
for(new i=1;i<=maxplayers;i++)
{
if(is_user_connecting(i)) count++;
}
if(count>=8)
{
set_hudmessage(0, 200, 0, -1.0, 0.40, 0, 6.0, 6.0, 0.1, 0.1, 1)
show_hudmessage(0,"Live on Three Restarts")
set_task(5.0, "rround")
}
}
public rround()
{
server_cmd("sv_restartround 1")
} 请问这样可以正常运行了吗? |
|