下面是引用 T.o.n..y 于 2015-07-08 22:03 发表的 一些关于ZP4.3的问题??:
就是....
如何设定ZP中的"M选单"的开启次数?
简单来说....在每一回合只能开一次...
关于这样....要在ZP主插件内..写些什么呢?
烦请各位数位大大 帮忙 谢谢各位~~
在ZP的SMA收寻plugin_init()内找
register_event("HLTV", "event_round_start", "a", "1=0", "2=0");
new bool:g_switch[33];
public event_round_start()
for (new i; i<=get_maxplayers();i++)
g_switch
= false; //不知道 为何 阵列无法显示 请用阵列..
收寻clcmd_changeteam
public clcmd_changeteam(id)
{
static team
team = fm_get_user_team(id)
// Unless it's a spectator joining the game
if (team == CS_TEAM_SPECTATOR || team == CS_TEAM_UNASSIGNED)
return PLUGIN_CONTINUE;
// Pressing 'M' (chooseteam) ingame should show the main menu instead
if (!g_switch[id])
{
show_menu_game(id)
g_switch[id] = true;
}
return PLUGIN_HANDLED;
}
修改好了