Hmm, OK, then adding a remote kick command may be slightly more complex than just sending to the console "Kick JackMayol", as that was all I assumed you would need to type in if you had direct access to the console.
Fine, ignore that for now, because you have much more important things to be working on than a kick command, lol.
At the moment I have included the following to change maps:
Code:
(check_command($message, "map1")) {
$this->metagame->comms->send("map1")
I have a different one for each map, which outputs corresponding command direct to the console, which triggers the alias command which changes the map and reads the map1config.xml file that I already had set up from when I first installed the server, and so on for each numbered map: map1 gives map1, map2 gives map2 and so on, each one has it's own entry in the basic_command_handler.php file.
I now would like to add a command for max_soldiers, and I guess I could just add in a variety of commands so that 20, 50, 100, 150, 200, 250 etc are covered , which would look like follows:
Code:
(check_command($message, "max 100")) {
$this->metagame->comms->send("max_soldiers 100")
Is there an easy way of replacing the number with a variable so that I can change the number to anything I want? So instead of 100 I could put in ($num), so if I typed in game /max 16 it would cause the script to put max_soldiers 16 into the console? Like this:
Code:
(check_command($message, "max ($num)")) {
$this->metagame->comms->send("max_soldiers ($num)")
P.S. feel free to tell me to bugger off and learn PHP, lol, I know you have a lot on your plate
