Dodalem now膮 klas臋 na diablo. Nazwa艂em j膮 z艂odziej i ma ona takie co艣 ...
Jak strzela odbiera jest 1/2 szansy na odebranie 500$$ kasy przeciwnikowi no i odbiera jak strzela tyle, ze jest problem nast臋puj膮cy:
jak mam wybran膮 t膮 klase odbieram kase innym normalnie, ale jak kto艣 we mnie strzela to mi odejmuje du偶o kasy a nie powinno wog贸le i nie wiem co jest 藕le...
no i tak膮 funkcje mam dodan膮, jest to przerobiona po prostu funkcja arrabian boots. Co w niej jest 藕le ?
public add_theif2_bonus(id,attacker_id) { if (player_b_theif2[attacker_id] > 0) { new roll1 = random_num(1,3) if (roll1 == 1) { if (cs_get_user_money(id) > player_b_theif2[attacker_id]) { cs_set_user_money(id,cs_get_user_money(id)-player_b_theif2[attacker_id]) if (cs_get_user_money(attacker_id) + player_b_theif2[attacker_id] <= 16000) { cs_set_user_money(attacker_id,cs_get_user_money(attacker_id)+player_b_theif2[attacker_id]) } } else { new allthatsleft = cs_get_user_money(id) cs_set_user_money(id,0) if (cs_get_user_money(attacker_id) + allthatsleft <= 16000) { cs_set_user_money(attacker_id,cs_get_user_money(id) + allthatsleft) } } } } }