Hi guys i have problem with ham reload..
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <hamsandwich>
#include <fakemeta>
new const PLUGIN[] = "Unlimited Reloads (For paintball)";
new const VERSION[] = "1.0";
new const AUTHOR[] = "MercedeS";
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
RegisterHam(Ham_Weapon_Reload, "paintball_reload");
}
public paintball_reload(weapon_entity)
{
new id = pev(weapon_entity, pev_owner);
new weapon = get_user_weapon(id);
switch(weapon)
{
case CSW_MP5NAVY:
{
cs_set_user_bpammo(id, CSW_MP5NAVY, 120);
}
case CSW_GLOCK18:
{
cs_set_user_bpammo(id, CSW_GLOCK18, 120);
}
case CSW_USP
{
cs_set_user_bpammo(id, CSW_USP, 100);
}
}
}
CAn someone try too fix?
__________________