Blockland Forums > Modification Help

Script_Disappear

Pages: (1/3) > >>

Katadeus:

Yeah, yeah, spammy and abusive.
It isn't working for the moment, anyway, but it IS super admin only.
Anyway, it isn't working.
Here's the script.

function serverCmdDisappear(%client)
{
   if(%client.isSuperAdmin)
   {
      %player.hideNode("All");
   }
}

So yeah, there's a horribly glaring error in here.
Also, I don't intend to even attempt to release it; it's just a stupid practice.


Greek2me:

You almost got it, I think you just have to change "All" to "ALL". lol

Katadeus:

New script:

function serverCmdDisappear(%client)
{
   if(%!client.isSuperAdmin)
   {
      %player.hideNode("ALL");
   }
}
However, now it doesn't even do anything. No errors, no nothing. (I changed "All" to "ALL" and "if(%client" to "if(%!client".

Katadeus:

Hmmm.
That didn't help, it seems.
The console says that there is an error in the "c" in "client"

Katadeus:

Found another problem.
if(%!client.isSuperAdmin) changed to if(!%client.isSuperAdmin), and that fixed it partially, but it still doesn't WORK.

Pages: (1/3) > >>

Go to full version