Author Topic: Client of GUI?  (Read 1087 times)

Do gui's have a client variable? I really hope it does...

Tom

GUIs are client sided. They will not have client variable.

What if I wanted to center print when a client clicks a button?

Tom

clientCmdCenterprint(msg, time);

clientCmdCenterprint(msg, time);

Oh. One more. What if I'm calling a function that changes a variable in the client, therefore I need the client variable?

Tom

You cannot change a variable in the client object because the client object is server side.

You cannot change a variable in the client object because the client object is server side.

Dang it... I was hoping to make a gui for my Name Wand. Guess I can't do that ;-;


But wouldn't the person using the gui be a client? :I

Dang it... I was hoping to make a gui for my Name Wand. Guess I can't do that ;-;
What do you want it to do. I am sure it is possible.

clientCmdCenterprint(msg, time);

Well, isn't that using it clientside? If you wanted to tell from the server, you'd use "commandToClient(client, msg, time);" right?

Tom

Dang it... I was hoping to make a gui for my Name Wand. Guess I can't do that ;-;
Yes you can. You just need to have the client tell the server to turn the name wand variable on. It will be easy for what your doing, because you already have a server command that does that. Considering the simplicity of this, I would make the GUI RTB-compatible too so people who have RTB can use the GUI without having the mod.

commandToServer('namewand', %arg);

Yes you can. You just need to have the client tell the server to turn the name wand variable on. It will be easy for what your doing, because you already have a server command that does that. Considering the simplicity of this, I would make the GUI RTB-compatible too so people who have RTB can use the GUI without having the mod.

commandToServer('namewand', %arg);


Tom. I love you.


What do you mean "RTB-Compatible"? Please example.