Thread: Weapon Return
View Single Post
Plugin Info:     Modification:          Category:          Approver:   ConnorMcLeod (74)
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 07-30-2011 , 00:28   Weapon Return
Reply With Quote #1

Description:
This plugin allows players to return their weapons back to the store for a refund.

Client Commands:
/return - Returns current weapon.

CVars:
rw_percent <percentage> <default:0.80> - How much money players should get back. MUST BE A DECIMAL.
rw_buyzone <0/1> <default:1> - Whether players must be in a buyzone to return their weapons.

Changelog:
Code:
July 30, 2011  - v1.0 - Plugin Release
                    - v1.1 - Few optimizations
                    - v1.2 - Added support for shield return
Credits:
nikhilgupta345 - Code
XxAvalanchexX - ham_strip_weapon stock
Exolent - cs_set_user_shield stock

Installation:
-Click on 'Get Plugin' below
-Place 'weapon_return.amxx' into your plugins folder
-Add the text 'weapon_return.amxx' to the bottom of plugins.ini
-Restart server or change map
Attached Files
File Type: sma Get Plugin or Get Source (weapon_return.sma - 3362 views - 5.1 KB)
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please

Last edited by nikhilgupta345; 07-30-2011 at 21:31.
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345