GamePL7

Report

Aug 5th, 2016
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. #===========================================#
  2. # Report.sk #
  3. #===========================================#
  4. #Versia: 1.0. #
  5. #Autor: GamePL7. #
  6. #Wszystkie prawa zastrzeżone! #
  7. #===========================================#
  8. #Reporty zapisują się w folderze: Skript --> logs --> reporty.log (Plik Tekstowy)!#
  9.  
  10. #--------------------------- Opcje: ------------------------------#
  11. Options:
  12. nazwa: Report.sk #Nazwa skryptu (Domyslna: "Report.sk")!.
  13. pex_text: &4Poprawne uzycie: &c/report (nazwa gracza) (powod). #Wiadomosc po wpisaniu blednych argumentów!.
  14. czas_text: &4Mozesz zglaszac innych graczy co &c5 &4min!. #Wiadomosc po wykonaniu zgloszenia!.
  15. pex_no: &4Nie posiadasz uprawnien!. #Wiadomosc gdy gracz nie ma uprawnien!.
  16. czas: 5 #Czas co ile ma byc dostepne zgloszenie (W minutach)
  17.  
  18.  
  19. Variables:
  20. {report.%player%} = true
  21.  
  22. command /report [<text>] [<text>]:
  23. trigger:
  24. if argument 1 is not empty:
  25. if argument 2 is not empty:
  26. if {report} is true:
  27. log "%player% zglosil: '%argument 1%' Powod: '%argument 2%'" to "reporty"
  28. send "&aReportowanie gracza &a'&e%argument 1%&a' przebieglo pomyslnie!." to player
  29. set {report} to false
  30. wait {@czas} minutes
  31. set {report} to true
  32. else:
  33. send "{@czas_text}"
  34. else:
  35. send "{@pex_text}" to player
  36. if arg 1 is "reload":
  37. if arg 2 is not set:
  38. if player has permission "report.command.admin.reload":
  39. execute console command "skript reload {@nazwa}"
  40. send "&aPomyslnie przeladowales skript: {@nazwa}" to player
  41. send "&eSkript &c{@nazwa} &ezostal przeladowany!." to console
  42. else:
  43. send "{@pex_no}" to player
Advertisement
Add Comment
Please, Sign In to add comment