Please help, I use a variable to block skimmed off arms but when the variable is 0 so sometimes still do not pick up weapons "armoury_entity" I do not understand why please help.
PHP Code:
RegisterHam(Ham_Touch,"weaponbox","player_touchweapon")
RegisterHam(Ham_Touch,"armoury_entity","player_touchweapon")
PHP Code:
public player_touchweapon(id, ent)
{
if(g_BlockWeapons) return HAM_SUPERCEDE
return HAM_IGNORED
}
EDIT: But when a player takes a gun "weaponbox" and had him pick up a gun goes' armoury_entity "but straight weapon" armoury_entity "not ...
__________________