10.10.2010, 10:57
Ok, check "my" script out:
drinks v1
- is same as yours, but instead of 900 lines, i got only 100
drinks v2
- is same as yours, but instead of 900 lines, i got only 160
- also, this got 1d textdraw array ( MAX_PLAYERS ) & 2d array for player ( to store the items )
- in your bag, you can have maximum 25 items ( const MAX_SLOT_ITEMS_PP )
- a item can have maximum 5 index ( const MAX_AMOUNT_ITEM )
- when you buy a item, the textdraw will be updated & showed for player
drinks v3 - recomanded
- ~260 lines
- same as drinks v2
- if you got a item, and you use it ( CLICK 1 ) the textdraw will be updated, the animation will be applyed and the item will decrease
* if item is 0, and another item from another slot ( like ciggy, wine etc. ) a new Special Action will be activated
Anothers: you used Special_action_duck which is 'restricted'
Download:
v1 - http://solidfiles.com/d/c556c/
v2 - http://solidfiles.com/d/4f3d4/
v3 - http://solidfiles.com/d/bb71/
drinks v1
- is same as yours, but instead of 900 lines, i got only 100
drinks v2
- is same as yours, but instead of 900 lines, i got only 160
- also, this got 1d textdraw array ( MAX_PLAYERS ) & 2d array for player ( to store the items )
- in your bag, you can have maximum 25 items ( const MAX_SLOT_ITEMS_PP )
- a item can have maximum 5 index ( const MAX_AMOUNT_ITEM )
- when you buy a item, the textdraw will be updated & showed for player
drinks v3 - recomanded
- ~260 lines
- same as drinks v2
- if you got a item, and you use it ( CLICK 1 ) the textdraw will be updated, the animation will be applyed and the item will decrease
* if item is 0, and another item from another slot ( like ciggy, wine etc. ) a new Special Action will be activated
Anothers: you used Special_action_duck which is 'restricted'
Quote:
1 - SPECIAL_ACTION_DUCK * - Detect if the player is crouching. Notes (*) These Special Actions cannot be set. |
v1 - http://solidfiles.com/d/c556c/
v2 - http://solidfiles.com/d/4f3d4/
v3 - http://solidfiles.com/d/bb71/