A amxmodx plugin has to be with pcvars.
And since it's more strict when It comes to SHs it should obvious to use it.
And the cvar is called multiple times.
Example of the new round event.
Though it's called more often than new round is
since he is registering it with "ResetHud"
Code:
public newRound(id)
{
if ( shModActive() && gHasLuckyLukePowers[id] && is_user_alive(id) && get_cvar_num("luckyluke_getdeagle") == 1) // This cvar is called multiple times
{
shGiveWeapon(id,"weapon_deagle")
new clip, ammo, wpnid = get_user_weapon(id, clip, ammo)
if ( wpnid != CSW_DEAGLE && wpnid > 0 ) {
new wpn[32]
get_weaponname(wpnid, wpn, 31)
engclient_cmd(id, wpn)
}
}
}
__________________