Try this. I know that it is not what you want completely but check if you like it.
PHP Code:
#include <amxmodx>
#include <fakemeta_util>
#include <hamsandwich>
#define PLUGIN "New Plugin"
#define AUTHOR "Unknown"
#define VERSION "1.0"
new rifles_active[33]
new HamHook:AddPlayerItemHook
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("rifles","rifles")
AddPlayerItemHook = RegisterHam(Ham_AddPlayerItem,"player","playerAddItem")
}
public playerAddItem(id,itemID)
{
return HAM_SUPERCEDE;
}
public rifles(id)
{
rifles_active[id] = 1;
if(rifles_active[id])
{
DisableHamForward(AddPlayerItemHook);
fm_give_item(id, "weapon_usp")
fm_give_item(id, "weapon_deagle")
fm_give_item(id, "weapon_ak47")
fm_give_item(id, "weapon_m4a1")
EnableHamForward(AddPlayerItemHook);
}
return PLUGIN_HANDLED;
}
__________________