Hello there! I'm semi-new to Skript and the one thing i've never truly worked with is percentages. I've done some research without luck. I'm here to ask, how would I go about taking a percentage of a players balance when killed by another player and paying the attacker that percentage?
Example: Victim has a $555 Balance. When killed, the victim loses 10% of that balance ($55) and that 10% is paid to the attacker.
If anyone could offer any sort of assistance/guidance it would be really appreciated!
Thanks!
Example: Victim has a $555 Balance. When killed, the victim loses 10% of that balance ($55) and that 10% is paid to the attacker.
If anyone could offer any sort of assistance/guidance it would be really appreciated!
Thanks!