I need to block CT's from taking weapons from ground, Ive tried this:
But it have bugs, it block CT's taking weapons that they throw, but they can pick up weapons that map spawns or that other players drop.
PHP Code:
RegisterHam(Ham_Touch, "weaponbox", "fw_TouchWeapon")
PHP Code:
public fw_TouchWeapon(weapon, id)
{
if (cs_get_user_team(id) == CS_TEAM_CT)
return HAM_SUPERCEDE;
return HAM_IGNORED;
}
__________________