MostFunGuy

Untitled

Nov 19th, 2013
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. #
  2. # MFG's Skript to make breakable sign homes
  3. #
  4. #
  5.  
  6. on sign edit:
  7. first line is "[HOME]"
  8. second line is blank:
  9. set line 1 to "CANCELLED"
  10. set line 2 to "MAKE SURE TO"
  11. set line 3 to "ADD A HOME-NAME"
  12. set line 4 to "ON LINE 2"
  13. stop
  14. if player has permission "homes.count.1":
  15. if {homes.%player%::*} is more than 0:
  16. message "<yellow>You alrady have a home, you are only authorized <gold>ONE <yellow>home!" to player
  17. set line 1 to "CANCELLED"
  18. set line 2 to "YOU CAN ONLY"
  19. set line 3 to "HAVE ONE"
  20. set line 4 to "HOME!!!!"
  21. stop
  22. if player has permission "homes.count.3":
  23. if {homes.%player%::*} is more than 2:
  24. message "<yellow>You alrady have <gold>three <yellow>homes, you are only authorized <gold>THREE <yellow>homes!" to player
  25. set line 1 to "CANCELLED"
  26. set line 2 to "YOU CAN ONLY"
  27. set line 3 to "HAVE THREE"
  28. set line 4 to "HOMES!!!!"
  29. stop
  30. if {homes.%player%::%line 2%} is set:
  31. message "HEY! Remember each home of your's has to have a unique name!" to player
  32. set line 1 to "CANCELLED"
  33. set line 2 to "YOU HOME NAMES"
  34. set line 3 to "HAVE TO BE"
  35. set line 4 to "UNIQUE"
  36. stop
  37. # Rest of the code, the checks are done!
  38. set {homes.%player%::%line 2%} to true
  39. set {homes.location.%player%::%line 2%} to the block's location
  40. set {homes.sign.%player%::%line 2%} to block
Advertisement
Add Comment
Please, Sign In to add comment