Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if (cmd == "!kick")
- if (admins.Contains(pname))
- {
- if (args.Length > 1)
- {
- if (!admins.Contains(args[1]) && !nokick.Contains(args[1]))
- {
- if (args.Length > 2)
- {
- List<string> words = args.ToList();
- words.RemoveAt(0);
- words.RemoveAt(0);
- string wordscombined = "";
- foreach (string word in words)
- {
- wordscombined += word + " ";
- }
- con.Send("say", "/kick " + args[1] + " " + pname + " kicked you for: " + wordscombined);
- }
- else
- {
- con.Send("say", "/kick " + args[1] + " [AxewBot] You have been kicked by " + pname);
- }
- }
- else
- {
- if (admins.Contains(pname))
- {
- con.Send("say", "/pm " + pname + " [AxewBot] You can't kick admins!");
- }
- else
- {
- con.Send("say", "/pm " + pname + " [AxewBot] " + args[1] + " has the NoKick rank. Only Axew123 can kick him!");
- }
- }
- }
- else
- {
- con.Send("say", "/pm " + pname + " [AxewBot] Correct usage: !kick <playername>");
- }
- }
- else
- {
- con.Send("say", "[AxewBot] " + pname + " You aren't an admin, BAKA! D:< ");
- }
- else
- {
- con.Send("say", "/pm " + pname + " [AxewBot] Unknown command. Type !help for a list of commands.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement