예제 #1
0
 private static void DisableSelectClass(Entity player)
 {
     GSCFunctions.ClosePopUpMenu(player, "");
     GSCFunctions.CloseInGameMenu(player);
     player.Notify("menuresponse", "team_marinesopfor", "allies");
     player.OnNotify("joined_team", ent =>
     {
         AfterDelay(500, () => { ent.Notify("menuresponse", "changeclass", "class1"); });
     });
     player.OnNotify("menuresponse", (player2, menu, response) =>
     {
         if (menu.ToString().Equals("class") && response.ToString().Equals("changeclass_marines"))
         {
             AfterDelay(100, () => { player.Notify("menuresponse", "changeclass", "back"); });
         }
     });
 }