| 1 | function scr_weaponcheck_inventory |
| 2 | { |
| 3 | haveit = 0; |
| 4 | itemcount = 0; |
| 5 | for (i = 0; i < 48; i += 1) |
| 6 | { |
| 7 | if (global.weapon[i] == arg0) |
| 8 | haveit = 1; |
| 9 | if (global.weapon[i] == arg0) |
| 10 | itemcount += 1; |
| 11 | } |
| 12 | return haveit; |
| 13 | } |