Jump to content

Recommended Posts

Posted

This is a remake of the flight skript @SfxzGoldenn had created here this one includes when a player gets hit, they will have the flight disable. I didn't put a timer when they get hit to use the flight command again, just something to make for him XD


 

on damage:
	victim is a player:
		if {fly::%victim%} is true:
			set victim's flight mode to false
			delete {fly::%victim%}
			send "&cYou have been attacked by %attacker%, disabeling flight" to victim

command /fly:
	permission: profcube.fly
	trigger:
		set {_p} to player
		if {fly::%{_p}%} isn't set:
			send "&7Flight mode is now &a&lenabled" to player
			set player's flight mode to true
			set {fly::%{_p}%} to true
			stop
		send "&7Flight mode is now &c&ldisabled" to player
		set player's flight mode to false
		delete {fly::%{_p}%}
		stop
		

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...