Guest User

Skrypt na strefe afk

a guest
Jul 4th, 2023
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. #
  2. # SKRYPT BY ZUBIER
  3. # VERSION: 1.0
  4. #
  5.  
  6. command /afk [<text>]:
  7. aliases: zw, zarazwracam, ideafk, jestemafk
  8. cooldown: 5 seconds #Czas uzywania komendy
  9. cooldown message: &cZwolnij trochę! #Wiadomosc o szybkosci uzywania komendy
  10. trigger:
  11. if argument is not set:
  12. if {afk.spawn} is not set:
  13. send "&cStrefa AFK nie jest ustawiona!" #Wiadomosc gdy strefa afk nie jest jeszcze ustawiona
  14. stop
  15. if {afk.%player%} is 1:
  16. wait 0.5 seconds #Czas ile trzeba czekac zeby wykonano skrypt
  17. teleport player to {afk.lokacja}
  18. broadcast "&a%player% jest teraz AFK!" #Wiadomosc ogolne ze gracz nie jest juz afk
  19. send "&cWyszedles z strefy afk!" #Wiadomosc po wyjsciu z strefy afk
  20. play sound "entity.allay.item_taken" to player #Sound effect
  21. set {afk.%player%} to 0
  22. else:
  23. set {afk.lokacja} to location of player
  24. wait 0.5 seconds #Czas ile trzeba czekac zeby wykonano skrypt
  25. teleport player to {afk.spawn}
  26. broadcast "&c%player% juz nie jest AFK!" #Wiadomosc ogolne ze gracz jest afk
  27. send "&eAby z niej wyjsc wpisz ponownie komende &6/AFK"
  28. send "&aWszedles do strefy afk!" #Wiadomosc po wejsciu na strefe afk
  29. play sound "entity.allay.item_given" to player #Sound effect
  30. set {afk.%player%} to 1
  31.  
  32.  
  33. on quit:
  34. broadcast "&c%player% juz nie jest AFK poniewaz opuscil serwer!" #Wiadomosc ogolne ze gracz nie jest juz afk
  35. teleport player to {afk.lokacja}
  36. set {afk.%player%} to 0
  37.  
  38. on join:
  39. if {afk.%player%} is not set:
  40. send "&cByles w strefie afk wiec zostales przetelportowany w ostatnie miejsce po wyjsciu z serwera!" #Wiadomosc po wejsciu na serwer gdy byles na strefie afk
  41.  
  42. command /setafk [<text>]:
  43. permission: afk.*
  44. permission message: &cNie masz permisji!
  45. trigger:
  46. send "&aUstawiono miejsce AFK"
  47. set {afk.spawn} to location of player
  48.  
  49. on command:
  50. if {afk.%player%} is 1:
  51. if command is not "afk" or "msg" or "r": #Dozwolone komendy na strefie afk
  52. cancel event
  53. send "&cNie możesz używać tej komendy w strefie AFK!" #Wiadomosc na strefie afk gdy uzyjesz nie dozwolonej komendy
Advertisement
Add Comment
Please, Sign In to add comment