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 } }