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
