Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.
If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!
Now, what are you waiting for? Join the community now!
You can always check out skUnity Downloads for downloads and any other information about Skript!
Idk how to use format but i guess i have thisCan you give us your current code?
Does this help?I mean, that doesn't really help a lot because I have no idea how your players get their money...
Yes, thank you! I'll get straight to workDoes this help?
every 3 seconds:
loop all players:
loop all blocks in radius 1 of loop-player:
if loop-block is black stained glass:
add 1 to loop-player's balance
on join:
if {multiplier.%player's uuid%} is not set:
set {multiplier.%player's uuid%} to 1
command /rebirth:
trigger:
if player's balance >= 20000:
if player has brown stained glass named "&6&lGodly":
execute server command "eco reset %player%"
add 0.1 to {multiplier.%player's uuid%}
every 3 seconds:
loop all players:
loop all blocks in radius 1 of loop-player:
if loop-block is black stained glass:
add 1 * {multiplier.%loop-player's uuid%} to loop-player's balance
Umm one question, what does add 1 * {multiplier.%loop-player's uuid%} to loop-player's balance do is it needed? It looks like it adds multiplier every 3 seconds so just asking at the last line.Yes, thank you! I'll get straight to work
[doublepost=1579363152,1579363008][/doublepost]try this
Code:on join: if {multiplier.%player's uuid%} is not set: set {multiplier.%player's uuid%} to 1 command /rebirth: trigger: if player's balance >= 20000: if player has brown stained glass named "&6&lGodly": execute server command "eco reset %player%" add 0.1 to {multiplier.%player's uuid%} every 3 seconds: loop all players: loop all blocks in radius 1 of loop-player: if loop-block is black stained glass: add 1 * {multiplier.%loop-player's uuid%} to loop-player's balance
Ok so if you rebirth again it would just add 0.1 again i guess now thx for helping meIf you want the multiplier do anything, yes. What it does is if you rebirthed once, you would start gaining 1.1 dollars every 3 seconds, that line of code is what gives you the money