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 = "!";
}
}