Advertisement
SKFluffey

SkAd

Jul 25th, 2014
415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. #SkAD#
  2. #SkriptinFluffy#
  3. command /skad [<text>] [<number>] [<text>]:
  4. trigger:
  5. if arg 1 is "setprice":
  6. set {skad.price} to arg 2
  7. broadcast "&l[SkAD]"
  8. broadcast "&aNew advertising price set to: %arg 2% in-game cash!"
  9. else if arg 1 is "add":
  10. if {balance.%player%} is more than or equal to {skad.price}:
  11. broadcast "&l[SkAD]"
  12. broadcast "&a%player%'s advertisement: %arg 3%"
  13. set {skad.message.%player%} to arg 3
  14. add player to {skad.list::*}
  15.  
  16. else if arg 1 is "list":
  17. if size of {skad.list::*} is more than or equal to 1:
  18. message "&l[SkAd]"
  19. message "&a%{skad.list::*}%"
  20.  
  21.  
  22. every 1 minute:
  23. set {_message} to a random element out of {skad.list::*}
  24. broadcast "&l[SkAd] &r&a%{skad.message.%{message}%}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement