Module help

SILVA

New Member
Member
Mar 25, 2017
9
41
3
32
Brazil
I made a C # language plugin, how do I create the module. dll ... Thank you all for helping me.


...
Sorry for my english.
 
compile (Build) the plugin
get the .dll file from where your project is
put it in your servers module folder
 
  • Friendly
Reactions: SILVA
ok ..
Would these command lines be to perform a function.?
--
public override void Initialize()
{
Hooks.OnCommand += CommandHandler;


public void CommandHandler(Fougerite.Player Player, string cmd, string[] args)
{
if (cmd == "help")
{
 
ok ..
Would these command lines be to perform a function.?
--
public override void Initialize()
{
Hooks.OnCommand += CommandHandler;


public void CommandHandler(Fougerite.Player Player, string cmd, string[] args)
{
if (cmd == "help")
{

C#:
public override void Initialize()
        {
            Fougerite.Hooks.OnCommand += OnCommand;       
        }
public override void DeInitialize()
        {
            Fougerite.Hooks.OnCommand -= OnCommand;
        }
public void OnCommand(Fougerite.Player player, string cmd, string[] args)
        {
            if (cmd == "hello")          
            {
            }
         }
 
  • Friendly
Reactions: SILVA