Blockland Forums > Modification Help

script entering console commands?

Pages: << < (2/2)

Chrono:

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

Hazmat:

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

Chrono:

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.

Hazmat:

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

Pages: << < (2/2)

Go to full version