Guest User

Report.sk

a guest
Mar 29th, 2014
643
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. #===========================================#
  2. # Report.sk #
  3. #===========================================#
  4. #Versia: 1.1 #
  5. #Autor: Fr4yta #
  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.  
  20.  
  21. Variables:
  22. {report.%player%} = true
  23.  
  24. command /report [<text>] [<text>]:
  25. trigger:
  26. if argument 1 is not empty:
  27. if argument 2 is not empty:
  28. if {report} is true:
  29. log "%player% zglosil: '%argument 1%' Powod: '%argument 2%'" to "reporty"
  30. send "&aReportowanie gracza &a'&e%argument 1%&a' przebieglo pomyslnie!." to player
  31. set {report} to false
  32. wait {@czas} minutes
  33. set {report} to true
  34. else:
  35. send "{@czas_text}"
  36. else:
  37. send "{@pex_text}" to player
  38. if arg 1 is "reload":
  39. if arg 2 is not set:
  40. if player has permission "report.command.admin.reload":
  41. execute console command "skript reload {@nazwa}"
  42. send "&aPomyslnie przeladowales skript: {@nazwa}" to player
  43. send "&eSkript &c{@nazwa} &ezostal przeladowany!." to console
  44. else:
  45. send "{@pex_no}" to player
Advertisement
Add Comment
Please, Sign In to add comment