Hi guys, this is my code:
PHP Code:
RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage")
RegisterHam(Ham_Touch, "armoury_entity", "FwdHamPickupWeapon")
RegisterHam(Ham_Touch, "weaponbox", "FwdHamPickupWeapon")
public fw_TakeDamage(victim, inflictor, attacker, Float:damage)
{
if(victim != attacker && is_user_connected(attacker))
{
if(cs_get_user_team(attacker) == CS_TEAM_T)
{
if(get_user_weapon(attacker) == CSW_KNIFE)
{
SetHamParamFloat(4, damage * 0.5)
}
}
}
}
public FwdHamPickupWeapon(id, ent)
{
if(cs_get_user_team(id) == CS_TEAM_T)
{
return HAM_SUPERCEDE
}
return HAM_IGNORED
}
and when i tested it, the terrorist's knife damage is still the same, and they still can pick up weapons.
Can you guys detected any problem in my code

Thanks.
p/s: Can you guys show me how to block the message with player name and health when drag cursor to player ?
__________________