1. Searching a Developer that can make a small change to my custom clan plugin
     
  2. What u need ?
     
  3. i need to some text and a command Example

    /cff off will say "Red"activated.... take care

    i want /cff off will say "Red"deactivated they are safe

    i think i managed to do this for the Chat Command but there is a plugin ussing CMD Command and thats not changed yet cant find it either
     
  4. Code:
            [Command("cff")]
            void CffCmd(IPlayer player, string command, string[] args)
            {
                if(args[0]=="on") player.Reply("Red activated.... take care");
                if(args[0]=="off") player.Reply("Red deactivated they are safe");
                else player.Reply("Correct Usage: /Cff on|off");
            
            }
     
  5. Corrected (added else before second if, to prevent message Correct usage when /cff on)
     
  6. it works without else too :)
     
  7. Code:
            [ChatCommand("ccf")]
            private void CffCommand(BasePlayer player, string command, string[] args)
            {
                if (args.Length == 0)
                {
                    PrintToChat(player, lang.GetMessage("SyntaxError", this, player.UserIDString));
                    return;
                }            switch (args[0].ToLower())
                {
                    case "on":
                    {
                        PrintToChat(player, lang.GetMessage("CffToggled", this, player.UserIDString), "enabled");
                        break;
                    }
                    case "off":
                    {
                        PrintToChat(player, lang.GetMessage("CffToggled", this, player.UserIDString), "disabled");
                        break;
                    }
                    default:
                    {
                        PrintToChat(player, lang.GetMessage("SyntaxError", this, player.UserIDString));
                        break;
                    }
                }
            }
    That's a better implementation which fixes some issues with yours, but I don't see why you'd want to have a command with no behavior firstly, and secondly, I think it would be best to just toggle status with the command rather than supply arguments.