View Single Post
  #1  
Old 04-30-2007, 03:06 AM
oo_jazz_oo oo_jazz_oo is offline
Jazz teh Awesome
oo_jazz_oo's Avatar
Join Date: Jul 2006
Location: California
Posts: 596
oo_jazz_oo is a jewel in the roughoo_jazz_oo is a jewel in the rough
Send a message via MSN to oo_jazz_oo
More gui trouble. -.-

Ok, I could never do this. ><
When you press a button, if a certain text in the gui says like "password" then something happens....
I have tried alot of stuff, so, can someone help me? x.x

HTML Code:
//#CLIENTSIDE
function onCreated(){
passwin.destroy();
}
function onWeaponFired(){
new GuiWindowCtrl("passwin") {
  profile = GuiBlueWindowProfile;
  x = 10;
  y = 10;
  canclose=true;
  canmove=true;
  canminimize=false;
  canmaximize=false;
  canresize=false;
  destroyonhide=true;
  width = 160;
  height = 120;
  text = "";
  
  new GuiMLTextCtrl("passs") {
  profile = GuiBlueMLTextProfile;
  x = 10;
  y = 30;
  width = 140;
  height = 10;
  text = "<center>Password:</center>";
}
  
  new GuiTextEditCtrl("password12") {
  profile = GuiBlueTextEditProfile;
  x = 10;
  y = 50;
  width = 140;
  height = 20;
  text = "";
}

 new GuiButtonCtrl("button1") {
   profile = GuiBlueButtonProfile;
   x = 30;
   y = 80;
   width = 100;
   height = 20;
   text = "Submit";
 }
  
}
}

function button1.onAction(){
if (thiso.password12 == "password"){
player.chat = "!";
}
}
Reply With Quote