Thread: GUI Help
View Single Post
  #1  
Old 03-30-2011, 09:12 AM
kingcj kingcj is offline
Registered User
kingcj's Avatar
Join Date: Apr 2006
Location: TN
Posts: 114
kingcj will become famous soon enough
Send a message via MSN to kingcj
Here it's not really anything special lol

PHP Code:
function onActionSeverSide() {
  if (
params[0] == "namer") {
    
params[1] = player.nick;
    echo(@ 
params[1]);
  }
}
      
//#CLIENTSIDE
function onWeaponFired() {
  new 
GuiWindowCtrl("Name_Window1") {
    
profile GuiBlueWindowProfile;
    
clientrelative true;
    
clientextent "316,157";

    
canclose false;
    
canmaximize false;
    
canminimize false;
    
canmove false;
    
canresize false;
    
closequery false;
    
destroyonhide true;
    
text "Your Name";
    
359;
    
228;

    new 
GuiTextEditCtrl("Name_TextEdit1") {
      
profile GuiBlueTextEditProfile;
      
height 20;
      
width 80;
      
21;
      
40;
    }
    new 
GuiTextCtrl("Name_Text1") {
      
profile GuiBlueTextProfile;
      
height 20;
      
text "What's Your Name?";
      
width 96;
      
19;
      
9;
    }
    function 
Name_TextEdit1.onAction() {
      
triggerserver("gui",this.name,"namer",Name_TextEdit1.text);
      
Name_Window1.destroy();
    }
  }

__________________
Zie

"It is not necessary to change. Survival is not mandatory." - W. Edwards Deming
Reply With Quote