Code:
public fwTakeDamage(id, weapon, attacker, Float:damage)
{
if(!is_user_alive(attacker))
return
if( get_user_team( attacker ) == get_user_team( id ) )
return ;
damage >= 2
set_money(attacker, floatround(damage))
}
About the second problem there's probably something wrong in your calculation here
Code:
public set_money(id, value)
{
new money = cs_get_user_money(id)+value
money = amx_clamp(money, (get_user_flags(id) & ADMIN_ACCESS) ? LIMIT_ADMIN_VIP:LIMIT)
cs_set_user_money(id, money)
}
__________________