PHP Code:
#include <amxmodx>
#include <cstrike>
#define NO_BULLET_WEAPONS_BITSUM ((1<<CSW_C4)|(1<<CSW_KNIFE)|(1<<CSW_HEGRENADE)|(1<<CSW_SMOKEGRENADE)|(1<<CSW_FLASHBANG))
public plugin_init() {
register_plugin("New-Era_UnlimitedAmmo", "1.0.1", "ConorrMcLeod")
register_event("CurWeapon", "event_curweapon", "be", "1=1")
}
public event_curweapon(id) {
new weaponID=read_data(2)
if( !(NO_BULLET_WEAPONS_BITSUM & (1<<weaponID)) ) {
cs_set_user_bpammo(id, weaponID, 255)
}
}
Well, it causes an error and it comes from cs_set_user_bpammo.
The author is banned, so i can't ask it there
__________________