View Single Post
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 12-06-2016 , 10:19   Re: help with CSPUM.
Reply With Quote #10

You don't need to use/have the count to set it to 0. Once this is done, the weapon will disappear, but like I said it may reappear at new round. Take a look at my plugin to check what I did.

set_pdata_int( ent , m_iCount , 0 , XoCArmoury )

Also not sure but the player is touching the ent so it may get picked up before it is set to 0 so this may be a bad idea. Just kill the entity. Maybe set to 0 then return PLUGIN_HANDLED?
__________________

Last edited by Bugsy; 12-06-2016 at 10:26.
Bugsy is offline