on death of player:
set {_victim} to victim
set {_attacker} to attacker
if {_attacker} is a player:
set {_victimPoints} to {punkty::%_victim%}
set {_attackerPoints} to {punkty::%_attacker%}
set {_difference} to {_attackerPoints} - {_victimPoints}
set {_percentDifference} to {_difference} / {_attackerPoints} * 100
if {_percentDifference} <= 10:
set {_pointsEarned} to 15
else:
set {_pointsEarned} to 150 * ((_victimPoints} / {_attackerPoints})
remove {_pointsEarned} from {punkty::%_victim%}
add {_pointsEarned} to {punkty::%_attacker%}
mam nadzieję że pomogłem