Code Ranks using Variables

bkuvsna

New member
Joined
Jun 26, 2023
Messages
14
Most of the players use items or code ranks manually, which is very annoying. But if we code ranks in game using variables, It will be much easier. Also, if you want to give players permissions like flying, building, etc. Then Let's see how to do it.

Player Event(Kill Player)->
Set Variables Increment Variables(var=%player%_bal, Number=5)

#Buy Ranks
Player Event(Click Inv)->
If player Item Equals (#lace the item in the chest)->
Piston(
If Variable Compare Number (Var=%player%_bal, More or Equals , Number=#place the amount here)
Piston(
Set Variables Decrement Variable (var=%player%_bal, NUmber=#amounth)
Set Variables Set Variable (var=%player%_rank, Text=#Name of the Rank)
))

#Try message
Player Event (Chat Message)->
Player Action Send Message All(var=%player%_rank, Text=Player% ->, Valur=Player Message)
Game Action Cancel Event

#Grant Permissions
Player Event (#Select as you want)->
If Variable Variable Equals (var=%player%_rank, text=#name of the rank) ->
...[/CODE]


You are Done...
 

veddnt

Active member
Joined
Jun 2, 2023
Messages
201
Can't you use the correct category to post this? Also there is a code block element which isn't correct... Fix it1694502318007.png
 
Top