Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===========================================#
- # Report.sk #
- #===========================================#
- #Versia: 1.1 #
- #Autor: Fr4yta #
- #Wszystkie prawa zastrzeżone! #
- #===========================================#
- #Reporty zapisują się w folderze: Skript --> logs --> reporty.log (Plik Tekstowy)!#
- #--------------------------- Opcje: ------------------------------#
- Options:
- nazwa: Report.sk #Nazwa skryptu (Domyslna: "Report.sk")!.
- pex_text: &4Poprawne uzycie: &c/report (nazwa gracza) (powod). #Wiadomosc po wpisaniu blednych argumentów!.
- czas_text: &4Mozesz zglaszac innych graczy co &c5 &4min!. #Wiadomosc po wykonaniu zgloszenia!.
- pex_no: &4Nie posiadasz uprawnien!. #Wiadomosc gdy gracz nie ma uprawnien!.
- czas: 5 #Czas co ile ma byc dostepne zgloszenie (W minutach!).
- #-----------------------------------------------------------------#
- Variables:
- {report.%player%} = true
- command /report [<text>] [<text>]:
- trigger:
- if argument 1 is not empty:
- if argument 2 is not empty:
- if {report} is true:
- log "%player% zglosil: '%argument 1%' Powod: '%argument 2%'" to "reporty"
- send "&aReportowanie gracza &a'&e%argument 1%&a' przebieglo pomyslnie!." to player
- set {report} to false
- wait {@czas} minutes
- set {report} to true
- else:
- send "{@czas_text}"
- else:
- send "{@pex_text}" to player
- if arg 1 is "reload":
- if arg 2 is not set:
- if player has permission "report.command.admin.reload":
- execute console command "skript reload {@nazwa}"
- send "&aPomyslnie przeladowales skript: {@nazwa}" to player
- send "&eSkript &c{@nazwa} &ezostal przeladowany!." to console
- else:
- send "{@pex_no}" to player
Advertisement
Add Comment
Please, Sign In to add comment