Guest User

Untitled

a guest
Apr 4th, 2022
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. namespace Oxide.Plugins
  2. {
  3. [Info("Commands", "Maxim Bauwelinck", "0.0.0")]
  4. class Commands : RustPlugin
  5. { //OnstartServer
  6. void Init()
  7. {
  8. Puts("Server successfully launched");
  9. }
  10.  
  11.  
  12.  
  13. //Chat Commands
  14. [ChatCommand("help")]
  15. void help(BasePlayer player)
  16. {
  17. SendReply(player, "Here is a list with all the commands \n!players");
  18.  
  19. }
  20. [ChatCommand("create group")]
  21. void Create_Group(BasePlayer player)
  22. {
  23.  
  24. // RelationshipManager.trycreateteam(ConsoleSystem.CurrentArgs);
  25. }
  26.  
  27. [ChatCommand("players")]
  28. void PlayerCount(BasePlayer player)
  29. {
  30. int playercount = BasePlayer.activePlayerList.Values.Count;
  31. SendReply(player, playercount == 1? "There's currently 1 player online":$"There's currently {playercount} online");
  32. }
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment