Hi i am again here
A player have reported to me that function is broken:
if((iItem == CSI_DEFUSER) && !cs_get_user_defuse(id))
new iMoney = cs_get_user_money(id);
if(iMoney >= 200)
cs_set_user_money(id,iMoney - 200);
This is a small fix to discount money if player will buy a defuse, but the problem is for Team TR side.
The money will be deduced if TR not have defuse, and i know that i can add a team check to fix that.
But the real problem is that player have defuser command in autobuy.txt, and CS is trying to buy a defuse even if he is TR.
Ps. It is possible to add a team in function header, soo i not need to retreive cs_get_user_team?
Thanks for read, and sorry if is not a valid issue here.