Blockland Forums > Suggestions & Requests

Server-wide Center and Bottom Print Messages via a Command?

Pages: << < (2/5) > >>

DYLANzzz:

Hue
I tested to make sure there were no syntax errors, already packaged and here's the commands

"Bottom and centerprint functionality for admins
/acp for admin center print
/abp for admin bottom print"

Here you go, just click the link below
Here is the thingy

Zeblote:


--- Quote from: Subpixel on October 12, 2013, 08:44:11 PM ---it's the most simple thing since sliced bread.


--- Code: --- messageClient('', %this, "Usage : /mc [text]");
--- End code ---

--- End quote ---
Doesn't the client come before the tag

Subpixel:


--- Quote from: Zeblote on October 12, 2013, 08:50:16 PM ---Doesn't the client come before the tag

--- End quote ---
I just replaced an old function, forgot about that.

Also realized it was centerprint and bottomprint, here's the fixed version.


--- Code: ---function serverCmdMC(%this, %a1, %a2, %a3, %a4, %a5, %a6, %a7, %a8, %a9, %a10, %a11, %a12, %a13, %a14, %a15, %a16, %a17, %a18, %a19, %a20)
{
if(!%this.isAdmin)
{
messageClient('', %this, "You are not admin.");
return;
}

if(%a1 $= "")
{
messageClient('', %this, "Usage : /mc [text]");
return;
}

for(%i = 1; %i < 21; %i++)
{
%word = %a[%i];
if(%word !$= "")
{
if(%string $= "")
{
%string = %word;
}
else
{
%string = %string SPC %word;
}
}
}

bottomPrintAll("\c6" @ %string, 5);
centerPrintAll("\c6" @ %string, 5);
}
--- End code ---


Night Fox:


--- Quote from: Zeblote on October 12, 2013, 08:33:24 PM ---sec is long over... where's the script?

--- End quote ---
jesus christ you're a little punk
you waited two minutes before saying that

Zeblote:


--- Quote from: Night Fox on October 12, 2013, 08:52:44 PM ---jesus christ you're a little punk
you waited two minutes before saying that

--- End quote ---
but he said he needed a second
a second is way shorter than 2 minutes, is it??

Pages: << < (2/5) > >>

Go to full version