Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
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
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:34 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.