Ejemplo n.º 1
0
 public bool Init(TasSayEventArgs e, string[] words)
 {
     if (words.Length == 0)
     {
         tas.Say(TasClient.SayPlace.Battle, "", "Do you want to rehost this game? !vote 1 = yes, !vote 2 = no", true);
         spring.SayGame("vote to rehost this game started in lobby");
         return(true);
     }
     else
     {
         string[] mods;
         int[]    indexes;
         if (AutoHost.FilterMods(words, tas, spring, out mods, out indexes) == 0)
         {
             AutoHost.Respond(tas, spring, e, "cannot find such mod");
             return(false);
         }
         else
         {
             modname = mods[0];
             tas.Say(TasClient.SayPlace.Battle, "", "Do you want to rehost this game to " + modname + "? !vote 1 = yes, !vote 2 = no", true);
             spring.SayGame("vote to rehost this game started in lobby");
             return(true);
         }
     }
 }
Ejemplo n.º 2
0
 public bool Init(TasSayEventArgs e, string[] words)
 {
     if (words.Length == 0)
     {
         ah.SayBattle("Do you want to rehost this game? !vote 1 = yes, !vote 2 = no");
         return(true);
     }
     else
     {
         string[] mods;
         int[]    indexes;
         if (AutoHost.FilterMods(words, tas, spring, out mods, out indexes) == 0)
         {
             AutoHost.Respond(tas, spring, e, "cannot find such mod");
             return(false);
         }
         else
         {
             modname = mods[0];
             ah.SayBattle("Do you want to rehost this game to " + modname + "? !vote 1 = yes, !vote 2 = no");
             return(true);
         }
     }
 }