Ummm...Badspot im new at this i want to make a command for my servers, could you like...try to post an example script, thanks, and hi
Sorry for the double post, Didn't feel like editing.
Heres an example thats a bit... Better then the other one.
function ServerCmdHelloWorld(%c)
{
if(%c.isAdmin)
{
MessageAll(' ',"HELLO WORLD!");
}
else
{
MessageAll(' ',"Hello World!");
}
echo(%c.name SPC "says Hello World!");
}
And, I feel generous so i will explain.
MessageAll is a command to send everyone on the server a message. MessageAll's default color is red, But you can change it with Torque ML or \c#s (example \c6 is white)
if(%c.isAdmin) checks to see if there admin, and if they are, it says HELLO WORLD in capitals
the Else checks to see if there not admin, Then it says it in lower case letters.
Brackets ({,}) are like folders, Containing the information for that bit.
Echo is a function that sends a message into your console, As said in the previous example.
Hope this helps someone!
Edit: ServerCmd just means that in chat you can say /HelloWorld, Instead of a console function like the other one.