Hai there,
I am making a fly script and I am fairly new to script and need some help.
My script:
If the players flight is enabled and the player logs out then later comes back online, I want the flight mode to be enabled again and if the player is falling for the player to stop falling. I was told packets could do this but I don't know anything about packets
Thank you for any help
I am making a fly script and I am fairly new to script and need some help.
My script:
code_language.skript:
command /fly:
trigger:
if command sender is console:
send "&2&lMCM &8» &aThis command can only be executed by a player!"
if command sender is player:
if {rank::%player's uuid%} is not "vip+" or "mvp" or "legend" or "helper" or "moderator" or "admin" or "developer" or "owner":
send "&2&lMCM &8» &cYou must be &a&lVIP&b&+ &cto use this!"
if {rank::%player's uuid%} is "vip+" or "mvp" or "legend" or "helper" or "moderator" or "admin" or "developer" or "owner":
if {flight::%player's uuid%} is not set:
set {flight::%player's uuid%} to true
set player's flight mode to true
send "&2&lMCM &8» &aYour flight mode was &benabled&a!"
else:
set player's flight mode to false
delete {flight::%player's uuid%}
send "&2&lMCM &8» &aYour flight mode was &bdisabled&a!"
Thank you for any help