Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- set {TIME::PISTOLET::%player%} to now
- set {TIME::DEAGEL::%player%} to now
- set {TIME::AK-47::%player%} to now
- set {SPRAY::AK-47::%player%} to false
- set {TIME::M4A1-S::%player%} to now
- set {SPRAY::M4A1-S::%player%} to false
- on quit:
- delete {TIME::PISTOLET::%player%}
- delete {TIME::DEAGEL::%player%}
- delete {TIME::AK-47::%player%}
- delete {SPRAY::AK-47::%player%}
- delete {TIME::M4A1-S::%player%}
- delete {SPRAY::M4A1-S::%player%}
- on script load:
- set {GUN::PISTOLET} to stick named "&cPistol"
- set {AMMO::PISTOLET} to snowball named "&eAmmo &8[&cPistol&8]"
- set {GUN::DEAGEL} to blaze rod named "&cDeagel"
- set {AMMO::DEAGEL} to snowball named "&eAmmo &8[&cDeagel&8]"
- set {GUN::AK-47} to Iron Horse Armor named "&cAK-47"
- set {AMMO::AK-47} to snowball named "&eAmmo &8[&cAK-47&8]"
- set {GUN::M4A1-S} to Gold Horse Armor named "&cM4A1-S"
- set {AMMO::M4A1-S} to snowball named "&eAmmo &8[&cM4A1-S&8]"
- loop all players:
- set {TIME::PISTOLET::%loop-player%} to now
- set {TIME::DEAGEL::%loop-player%} to now
- set {TIME::AK-47::%loop-player%} to now
- set {SPRAY::AK-47::%loop-player%} to false
- set {TIME::M4A1-S::%loop-player%} to now
- set {SPRAY::M4A1-S::%loop-player%} to false
- command /powerguns [<text>]:
- aliases: pg
- trigger:
- if arg 1 is not set:
- message "&8» &7Available guns are &cPistol&7, &cDeagel&7, &cAK-47&7 and &cM4A1-S"
- if arg 1 is "pistol":
- give {GUN::PISTOLET} to player
- message "&8» &7You've been given a &nPistol&7 and some &nPistol Ammo"
- loop 16 times:
- give {AMMO::PISTOLET} to player
- if arg 1 is "deagel":
- message "&8» &7You've been given a &nDeagel&7 and some &nDeagel Ammo"
- give {GUN::DEAGEL} to player
- loop 16 times:
- give {AMMO::DEAGEL} to player
- if arg 1 is "ak47":
- give {GUN::AK-47} to player
- message "&8» &7You've been given an &nAK-47&7 and some &nAK-47 Ammo"
- loop 16 times:
- give {AMMO::AK-47} to player
- if arg 1 is "ak-47":
- message "&8» &7You've been given an &nAK-47&7 and some &nAK-47 Ammo"
- give {GUN::AK-47} to player
- loop 16 times:
- give {AMMO::AK-47} to player
- if arg 1 is "m4a1s":
- message "&8» &7You've been given a &nM4A1-S and some &nM4A1-S Ammo"
- give {GUN::M4A1-S} to player
- loop 16 times:
- give {AMMO::M4A1-S} to player
- if arg 1 is "m4a1-s":
- message "&8» &7You've been given a &nM4A1-S and some &nM4A1-S Ammo"a
- give {GUN::M4A1-S} to player
- loop 16 times:
- give {AMMO::M4A1-S} to player
- #======================================================================
- #======== PISTOL =========
- on left click using stick:
- if player has {AMMO::PISTOLET}:
- if player's tool is {GUN::PISTOLET}:
- set {_czas} to difference between {TIME::PISTOLET::%player%} and now
- if {_czas} is more than 0.6 seconds:
- shoot snowball at speed 100
- damage target entity by 1 hearts
- remove 1 snowball from the player
- set {TIME::PISTOLET::%player%} to now
- #======================================================================
- #======== DEAGEL =========
- on left click using blaze rod:
- if player has {AMMO::DEAGEL}:
- if player's tool is {GUN::DEAGEL}:
- set {_czas} to difference between {TIME::DEAGEL::%player%} and now
- if {_czas} is more than 1.2 seconds:
- shoot snowball at speed 100
- damage target entity by 3 hearts
- remove 1 snowball from the player
- set {TIME::DEAGEL::%player%} to now
- #======================================================================
- #======== AK-47 =========
- on left click using Iron Horse Armor:
- if {SPRAY::AK-47::%player%} is true:
- set {SPRAY::AK-47::%player%} to false
- stop
- if player has {AMMO::AK-47}:
- if player's tool is {GUN::AK-47}:
- set {_czas} to difference between {TIME::AK-47::%player%} and now
- if {_czas} is more than 1 seconds:
- if {SPRAY::AK-47::%player%} is false:
- set {SPRAY::AK-47::%player%} to true
- while {SPRAY::AK-47::%player%} is true:
- if player has {AMMO::AK-47}:
- if player's tool is {GUN::AK-47}:
- wait 5 tick
- shoot snowball at speed 100
- damage target entity by 1 hearts
- remove 1 snowball from the player
- set {TIME::AK-47::%player%} to now
- else:
- set {SPRAY::AK-47::%player%} to false
- stop
- else:
- set {SPRAY::AK-47::%player%} to false
- stop
- #======================================================================
- #======== M4A1-S =========
- on left click using Gold Horse Armor:
- if {SPRAY::M4A1-S::%player%} is true:
- set {SPRAY::M4A1-S::%player%} to false
- stop
- if player has {AMMO::M4A1-S}:
- if player's tool is {GUN::M4A1-S}:
- set {_czas} to difference between {TIME::M4A1-S::%player%} and now
- if {_czas} is more than 1 seconds:
- if {SPRAY::M4A1-S::%player%} is false:
- set {SPRAY::M4A1-S::%player%} to true
- while {SPRAY::M4A1-S::%player%} is true:
- if player has {AMMO::M4A1-S}:
- if player's tool is {GUN::M4A1-S}:
- wait 3 tick
- shoot snowball at speed 100
- damage target entity by 1 hearts
- remove 1 snowball from the player
- set {TIME::M4A1-S::%player%} to now
- else:
- set {SPRAY::M4A1-S::%player%} to false
- stop
- else:
- set {SPRAY::M4A1-S::%player%} to false
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement