Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (str.StartsWith("!enable"))
- {
- try
- {
- string[] split = str.Split(' ');
- string checker = split[1].ToLower();
- if (checker == "snake")
- {
- checkbox.Checked = true;
- }
- (...) // You can add more checkboxes that can checked.. Make sure it starts with [else if] instead of [if] The brackets aren't part of the code
- else
- {
- }
- }
- catch
- {
- con.Send("say", "Format: !enable <checkbox>"); Thread.Sleep(750);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment