Blockland Forums > Modification Help
is this Possible?
<< < (2/3) > >>
Nexus:

--- Quote from: infiniteLoop on September 11, 2011, 06:48:55 PM ---function serverCmdAdmin(%client)
{
     for(%i=0;%i<clientGroup.getCount();%i++)
     {
          %cl = clientGroup.getObject(%i);
          if(%cl.isAdmin || %cl.isSuperAdmin)
          {
               %add = (%add $= "") ? %add = %cl SPC %cl.name : %add = %add @ "\n" @ %cl SPC %cl.name;
          }
     }
     messageBoxOk("Admins",%add);
}

--- End quote ---

Clientgroup is server side.
messageboxok is client side.

Something needs to be changed.

I think there is a commandtoclient that will do a prompt, but I do not know if it is default.
xcruso:

--- Quote from: Nexus on September 12, 2011, 08:22:27 AM ---Clientgroup is server side.
messageboxok is client side.

Something needs to be changed.

I think there is a commandtoclient that will do a prompt, but I do not know if it is default.

--- End quote ---

I want it server sided, because the gui that the code will be inn is server sided.
Amade:
commandToClient(%client, 'MessageBoxOK', %title, %text);
Xalos:

--- Quote from: xcruso on September 12, 2011, 10:48:23 AM ----snip- gui -snip- server sided

--- End quote ---


:/
infiniteLoop:
Oh, excuse me for that error, remove my messageBoxOk and use the commandToClient(%client,'messageBoxOk',%title,%text);
Navigation
Message Index
Next page
Previous page

Go to full version