Only if you got this function (native_to_check_hero(id)) in this plugin and it returns true.
Natives makes in another way, you should search about them.
Edit: and if you want to add
IF in ham function, you should do like this to prevent errors:
Code:
public player_touchweapon(id, ent)
{
if(somefunc(someparam)) return HAM_SUPERCEDE
return HAM_IGNORED //Return this when you don't want to block picking-up
}
__________________