try this
registerOutputEvent(GameConnection, "ban", "int -1 1440 0\tstring 100 200", 1);
function GameConnection::ban(%client, %time, %reason)
{
banBLID(%client.BL_ID, %time, %reason);
}
I can't actually test it completely (like on a live target)
to test, make a folder in addons (Event_Ban)
make an empty description.txt
make a server.cs and put the code in it
you can change the min and max times
int -1 1440 0
int min max default
you can also change the max reason length
string 100 200
string maxChars lengthOfTextBox
the 1 at the end of the registerEvent I think makes it admin only
overall, this added input>client>ban to my event list, takes an int (time) and string (reason), for testing I had it ban ID + 1
when I used it, it put CONSOLE banned (ID: 6888) for 1440 minutes - "test words" in the chat and played the sound