Thread: Custom Qmenu
View Single Post
  #5  
Old 08-29-2006, 02:31 AM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Quote:
Originally Posted by contiga
For drawing players weapons use:
PHP Code:
for ( i = 0; i < player.weapons.size(); i ++) {
  
with ( findImg( 200 + i)) {
    
image = player.weapons[ i].image;
    
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;
  }
} 
Change:
space_between_items_horizontal
space_between_items_vertical
ammount_of_items_horizontal
Into what you want that thing to be.
Excelent I also plan to script one, I hope you don't mind me using this as a base
Reply With Quote