Advertisement
fleft17

Untitled

Apr 30th, 2014
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. #===========================================#
  2. #=Skript made by Fleft, edited by Mortimier=#
  3. #===========================================#
  4.  
  5. options:
  6. RSIprefix: &6[&5RandomItems&6]&7
  7. OpPerm: operator
  8. PermMess: &6[&5RandomItems&6]&7 You can't use that!
  9.  
  10. #CHANGE THE PREFIX ^^^^^^^^^^^^^^^^^
  11.  
  12. command /randomitems [<integer>]:
  13. permission: {@OpPerm}
  14. permission message: {@PermMess}
  15. description: "Gives all players some random items"
  16. usage: "/randomitems [Number of items (defaults to 9)]"
  17. aliases: /ri
  18. trigger:
  19. if arg 1 is not set:
  20. set {_itemcount} to 9
  21. else:
  22. set {_itemcount} to arg 1
  23. loop {_itemcount} times:
  24. loop all players:
  25. execute console command "/playsound note.pling %loop-player% ~ ~ ~ 1 1 1"
  26. set {_randomitem} to a random integer between 1 and 421
  27. set {_randomnumber} to a random integer between 1 and 64
  28. execute console command "/giveall %{_randomitem}%:0 %{_randomnumber}%"
  29. wait 0.1 seconds
  30. broadcast "{@RSIprefix} %{_itemcount}% Random Items have been given out!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement