Thread: Custom Qmenu
View Single Post
  #3  
Old 08-28-2006, 07:43 PM
contiga contiga is offline
Graal2001 Administration
contiga's Avatar
Join Date: Jul 2004
Location: Netherlands
Posts: 419
contiga is an unknown quantity at this point
Send a message via ICQ to contiga Send a message via AIM to contiga Send a message via MSN to contiga Send a message via Yahoo to contiga
Quote:
Originally Posted by excaliber7388
Excelent I also plan to script one, I hope you don't mind me using this as a base
Ofcourse you can use that as base! Just change player.weapons to an array with weapons you actually want to draw. Something that could make a selection of weapons that you'd like to draw / not to draw:

PHP Code:
temp.wlist.clear();
temp.disabled = { "-", "+"};
for ( 
i: player.weapons) {
  for ( 
j: temp.disabled) {
    if ( !
i.name.starts( j))
      
temp.wlist.add( { i.name, i.image});
  }
}

for ( 
i = 0; i < temp.wlist.size(); i ++) {
  
with ( findImg( 200 + i)) {
    
image = temp.wlist[ i][ 1];
    
x = start x + ( space_between_items_horizontal + 32 * ( i % ammount_of_items_horizontal));
    
y = start y + ( space_between_items_vertical + 32 * int( i / ammount_of_items_horizontal));
    
layer = 4;
  }
} 
Good luck with it! If you have any questions, feel free to ask.
__________________
AIM: Contiga122
MSN: [email protected]
Status:
Quote:
Originally Posted by unixmad View Post
I am also awake 3AM to help correct problems.
Quote:
Originally Posted by Bomy Island RC people
Daniel: HoudiniMan is a bad guy =p
*Bell: rofl. I first read that as houdini is a bad man. like the little kid that wants his mommy to keep her away from that boogie man
Daniel: xD
*Rufus: I wouldn't want my kids around him.

Last edited by contiga; 08-29-2006 at 09:52 AM..
Reply With Quote