sry my bad.actually the function "grenade_throw" is called.
PHP Code:
public grenade_throw(id, entity, iId)
{
if( iId == CSW_HEGRENADE && is_user_alive(id) && get_pcvar_num(g_pCvarUnlimitedHeGrenade) )
{
client_print(0,print_center,"GET CALLED");
cs_set_user_bpammo(id, CSW_HEGRENADE, 2);
}
}
i modify ur code like this.when testing,"GET CALLED" displays ,bt cs_set_user_bpammo does not work.
i use latest edition of amx (on Win7 ultimate) downloaded days ago.the problem reminds me of that on the same edition of amx server(set up on Win XP professional),the plugin "gungame" performs not good as well.after setting unlimit ammo to players,server crashes or players didnt actually get infinite ammo.maybe for the same reason that "cs_set_user_bpammo doesnt work"
bt how to solve it?
THX A LOT