You could try this:
Code:
#include <amxmodx>
#include <amxmisc>
#include <tfcx>
#define PLUGIN "NoName"
#define VERSION "1.0"
#define AUTHOR "hlstriker"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("AmmoX" , "ammoCheck" , "b");
return PLUGIN_CONTINUE
}
public ammoCheck(id)
{
new ammo = tfc_getweaponbammo ( id, TFC_WPN_SUPERNG )
if (ammo < 50) {
tfc_setweaponbammo ( id, TFC_WPN_SUPERNG, 50)
}
return PLUGIN_CONTINUE
}
__________________