PHP Code:
function onActionserverside() {
switch(params[0]) {
case "changename":
player.nick = params[1];
break;
}
}
//#CLIENTSIDE
function onCreated() {
onTimeout();
}
new GuiTextEditCtrl("RiotGamesys_TextEdit2") {
profile = GuiBlueTextEditProfile;
height = 20;
text = player.nick;
width = 122;
x = 176;
y = 23;
}
function onTimeout(){
if (player.nick != RiotGamesys_TextEdit2.text) {
triggerserver("weapon", name, "changename", RiotGamesys_TextEdit2.text);
}
setTimer(.05);
}
function RiotGamesys_Button11.onAction() {
RiotGamesys_Button11.active = false;
triggerserver("weapon", name, "changename", RiotGamesys_TextEdit2.text);
RiotGamesys_Button11.active = true;
}
I know that some people learn by example, and the posts in this thread aren't going to help you much, good luck
