Blockland Forums > Modification Help
Getrandom
FFSO:
Wow, when was this?
Greek2me:
--- Quote from: FFSO on December 12, 2011, 04:29:40 PM ---Wow, when was this?
--- End quote ---
It's been a default function since.. probably since BL was created.
Announce() is like a normal message except that it's in big, yellow text.
messageClient:
This is a normal message.
Announce:
This is an announcement.
FFSO:
I see.....well thanks for telling me.
Greek2me:
--- Quote from: FFSO on December 12, 2011, 06:17:54 PM ---I see.....well thanks for telling me.
--- End quote ---
Thought you ought to know.
mp7964:
--- Quote from: FFSO on December 12, 2011, 04:24:08 PM ---
--- Code: ---function serverCmdRoll(%client)
{
if(%client.isAdmin) //To reduce abuse of the addon leading to mass chat spam
{
messageAll('',"\c6The dice has been rolled by:\c2" @ %client.name "\c6, it landed on:\c2" SPC getRandom(1,50) @ "\c6!");
}
else
{
messageClient(%client,'',"\c6To reduce chat spam your dice roll request has been denied.");
}
}
--- End code ---
That would work
--- End quote ---
Now try to put that in the console.