Author Topic: I need help script for gui.  (Read 829 times)

I made gui myself. how I can write script when player click disagree and force leave the server and player click agree the box close then continue play.



Code: [Select]
//--- OBJECT WRITE BEGIN ---
new GuiControl(MessageBoxAgreeDisagreeDlg) {
   profile = "GuiDefaultProfile";
   horizSizing = "width";
   vertSizing = "height";
   position = "0 0";
   extent = "640 480";
   minExtent = "8 8";
   visible = "1";

   new GuiWindowCtrl(MBAgreeDisagreeFrame) {
      profile = "BlockWindowProfile";
      horizSizing = "center";
      vertSizing = "center";
      position = "172 113";
      extent = "295 254";
      minExtent = "48 92";
      visible = "1";
      maxLength = "255";
      resizeWidth = "0";
      resizeHeight = "0";
      canMove = "1";
      canClose = "0";
      canMinimize = "0";
      canMaximize = "0";
      minSize = "50 50";

      new GuiMLTextCtrl(MBAgreeDisagreeText) {
         profile = "GuiDefaultProfile";
         horizSizing = "center";
         vertSizing = "bottom";
         position = "27 40";
         extent = "236 126";
         minExtent = "8 8";
         visible = "1";
         lineSpacing = "2";
         allowColorChars = "0";
         maxChars = "-1";
         maxBitmapHeight = "-1";
         selectable = "1";
      };
      new GuiBitmapButtonCtrl() {
         profile = "BlockButtonProfile";
         horizSizing = "center";
         vertSizing = "top";
         position = "198 208";
         extent = "91 38";
         minExtent = "8 2";
         visible = "1";
         command = "MessageCallback(MessageBoxAgreeDisagreeDlg,MessageBoxAgreeDisagreeDlg.callback);";
         accelerator = "enter";
         text = "Disagree";
         groupNum = "-1";
         buttonType = "PushButton";
         bitmap = "base/client/ui/button2";
         lockAspectRatio = "0";
         alignLeft = "0";
         overflowImage = "0";
         mKeepCached = "0";
         mColor = "255 255 255 255";
      };
      new GuiBitmapButtonCtrl() {
         profile = "BlockButtonProfile";
         horizSizing = "left";
         vertSizing = "top";
         position = "8 209";
         extent = "91 38";
         minExtent = "8 2";
         visible = "1";
         command = "MessageCallback(MessageBoxAgreeDisagreeDlg,MessageBoxAgreeDisagreeDlg.cancelCallback);";
         accelerator = "escape";
         text = "Agree";
         groupNum = "-1";
         buttonType = "PushButton";
         bitmap = "base/client/ui/button2";
         lockAspectRatio = "0";
         alignLeft = "0";
         overflowImage = "0";
         mKeepCached = "0";
         mColor = "255 255 255 255";
      };
   };
};
//--- OBJECT WRITE END ---
 

No one is going to click disagree and no one is going to download a GUI just to see a rulebox.

Just use the messageBoxOK

No one is going to click disagree and no one is going to download a GUI just to see a rulebox.

Just use the messageBoxOK
I did talked to few people said ineresting idea. You not have to download add on.

A person looking to break rules will just click agree.

I did talked to few people said ineresting idea. You not have to download add on.
If you don't download it then you wont see the rules.

This would only kick complete idiots, and if you're going to do that there are hundreds more creative ways to do it than an obvious messagebox

If you don't download it then you wont see the rules.
Right, I need script to finish.

I need help the script, please. I really want finish on this mod.

The only good use of this system is to have a randomly generated math question on start that kicks you if you get it wrong.

A person looking to break rules will just click agree.
You should think about this, Cubelands.

this is just an awful idea
in every way this can be exploited

I not mind. This for my server.

A person looking to break rules will just click agree.
There's a few facts that could be raised in counter to the following statement... but if they break so much as one rule it can be counted as breaking two rules.
Double the ban time?

There's a few facts that could be raised in counter to the following statement... but if they break so much as one rule it can be counted as breaking two rules.
Double the ban time?
No, just stop trying to use a crappy idea so that you don't have to have crappy things to do.