|
Author
|
Message
|
|
Member
Join Date: Nov 2010
Location: China
|

07-24-2011
, 11:52
Re: [HELP] give_item flashbangs
|
#1
|
Quote:
Originally Posted by yokomo
Try this for example:
PHP Code:
#include <amxmodx> #include <cstrike> #include <fun> #define PLUGIN "2,3,4,5,6 FB" #define VERSION "1.0" #define AUTHOR "Administrator" #define FB_AMMO 254 public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("say /fb", "FuntionGiveFB") } public FuntionGiveFB(id) { if(!is_user_alive(id)) return PLUGIN_HANDLED if(user_has_weapon(id, CSW_FLASHBANG)) { cs_set_user_bpammo(id, CSW_FLASHBANG, cs_get_user_bpammo(id, CSW_FLASHBANG)+FB_AMMO) } else { give_item(id,"weapon_flashbang") cs_set_user_bpammo(id, CSW_FLASHBANG, FB_AMMO) } return PLUGIN_HANDLED }
|
thank you! cs_set_user_bpammo can work
and i feel sorry that i post the thread in wrong forum...
|
|
|
|