#one time usable command problem
1 messages · Page 1 of 1 (latest)
if {server::command::gradess::%player%} is not set:
set {server::command::gradess::%player%} to "Vous avez déjà le grade"
else if {playtime.%player%} >= 140:
send "&7%{server::command::gradess::%player%}%"
execute player command "lp user %player% parent set vip"
message "Vous êtes passé VIP gg"
if {playtime.%player%} < 140:
send "vous ne disposez pas d'assez de temps de jeux" to player ```
format
?
Like this ?
Yes
And
Don’t ping me please
what is the problem i don't understand
also
instead of %player% use %player's uuid%
its better
i prefer to use like
set {_u} to uuid of player
set {playtime::%{_u}%} to 0
yea
whats wrong with it?
i mean the {server::command::gradess::%player%} is a pretty wierd way to do it imo
Look the second screen
?
It is doing both of condition
While I want to execute the commands only if he never used it
Like a one time command
Check if he has permission ig
Also, execute console command would it be im pretty sure
trigger:
if {server::command::gradess::%player%} is not set:
set {server::command::gradess::%player%} to "Vous avez déjà le grade"
else if {playtime.%player%} >= 140:
send "&7%{server::command::gradess::%player%}%"
execute player command "lp user %player% parent set vip"
message "Vous êtes passé VIP gg"
else if {playtime.%player%} < 140:
send "vous ne disposez pas d'assez de temps de jeux" to player ```
try this with an extra else
that might work
I will try when I get home
k
Still the same the thing that you changed was already working
The thing which is not working is that it isn’t blocking the command
Like this
Set a variable, if not true or not set, do something, Else if true or set, do something Else
isn't it what i done?
set {server::command::gradess::%player%} to "Vous avez déjà le grade"
else if {playtime.%player%} >= 140 ```
When are you checking if it is not set?