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";
x = 359;
y = 228;
new GuiTextEditCtrl("Name_TextEdit1") {
profile = GuiBlueTextEditProfile;
height = 20;
width = 80;
x = 21;
y = 40;
}
new GuiTextCtrl("Name_Text1") {
profile = GuiBlueTextProfile;
height = 20;
text = "What's Your Name?";
width = 96;
x = 19;
y = 9;
}
function Name_TextEdit1.onAction() {
triggerserver("gui",this.name,"namer",Name_TextEdit1.text);
Name_Window1.destroy();
}
}
}