Author Topic: Images is bottomprint.  (Read 1125 times)

Force them to download the client side add-on or get kicked in the server.
Or remind them that it's really good to have it every 30 seconds, only if they don't have it.

Sure, but when designing the GUI, won't it make the player go into 'mouse' mode when opened?

Am I even in the right section now? :3

Sure, but when designing the GUI, won't it make the player go into 'mouse' mode when opened?
It's possible to make a GUI that doesn't interfere with the mouse.

Just don't put the stuff inside a window, then use the command PlayGui.add(guicontrolname);

Mmkay. I have little to no experience in GUIs, but I assume that's called clientside. If so, how would I go about activating it only in if the mod is on?

Maybe a keybind would be best and forget it? :V

You can check if the mod is running on the server with a method called a "handshake".

Client sided coding:
Code: [Select]
package Handshake_Client
{
function clientCmdYourMod_Handshake(%version)
{
$ServerHasYourMod = true;
$YourMod_ServerVersion = %version;
}
function clientCmdClearMaplist()
{
parent::clientCmdClearMaplist();
$ServerHasYourMod = false;
$YourMod_ServerVersion = 0;
}
};
activatePackage(Handshake_Client);
Server sided:
Code: [Select]
package Handshake_Server
{
function GameConnection::autoAdminCheck(%this)
{
commandToClient(%this, 'YourMod_Handshake', $YourMod_Version);
return parent::autoAdminCheck(%this);
}
};
activatePackage(Handshake_Server);

Wow, that's actually a neat idea... Direct communication between clients/server :o
I mean, obviously its nothing new, but I'm pretty new to scripting, so :3

Well thanks all, I'll definitely be looking into GUIs as an alternative to the good ol' bottomprints.
Once again, thanks for the help.