I have this
PHP Code:
new const custom_base[][] = { "info_target", "hostage_entity", "monster_scientist", "player" }
public plugin_init()
{
for (new n; n < sizeof custom_base; n++)
RegisterHam(Ham_Touch, custom_base[n], "touch_item")
}
PHP Code:
public touch_item(ent, touched)
{
if(1 <= touched <= 32)
// code
}
i think is will be COMPARE+BRANCH
PHP Code:
public touch_item(ent, touched)
{
if(touched <= 32 && touched > 0)
// code
}
i think is will be COMPARE, COMPARE+BRANCH
or this
PHP Code:
public touch_item(ent, touched)
{
if(1 <= touched <= get_maxplayers())
// code
}
CALL get_maxplayers() and COMPARE+BRANCH
__________________