I am Skripting a RP-System (similar to gta experience levels)
I only got one problem, how do I create a variable that only contains a number which I can check (e.g. if a variable has reached "20" it should trigger something or when it has reached the count of "40")?
If someone is able to improve this "skript" feel free to edit it!
I only got one problem, how do I create a variable that only contains a number which I can check (e.g. if a variable has reached "20" it should trigger something or when it has reached the count of "40")?
If someone is able to improve this "skript" feel free to edit it!
code_language.skript:
on first join:
set {rplevelcount::%player%::*} to 20
add 1 to {rpcount::%player%::*}
set {rplevel::%player%::*} to 1
on join:
add 5 to {rpcount::%player%::*}
message "&7[&9RP&7] &7You got &9 5 RP-Points &7 for joining the server!"
message " &7Your current level: &9{rplevel::%player%::*} {rpcount::%player%::*}/{rplevelcount::%player%::*}"
if {rpcount::%player%::*} equals 20:
set {rplevelcount::%player%::*} to 100
set {rplevel::%player%::*} to 2