With this method, player's money is still taken.
And you don't need to hook Touch.
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#define PLUGIN "no primaries"
#define AUTHOR "ConnorMcLeod"
#define VERSION "0.0.1"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_AddPlayerItem, "player", "Player_AddPlayerItem")
}
public Player_AddPlayerItem(id, iWeapon)
{
if( ExecuteHam(Ham_Item_ItemSlot, iWeapon) == 1 )
{
SetHamReturnInteger(0)
return HAM_SUPERCEDE
}
return HAM_IGNORED
}
__________________