Code
#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <cstrike>
new const mClipAmmo = 51
public plugin_init()
{
register_plugin("x","x","x")
RegisterHam(Ham_AddPlayerItem,"player","event")
}
public event(id,idother)
{
if(pev_valid(idother))
return HAM_IGNORED
new item[32]
pev(idother,pev_classname,item,31)
if(equal(item,"weaponbox")==CSW_AWP)
{
set_pdata_int(idother, mClipAmmo, 5, 4)
}
}
Попробуй так