Author Topic: Is it possible for...  (Read 1030 times)

Is it possible for someone to make it where they type in a command ( /help ), then a message will pop-up?

I want to make my server easier to handle. I mean like they type in /help and a box will tell them all they need to know about my server! :|

/money (you have to get a job. type /job)
/job (go to the...)

There are tons of /rules scripts, look at those.

Nobody releases those. just play around with a script, or start one from scratch. It should work eventually.

This is a serverCmd players in your server can say /help and they will receive the message you put inside.
Code: [Select]
function serverCmdHelp(%client)
{
  //  %client is who your sending the command to, 'MessageBoxOK' is what your telling them to do.
  commandToClient(%Client,'MessageBoxOK',"Your title goes here","Your message goes here");
}
Keep your message and title short and to the point, If you don't your better off just modifying a rules script to flood the console or chat.
If you want things on different lines use this
Code: [Select]
commandToClient(%Client,'MessageBoxOK',"Title","message1\n message2\n message3");Just be aware that the message box will put line breaks in for you if your message is too long.

Just keep the same syntax and you can make similar 'boxes' pop up when people say /money and /job.
If you can't figure it out try to start here:
http://www.garagegames.com/docs/tge/general/ch05.php#scripting.concepts_and_terminology

Also, don't use ambiguous topic titles.

Where would i put this script?

function serverCmdHelp(%client)
{
  //  %client is who your sending the command to, 'MessageBoxOK' is what your telling them to do.
  commandToClient(%Client,'MessageBoxOK',"Your title goes here","Your message goes here");
}

Put it in a notepad file and save it as a .cs

If you don't know how to do that, change file type in the save menu to "all types" and put .cs at the end of the file name.

Then the .cs goes in Blockland/Add-Ons.

All i needed to know is where it goes (Blockland/Add-ons)
But thanks for the other info :)