Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on script load:
- set {sql} to the database "mysql://62.4.16.4:3306/s5_minigames?user=u5_05Wy65tqii&password=USzdQ9QmKRU6sTpF&useSSL=false"
- options:
- logo: &8│&r &l&2FFA&8 •&7
- Logo: &8│&r &l&2FFA&8 •&7
- damageindicator: &f%victim% &f%health of victim% &4❤
- function updateScore(p: player):
- getHighest()
- wipe {_p}'s sidebar
- set name of sidebar of {_p} to "&2&lFFA Arena"
- set score "&8&m------------------" in sidebar of {_p} to 7
- set score "&7 Total Kills &8» &a%{totalkills.%{_p}%}%" in sidebar of {_p} to 6
- set score "&7 Deaths &8» &a%{deaths.%{_p}%}%" in sidebar of {_p} to 5
- set score "&7 Killstreak &8» &a%{killstreak.%{_p}%}%" in sidebar of {_p} to 4
- set score "&7 Highest KS &8» &a%{record.ks.%{uuid.%{_p}%}%}%" in sidebar of {_p} to 3
- set score "&3" in sidebar of {_p} to 2
- set score "&7mc.elementmc.eu" in sidebar of {_p} to 1
- function record(p: player):
- set {uuid.%{_p}%} to {_p}'s UUID
- if {record.ks.%{uuid.%{_p}%}%} is not set:
- set {record.ks.%{uuid.%{_p}%}%} to 0
- if {killstreak.%{_p}%} is not set:
- set {killstreak.%{_p}%} to 0
- if {killstreak.%{_p}%} > {record.ks.%{uuid.%{_p}%}%}:
- set {record.ks.%{uuid.%{_p}%}%} to {killstreak.%{_p}%}
- on join:
- if name of player is "_C02":
- op the player #for testing
- on death of player:
- record(player)
- delete {killstreak.%victim%}
- add 1 to {killstreak.%attacker%}
- if {killstreak.%attacker%} = 3:
- broadcast "&8│ &9KillStreak &8• &6%attacker% &7now has a killstreak of &2&l3"
- else if {killstreak.%attacker%} = 6:
- broadcast "&8│ &9KillStreak &8• &6%attacker% &7now has a killstreak of &a&l6"
- else if {killstreak.%attacker%} = 9:
- broadcast "&8│ &9KillStreak &8• &6%attacker% &7now has a killstreak of &e&l9"
- else if {killstreak.%attacker%} = 12:
- broadcast "&8│ &9KillStreak &8• &6%attacker% &7now has a killstreak of &6&l12"
- else if {killstreak.%attacker%} = 15:
- broadcast "&8│ &9KillStreak &8• &6%attacker% &7now has a killstreak of &c&l15"
- else if {killstreak.%attacker%} = 18:
- broadcast "&8│ &9KillStreak &8• &6%attacker% &7now has a killstreak of &4&l18"
- else:
- send "&8│ &9KillStreak &8• &7You have a killstreak of &9%{killstreak.%attacker%}%" to attacker
- updateScore(attacker)
- updateScore(victim)
- on join:
- set {tp.%player%} to a random integer between 1 and 10
- while player is online:
- set tab header to "&a&lAncient &8» &7FFA Arena" and footer to "&7Ping &8» &a%player's ping%%nl%&7TPS &8» &a%{tps}%" for player
- wait 5 seconds
- clear player's inventory
- heal the player
- give player 1 iron sword of sharpness 1
- give player 1 fishing rod
- give player 1 bow of power 1
- give player 64 5:1
- give player 1 322 named "&7Absoption: &aOn"
- give player 32 golden carrot
- give player 64 arrows
- equip player with iron helmet of Projectile Protection 1
- equip player with iron chestplate of protection 1
- equip player with iron leggings of Projectile Protection 1
- equip player with diamond boots of protection 1
- give player 1 flint and steel
- wait 3 ticks
- if {tp.%player%} is 1:
- teleport player to {spawnpoint.1}
- if {tp.%player%} is 2:
- teleport player to {spawnpoint.2}
- if {tp.%player%} is 3:
- teleport player to {spawnpoint.3}
- if {tp.%player%} is 4:
- teleport player to {spawnpoint.4}
- if {tp.%player%} is 5:
- teleport player to {spawnpoint.5}
- if {tp.%player%} is 6:
- teleport player to {spawnpoint.6}
- if {tp.%player%} is 7:
- teleport player to {spawnpoint.7}
- if {tp.%player%} is 8:
- teleport player to {spawnpoint.8}
- if {tp.%player%} is 9:
- teleport player to {spawnpoint.9}
- if {tp.%player%} is 10:
- teleport player to {spawnpoint.10}
- on death:
- set death message to ""
- if victim is a player:
- if attacker is a player:
- broadcast "&a%attacker% &7killed &c%victim%"
- execute "UPDATE Coins set Coins = Coins+1 where Playername = %name of attacker%" in {sql}
- send "{@Logo} You have recieved &61 GC &7for killing someone." to attacker
- give attacker 1 322 named "&7Absoption: &aOn"
- add 1 to {totalkills.%attacker%}
- add 1 to {deaths.%victim%}
- on damage:
- set action bar of attacker to "{@damageindicator}"
- every 5 seconds:
- set {tps} to tps
- loop all players:
- if {deaths.%loop-player%} is not set:
- set {deaths.%loop-player%} to 0
- if {totalkills.%loop-player%} is not set:
- set {totalkills.%loop-player%} to 0
- wipe loop-player sidebar
- set name of sidebar of loop-player to "&2&lFFA Arena"
- set score "&8&m------------------" in sidebar of loop-player to 7
- set score "&7 Total Kills &8» &a%{totalkills.%loop-player%}%" in sidebar of loop-player to 6
- set score "&7 Deaths &8» &a%{deaths.%loop-player%}%" in sidebar of loop-player to 5
- set score "&7 Killstreak &8» &an/a" in sidebar of loop-player to 4
- set score "&7 Highest KS &8» &an/a" in sidebar of loop-player to 3
- set score "&3" in sidebar of loop-player to 2
- set score "&7mc.elementmc.eu" in sidebar of loop-player to 1
- on respawn:
- set {tp.%player%} to a random integer between 1 and 10
- clear player's inventory
- give player 1 iron sword of sharpness 1
- give player 1 fishing rod
- give player 1 bow of power 1
- give player 64 5:1
- give player 1 322 named "&7Absoption: &aOn"
- give player 32 golden carrot
- give player 64 arrows
- give player 1 flint and steel
- equip player with iron helmet of Projectile Protection 1
- equip player with iron chestplate of protection 1
- equip player with iron leggings of Projectile Protection 1
- equip player with diamond boots of protection 1
- if {tp.%player%} is 1:
- teleport player to {spawnpoint.1}
- if {tp.%player%} is 2:
- teleport player to {spawnpoint.2}
- if {tp.%player%} is 3:
- teleport player to {spawnpoint.3}
- if {tp.%player%} is 4:
- teleport player to {spawnpoint.4}
- if {tp.%player%} is 5:
- teleport player to {spawnpoint.5}
- if {tp.%player%} is 6:
- teleport player to {spawnpoint.6}
- if {tp.%player%} is 7:
- teleport player to {spawnpoint.7}
- if {tp.%player%} is 8:
- teleport player to {spawnpoint.8}
- if {tp.%player%} is 9:
- teleport player to {spawnpoint.9}
- if {tp.%player%} is 10:
- teleport player to {spawnpoint.10}
- command /staff [<text>]:
- permission: rank.moderator
- trigger:
- if {staffmode::%player%} is not set:
- wait 1 tick
- clear player's inventory
- message "&8[&5Staff Mode&8] &7Staff Mode: &aEnabled"
- wait 1 tick
- hide player from all players
- equip player with chain leggings
- wait 1 tick
- enchant the player's leggings with unbreaking 3
- enchant the player's leggings with protection 1
- wait 1 tick
- set slot 2 of player to a music disc named "&aRandom TP"
- set slot 1 of player to redstone named "&bInv Opener"
- set slot 2 of player to player head named "&bTeleport To Last Report"
- set slot 3 of player to a gray dye named "&9&lVisible&8&l: &fOff"
- set slot 4 of player to a lead named "&9Follower &7(Follow Players Around) "
- set player's gamemode to creative
- else:
- message "&8[&5Staff Mode&8] &7Staff Mode: &cDisabled"
- delete {staffmode::%player%}
- wait 1 ticks
- clear player's inventory
- set player's gamemode to survival
- reveal player from all players
- clear inventory of player
- command /giveall <item> [<integer>]:
- usage: /giveall <item> [<amount>]
- permission: rank.owner
- trigger:
- if arg-2 is more than 1:
- set {_amt} to arg-2
- else:
- set {_amt} to 1
- loop all players:
- loop {_amt} times:
- if loop-player has space for (1 of (arg-1)):
- give loop-player (1 of (arg-1))
- else:
- drop (1 of (arg-1)) at (location 0.5 above loop-player)
- broadcast "&a%sender% &7Give all players &a%{_amt}% %arg-1%'s&7."
- on weather change:
- cancel event
- command /setspawnpoints <text>:
- permission: rank.owner
- trigger:
- send "{@Logo} You have create a spawnpoint at location &a%Location%&7."
- set {spawnpoint.%arg-1%} to location of player
- on place:
- wait 5 seconds
- delete the block
- on break:
- cancel event
- on join:
- set join message to "&7(&a+&7) &7%player%"
- on quit:
- set leave message to "&7(&c-&7) &7%player%"
- on drop:
- cancel event
- on rightclick with dye:
- execute player command "/vanish"
- on damage of player:
- attacker is a player
- projectile doesn't exist
- if distance between attacker and victim is greater than 5:
- cancel event
- add 1 to {reach.%attacker%}
- loop all players:
- if loop-player has permission "uhc.admin" or "rank.support":
- send "&7[&aCheat Shield&7] &f%attacker% is possibly hacking (reach)." to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement