Quote:
|
Originally Posted by ForgottenLegacy
PHP Code:
new GuiButtonCtrl(MyGui_NameOfButton) {
...
}
MyGui_NameOfButton.onAction() {
...
}
That should do it. Look at what I did and you should be able to figure it out easily. Guis aren't hard at all.
|
I'm pretty sure his problem is that he doesn't know how to communicate with the server.
My suggestion is to follow Bl0nkt's advice and use a triggerfunction, however instead of triggeraction, you should use triggerserver ( syntax: triggerserver("gui", <weaponname>, <actionname>, <param1>, <param2>, ...) )