code_language.skript:
vb
function pMCUPG(p: player):
set {_u} to {_p}'s uuid
send action bar "&cYou do not have enough money!" to {_p} if {balance::%{_u}%} < 10
{balance::%{_u}%} >= 10
set {_n} to floor({balance::%{_u}%}/10)
remove abs({_n}*10) from {balance::%{_u}%}
add {_n} to {mpc::%{_u}%}
send "&7You have recieved &e+%fN({_n})% MPC&7 for &a$%fN({_n}*10)%&7." to {_p}
Posted by: RandomUser336545 from the skUnity Discord. View the thread on skUnity Discord here