View Single Post
  #3  
Old 07-16-2007, 07:26 AM
Cherrykao Cherrykao is offline
Banned
Join Date: Apr 2007
Posts: 37
Cherrykao is on a distinguished road
can you show an example? i tried it before, but couldn't get it to work:

PHP Code:
function onActionServerside() {
  
player.triggerclient("Clientside",this.name,NULL);
}


//#CLIENTSIDE
function onPlayerChats() {
  if (
player.chat == "/commands") {
    
triggerserver("Serverside", this.name,NULL);
  }
}

function 
onActionClientside() {
  new 
GuiDrawingPanel("dp_eventgui") {
    
width = 320;
    
height = 64;
    
x = ((screenwidth - width) - 10);
    
y = 10;
    
clearall();
    
drawimage(0,0,"imagegui.png");
    
canMove = false;
    
canResize = 0;
    
visible = 1;
    
canClose = 1;
    
canMaximize = 0;
    
canMinimize = 0;
    
    new 
GuiBitmapButtonCtrl("bmpbtn_joinevent") {
      
width = 30;
      
height = 30;
      
x = 260;
      
y = 21;
      
normalbitmap = "button.png";
      
mouseoverbitmap = "button1.png";
      
pressedbitmap = "button.png";
    }
  } 
// gui end
} 
Reply With Quote