View Single Post
  #9  
Old 08-04-2008, 08:21 PM
The_Kez The_Kez is offline
N-Pulse Asst. Manager
The_Kez's Avatar
Join Date: Dec 2007
Posts: 106
The_Kez is on a distinguished road
Send a message via MSN to The_Kez
Okay well this answers my question about classes Thanks.

As far as joining the functions to the GUI object, the idea I'm getting from you guys for equipping items (since I have a system for custom weapons, I trigger the server for custom weapons to be equipped/unequipped) or similar is to say:

-System/WepName1

PHP Code:
function onEquipobj ) { //catchevent for "Equip" button onAction
  
obj.Run();

To trigger...

PHP Code:
//#CLIENTSIDE
  
public function Run() {
   if ( 
this == "Inv_Button1" ) {
     
//trigger the server of -System/WepName1 to equip the player's item
     //like normal
   
}
   elseif ( 
this == "SomethingElse" ) {
     
//run the function appropriate for when this button is pressed
   
}
   
//etc.

Reply With Quote