1. Hi I was wondering if there was a way to do it so when someone joins the server it pops up in chat or the top of the players screen. "Welcome to the Server please do /rules and /help"
     
  2. Code:
            void OnPlayerConnected(NetUser netUser)
            {
                rust.Notice("Welcome to the Server please do /rules and /help");
                return;
            }
     
  3. Where do I put this? I am using Announcer plugin.
     
  4. Code:
            private void OnPlayerConnected(NetUser player)
            {
                if (!watcherEnabled) return;
                var message = string.Format(joined, player.displayName);            if (log)
                    Log(message);            if (showChatPrefixW)
                    BroadcastMessage(chatPrefix, message);
                else
                    BroadcastMessage(message);
                rust.Notice("Welcome to the Server please do /rules and /help");
                return;
            }
    [DOUBLEPOST=1472448362][/DOUBLEPOST]Do the test.
     
  5. I get error
    (17:35:37) | [Oxide] 22:35 [Error] Announcer plugin failed to compile!

    (17:35:37) | [Oxide] 22:35 [Error] Announcer.cs(96,18): error CS1501: No overload for method `Notice' takes `1' arguments
     
  6. Code:
            private void OnPlayerConnected(NetUser player)
            {
                rust.Notice(player,"Welcome This Server Use: /help or /rules!", "!", 20);
                if (!watcherEnabled) return;
                var message = string.Format(joined, player.displayName);            if (log)
                    Log(message);            if (showChatPrefixW)
                    BroadcastMessage(chatPrefix, message);
                else
                    BroadcastMessage(message);
            }
    [DOUBLEPOST=1472450148][/DOUBLEPOST]Now it's right!
     
  7. Thank You so much. Also is there a way I can do it so it pops up in chat as well.
     
  8. Code:
            private void OnPlayerConnected(NetUser player)
            {
                rust.Notice(player,"Welcome This Server Use: /help or /rules!", "!", 20);
                rust.SendChatMessage(player, "Welcome This Server Use: /help or /rules!");            if (!watcherEnabled) return;
                var message = string.Format(joined, player.displayName);            if (log)
                Log(message);            if (showChatPrefixW)
                BroadcastMessage(chatPrefix, message);
                else
                BroadcastMessage(message);
            }
     
  9. Put as resolved :)
     
  10. Is it hard to do it so if a new player joins it says "Player has joined the server for the first time"
     
  11. This plugin has this function.

    Administration for Rust Legacy | Oxide

    Code:
            void OnPlayerConnected(NetUser netUser)
            {
                if (!messageJoin)
                    return;            ulong netUserID = netUser.userID;            if (!(permission.UserHasPermission(netUserID.ToString(), permissionHasPlayedBefore)))
                {
                    rust.BroadcastChat(lang.GetMessage("ChatPrefix", this), $"{netUser.displayName} {lang.GetMessage("FirstTimeJoin", this)}");                rust.RunClientCommand(netUser, $"deathscreen.reason \"{lang.GetMessage("WarningMessage", this)}\"");
                    rust.RunClientCommand(netUser, "deathscreen.show");                permission.GrantUserPermission(netUserID.ToString(), permissionHasPlayedBefore, this);                Puts($"{netUser.displayName} [{netUserID.ToString()}] [{netUser.networkPlayer.ipAddress}] {lang.GetMessage("FirstTimeJoin", this)}");                return;
                }            rust.BroadcastChat(lang.GetMessage("ChatPrefix", this), $"{netUser.displayName} {lang.GetMessage("NormalJoin", this)}");            Puts($"{netUser.displayName} [{netUserID.ToString()}] [{netUser.networkPlayer.ipAddress}] {lang.GetMessage("NormalJoin", this)}");            return;
            }
     
  12. So do I do this in the Administration plugin?
     
  13. It is one of the option
     
  14. If I use the Administration one is there a way to do the "Please do /help and /rules" when they join like Announcer?
     
  15. yes and now want something better