Advertisement
Guest User

Untitled

a guest
Jul 27th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.01 KB | None | 0 0
  1. else if (cmd == "!kick")
  2. if (admins.Contains(pname))
  3. {
  4. if (args.Length > 1)
  5. {
  6. if (!admins.Contains(args[1]) && !nokick.Contains(args[1]))
  7. {
  8. if (args.Length > 2)
  9. {
  10. List<string> words = args.ToList();
  11. words.RemoveAt(0);
  12. words.RemoveAt(0);
  13. string wordscombined = "";
  14. foreach (string word in words)
  15. {
  16. wordscombined += word + " ";
  17. }
  18. con.Send("say", "/kick " + args[1] + " " + pname + " kicked you for: " + wordscombined);
  19. }
  20. else
  21. {
  22. con.Send("say", "/kick " + args[1] + " [AxewBot] You have been kicked by " + pname);
  23. }
  24. }
  25. else
  26. {
  27. if (admins.Contains(pname))
  28. {
  29. con.Send("say", "/pm " + pname + " [AxewBot] You can't kick admins!");
  30. }
  31. else
  32. {
  33. con.Send("say", "/pm " + pname + " [AxewBot] " + args[1] + " has the NoKick rank. Only Axew123 can kick him!");
  34. }
  35. }
  36. }
  37. else
  38. {
  39. con.Send("say", "/pm " + pname + " [AxewBot] Correct usage: !kick <playername>");
  40. }
  41. }
  42. else
  43. {
  44. con.Send("say", "[AxewBot] " + pname + " You aren't an admin, BAKA! D:< ");
  45. }
  46. else
  47. {
  48. con.Send("say", "/pm " + pname + " [AxewBot] Unknown command. Type !help for a list of commands.");
  49. }
  50. }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement