new bool:bossappeared for (new i = 1; i < get_maxplayers(); i++) //取得所有玩家 { if (!is_user_alive(i)) //没活着的跳过 return if (is_user_bot(i)) //BOT变僵尸 { 变僵尸(i) } else if (is_user_connected(i) && !bossappeared) //当为玩家且还没有人是僵尸王 { 变僵尸王(i) bossappeared = true } }