Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===========================================#
- #=Skript made by Fleft, edited by Mortimier=#
- #===========================================#
- options:
- RSIprefix: &6[&5RandomItems&6]&7
- OpPerm: operator
- PermMess: &6[&5RandomItems&6]&7 You can't use that!
- #CHANGE THE PREFIX ^^^^^^^^^^^^^^^^^
- command /randomitems [<integer>]:
- permission: {@OpPerm}
- permission message: {@PermMess}
- description: "Gives all players some random items"
- usage: "/randomitems [Number of items (defaults to 9)]"
- aliases: /ri
- trigger:
- if arg 1 is not set:
- set {_itemcount} to 9
- else:
- set {_itemcount} to arg 1
- loop {_itemcount} times:
- loop all players:
- execute console command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
- set {_randomitem} to a random integer between 1 and 421
- set {_randomnumber} to a random integer between 1 and 64
- execute console command "/giveall %{_randomitem}%:0 %{_randomnumber}%"
- wait 0.1 seconds
- broadcast "{@RSIprefix} %{_itemcount}% Random Items have been given out!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement