This is a complete rip/modification of asskikrs unlimited ammo plugin...
I'm having trouble with the cs_set_user_ammo...as in, its NOT WORKING.
Code:
public changeWeapon(id)
{
if ( !AmmoMaster[id] ) return PLUGIN_CONTINUE
new clip, ammo
if ( wpn_id==CSW_C4 || wpn_id==CSW_HEGRENADE || wpn_id == CSW_SMOKEGRENADE || wpn_id == CSW_FLASHBANG || wpn_id == CSW_KNIFE ) return PLUGIN_CONTINUE
// Never Run Out of Ammo!
server_print("STATUS ID=%d CLIP=%d, AMMO=%d WPN=%d", id, clip, ammo, wpn_id)
if ( clip < 5 )
{
server_print("UNammo Function Running!")
cs_set_weapon_ammo(id, 10);
}
return PLUGIN_CONTINUE
}
The function runs, but never sets the ammo!...wtf!
__________________
AMXX -- You want control? You got it.
tkwired.com cs 1.6 -- tkwired.com:27016