예제 #1
0
        public override bool Process(List <String> args = null)
        {
            String message = "";

            foreach (String arg in args)
            {
                message += " " + arg;
            }

            CommandHandlerBase handler    = this.GetHandler();
            String             playerName = handler.GetExecutorName();

            BaseScript.TriggerClientEvent("chatMessage", "", Color.Action, playerName + message);
            return(false);
        }
예제 #2
0
        public override bool Process(List <String> args = null)
        {
            List <String> contacts = this.GetContactInfo();
            String        message  = "Need help? Want to appeal a ban? Feel free to drop us a message:";

            foreach (String contact in contacts)
            {
                message += "\n › " + contact;
            }

            CommandHandlerBase handler    = this.GetHandler();
            String             playerName = handler.GetExecutorName();

            BaseScript.TriggerClientEvent("chatMessage", "", Color.Default, message);
            return(false);
        }
예제 #3
0
        public override bool Process(List <String> args = null)
        {
            String        message = "The following are the rules for ^5WeRP^0:";
            List <String> rules   = this.GetRules();

            foreach (String rule in rules)
            {
                message += "\n › " + rule;
            }

            CommandHandlerBase handler    = this.GetHandler();
            String             playerName = handler.GetExecutorName();

            BaseScript.TriggerClientEvent("chatMessage", "", new int[] { 255, 255, 255 }, message);
            return(false);
        }