Come on guys, you know the good old online rpg games!
anyway basically iv got a script where when the player chats it shows all players chat in a window. the only problem is it only will show one players chat then when another player chats it disappears.
how would i make this so when you chat it shows it and when someone else chats your chat gets pushed up and theirs goes where yours was?
PHP Code:
//#CLIENTSIDE
function onPlayerChats(){
server.chat = player.chat;
}
function onCreated() {
ChatBar.width = 600;
ChatBar.alpha = 0.6;
ChatBar.useownprofile = true;
ChatBar.profile.bitmap = "Test_textedit.png";
ChatBar.height = 25;
ChatBar.y = 783;
ChatBar.x = 0;
new GuiWindowCtrl("MyGUI_Window1") {
profile = GuiBlueWindowProfile;
clientrelative = true;
clientextent = "588,100";
canclose = false;
canmaximize = false;
canminimize = false;
canmove = false;
canresize = false;
closequery = false;
destroyonhide = false;
alpha = 0.6;
x = 0;
y = 653;
}
setTimer(0.05);
}
function onTimeout() {
for (temp.p: players) {
temp.player_chat = temp.p.chat.trim();
if (temp.p.chat != "") {
new GuiTextCtrl("PlayersChat") {
profile = GuiBlueTextProfile;
height = 20;
width = 600;
text = temp.p.nick@": "@server.chat;
width = 200;
x = 7;
y = 757;
}
}
}
setTimer(0.05);
}
Just wondering if its even possible?