using servercmd is odd in arguments...
function servercmdmayor(%client, %action, %subject, %subject2, %subject3,%subject4,%subject5,%subject6,%subject7)
{
if(%action $= "")
{
messageClient(%client, '',"\c6Please enter one of the following commands to continue:");
messageClient(%client, '',"\c3/mayor set \c6- Brings up a list of things the mayor can set.");
messageClient(%client, '',"\c3/mayor broadcast \c6- Allows the mayor to broadcast a message to the people.");
}
else if(%action $= "broadcast" && %subject $= "")
{
messageClient(%client, '',"\c6Please enter a message to broadcast.");
}
else
{
messageAll('',"\c5Broadcast: \c6" @ %subject SPC %subject2 SPC %subject3 SPC %subject4 SPC %subject5 SPC %subject6 SPC %subject7);
}
}
I think servercmdwhatever splits up the arguments between every space.
this can only handle 7 words, but you can add more.
if you look at the /me script it uses the same method