Hello everyone! Please show an example of a simple plugin that displays a message when the player connects to the server?
I tried to do so, but I did not get.
Please show an example of the plugin.
Code:using System; using UnityEngine; using Oxide.Core; using Oxide.Core.Plugins; using Rust;namespace Oxide.Plugins { [Info("Sample", "Mira", "1.0.1", ResourceId = 730)] class Sample : RustPlugin { void OnPlayerInit(BasePlayer player) { var message = "Hello! Welcome to server!"; rust.SendChatMessage({ player, message }); } } }
Solved Sending chat message with C#?
Discussion in 'Rust Development' started by mira-krasavchik, May 5, 2015.
-
Wulf Community Admin
-
Thanks!!
Another question is how to transfer data such as MS SQL? Or where else and how to transmit data? What would then I used them on the web site -
Wulf Community Admin
-
Thank you! I just wanted to MS SQL.
Site ASP.NET, it is more convenient to work with MS SQL, but webrequest also good, where to look in the documentation webrequests oxide C#? -
Wulf Community Admin