下面是引用 史来姆 于 2010-08-29 23:40 发表的 ZP4.2队伍问题:
小弟最近为一个问题感到非常困扰
就是zp的队伍,很不稳定......
开始游戏明明选择了ct
可是差不多每回合也会转队伍...tr,ct,tr,ct,ct,tr,ct,tr,tr...........
有能删除每回合转队伍的方法吗?
拜托大大们教教小弟
附加问题:请问能删除杀人图示吗?就是每次杀敌,右上方显示的那项东西
删除每回合转队伍的方法: 1.加入变数:
复制程式
2.在「public fw_PlayerSpawn_Post(id)」加入以下内容:
复制程式
if (!g_origin_team[id])
if (CS_TEAM_T <= fm_get_user_team(id) <= CS_TEAM_CT)
g_origin_team[id] = fm_get_user_team(id)
3.将原本的「public balance_teams()」全部覆盖成以下内容:
复制程式
// Balance Teams Task
public balance_teams()
{
// Split players evenly
static id, team
// Set everyone's team for real
for (id = 1; id <= g_maxplayers; id++)
{
// Skip if not connected
if (!is_user_connected(id))
continue;
team = fm_get_user_team(id)
// Skip if not playing
if (team == CS_TEAM_SPECTATOR || team == CS_TEAM_UNASSIGNED)
continue;
// Set team
remove_task(id+TASK_TEAM)
fm_set_user_team(id, g_origin_team[id])
}
}
删除杀人图示:
随便找个地方插入「set_msg_block(get_user_msgid("DeathMsg"), BLOCK_SET)」
就能让杀人图示出不来…除非有其他插件执行
「set_msg_block(get_user_msgid("DeathMsg"), BLOCK_NOT)」才会被解除效果…