Thread
:
Weapon Return
View Single Post
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
07-30-2011 , 04:53 Re: Weapon Return
#
5
You don't need to check for weapon_knife and weapon_c4.
Instead you can :
- check if iWeapon is CSW_C4 or CSW_KNIFE
or
- check weapon cost before you send ham_strip_weapon and then check if price is > 0
You don't need to clamp money, just use min(cs_get_user_money( id ) + iRefund, 16000).
You could add shield return.
Other than that, code is ok.
__________________
- tired and retired -
- my plugins -
ConnorMcLeod
View Public Profile
Send a private message to ConnorMcLeod
Find More Posts by ConnorMcLeod