View Single Post
  #1  
Old 08-03-2011, 10:09 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
Custom Chat System

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?
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote