Blockland Forums > Modification Help

Client Sided Checking If Server Has An Add On

Pages: (1/2) > >>

jes00:

How would you check if a server has an add on client sided?

phflack:

use a command to server, then that sends a command back?

Ipquarx:

you'd need a server mod, sorry.

Nexus:

Most servers have RTB, which shows a list of all the add-ons the server has.

That's about the best you can do.

Fluff-is-back:


--- Quote from: jes00 on January 01, 2012, 03:45:42 PM ---How would you check if a server has an add on client sided?

--- End quote ---

I imagine, this is to check for an add-on, you will make? if so, as phflack said,  you would need serversided code, something as simple as

--- Code: ---function serverCmdMyModCheck(%client)
{
      commandToClient(%client, 'HasMyMod', 1);
}

--- End code ---

then on you're client-sided script


--- Code: ---function checkForMyMod()
{
      commandToServer('myModCheck');
}

function clientCmdHasMyMod()
{
      //if has mod
      doStuff();
}

--- End code ---

So uppon joining the server, you would call checkForMyMod(), then this would send the command to the server, if the server has the mod, the server will reply activating the clientCmdHasMyMod()

Hope this helps :)

Pages: (1/2) > >>

Go to full version