Author Topic: script entering console commands?  (Read 786 times)

I was thinking about making commands that would make blockland more user-friendly by making commands that you could enter into the console and i realized that i could save a lot of work by making the script enter a console command is this possible?
more straight forward if you dont understand: is it possible to make a script enter a command into the console?

commandtoserver('[command]');
commandtoclient('[command]');

If you mean what I think you mean,

Code: [Select]
eval("echo(\"Don't go making another techEval script.\");");

thanks thaky
i dont understand the above post

That's probably a good thing, too.

Why would you make a script enter a command in a console when it can just call the command itself?

well i could also use this information to make a ban command for those REALLY lazy blocklander's out there
i have been on at least 3 servers where some admin has said they wished there was a ban command plus not everyone out there knows scripting so if you make a command to put in the chat in english they would be able to do console commands without having to look them up

There already is a ban command.

in chat:
/ban 0 BLID time reason
in console:
commandToServer('ban',0,ID,TIME,"Reason");
or
banBLID(ID,TIME,"Reason");
if they're the host.

im also doing the ban command for experience with scripting but i didnt know there was a ban command thanks for that i guess i wont release it then but i can also use this information for the other reason stated in my last post