patison234

HiddenPlayers [Skript 2.0.2]

Dec 22nd, 2013
921
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.40 KB | None | 0 0
  1. # Skrypt wymaga pluginu ScriptPlus!
  2.  
  3.  
  4. # # # # # # # # # # # # # # # #
  5. # Script by PatisonPlayGames  #
  6. # Name: HiddenPlayers         #
  7. # Version: 3.0                #
  8. # Skript: 2.0.2               #
  9. # # # # # # # # # # # # # # # #
  10.  
  11.  
  12.  
  13. #=============================================#
  14. #  Licencja HiddenPlayers by PatisonPlayGames!#
  15. # + Nie zezwalam na:                          #
  16. # - Usuwanie tresci o autorze!                #
  17. # - Udostepnaniu skryptu innym!               #
  18. # - Podszywanie sie pod autora!               #
  19. # - Uzywanie kodu skryptu w swoich skryptach! #
  20. # - Zarabianie na skrypcie!                   #
  21. # + Zezwalam na:                              #
  22. # - Dodawanie kodu na swoja potrzebe!         #
  23. # - Modyfikowanie wiadomosci!                 #
  24. #=============================================#
  25.  
  26. options:
  27. # # # # # # # # # # # # # # #
  28. #                           #
  29. #       General Config      #
  30. #                           #
  31. # # # # # # # # # # # # # # #
  32.  
  33.     # Komenda uzywana w skrypcie:
  34.     komenda: Hiddenplayers
  35.    
  36.     #Nazwa pliku sk.Zanim wgrasz plik i zmieniles nazwe zmien ja takze tutaj i dopiero wgraj plik!:
  37.     sk: HiddenPlayers
  38.    
  39.     # Aliasy do komendy wyzej:
  40.     aliasy: hp, hide
  41.    
  42.     # Tag wyswietalny przed wiadomosciami skryptu:
  43.     tag: &c[&6HiddenPlayers&c]
  44.    
  45. # # # # # # # # # # # # # # #
  46. #                           #
  47. #       Items Config        #
  48. #                           #
  49. # # # # # # # # # # # # # # #
  50.  
  51.    
  52.     # Na jaka ilosc itemow ma dzialac ukrywanie na dwa czy jeden :
  53.     ilosc: 2
  54.    
  55.     # Jezeli na jeden to jaki:
  56.     item1: emerald
  57.    
  58.     # Jezeli na dwa to tutaj podaj pierwszy:
  59.     item2: diamond
  60.    
  61.     # A tu drugi:
  62.     item3: gold ingot
  63.    
  64.     # Item ktorym pokazujemy wszystkich graczy lub chowamy tych ktorzy nie sa na liscie przyjaciol:
  65.     item4: stone
  66.    
  67.    
  68. # # # # # # # # # # # # # # #
  69. #                           #
  70. #       Permission          #
  71. #                           #
  72. # # # # # # # # # # # # # # #
  73.  
  74.  
  75.     # Wiadmosc gdy nie mamy uprawnien:
  76.     permission: &cNie masz uprawnien do uzywania tej komendy!
  77.    
  78. # Autor Config
  79.  
  80.     version: 3.0
  81.    
  82.    
  83. command /{@komenda} [<text>] [<player>]:
  84.     aliases: {@aliasy}
  85.     trigger:
  86.         if arg 1 is not set:
  87.             send "&8========{@tag}&8========"
  88.             send "&6{@komenda} &a- pokazuje wszystkie komendy!
  89.             send "&6{@komenda} add &a- Dodaje gracza do listy znajomych! "
  90.             send "&6{@komenda} list &a- Pokazuje liste znajomych! "
  91.             send "&6{@komenda} delete &a- Usuwa gracza z listy znajomych! "
  92.             send "&6{@komenda} give &a- Daje ci item/itemki "
  93.             send "&6{@komenda} reload &a- Przeladowywuje skrypt!"
  94.             send "&6{@komenda} autor &a- Pokazuje autora skryptu!"
  95.             send "&6{@komenda} wersja &a- Pokazuje wersje skryptu!"
  96.             stop
  97.         if arg 1 is "pomoc" or "help":
  98.             send "&8========{@tag}&8========"
  99.             send "&6{@komenda} &a- pokazuje wszystkie komendy!
  100.             send "&6{@komenda} add &a- Dodaje gracza do listy znajomych! "
  101.             send "&6{@komenda} list &a- Pokazuje liste znajomych! "
  102.             send "&6{@komenda} delete &a- Usuwa gracza z listy znajomych! "
  103.             send "&6{@komenda} give &a- Daje ci item/itemki "
  104.             send "&6{@komenda} reload &a- Przeladowywuje skrypt!"
  105.             send "&6{@komenda} autor &a- Pokazuje autora skryptu!"
  106.             send "&6{@komenda} wersja &a- Pokazuje wersje skryptu!"
  107.             stop
  108.         if arg 1 is "give" or "daj":
  109.             set {hiddenplayers.items} to {@ilosc}
  110.             if {hiddenplayers.items} is 1:
  111.                 if player has permission "hiddenplayers.give" or "hiddenplayers.*":
  112.                     give 1 {@item1} named "&aUkrywacz graczy!" to the player
  113.                     give 1 {@item4} named "&aPokazywacz przyjaciol" to the player
  114.                     send "{@tag} &6Pobrano item!"
  115.                     stop
  116.                 else:
  117.                     send "{@tag} {@permission}"
  118.                     stop
  119.             if {hiddenplayers.items} is 2:
  120.                 if player has permission "hiddenplayers.give" or "hiddenplayers.*":
  121.                     give 1 {@item3} named "&aUkrywacz graczy!" to the player
  122.                     give 1 {@item4} named "&aPokazywacz przyjaciol" to the player
  123.                     send "{@tag} &6Pobrano itemy!"
  124.                     stop
  125.                 else:
  126.                     send "{@tag} {@permission}"
  127.                     stop
  128.         if arg 1 is "reload" or "przeladuj":
  129.             if player has permission "hiddenplayers.reload" or "hiddenplayers.*":
  130.                 execute console command "sk reload {@sk}"
  131.                 send "{@tag} &aPrzeladowano"
  132.                 stop
  133.             else:
  134.                 send "{@tag} {@permission}"
  135.                 stop
  136.         if arg 1 is "dodaj" or "add":
  137.             if player has permission "hiddenplayers.addfriend" or "hiddenplayers.*":
  138.                 if arg 2 is set:
  139.                     if arg 2 is online:
  140.                         if {hiddenplayers.%argument 2%.%player%.friends} is not set:
  141.                             set {hiddenplayers.%argument 2%.%player%.friends} to false
  142.                             if {hiddenplayers.%argument 2%.%player%.friends} is false:
  143.                                 set {hiddenplayers.%argument 2%.%player%.friends} to true
  144.                                 add "%arg 2%" to {hiddenplayers.%player%.friendslist::*}
  145.                                 send "{@tag} &aDodano gracza %arg 2% do listy znajomych!"
  146.                                 stop
  147.                             else:
  148.                                 send "{@tag} &aTen gracz jest juz na liscie twoich znajomych!"
  149.                                 stop
  150.                     else:
  151.                         send "{@tag} &cGracz nie jest online!"
  152.                         stop
  153.                 else:
  154.                     send "{@tag} &cPodaj nick gracza!"
  155.                     stop
  156.             else:
  157.                 send "{@tag} {@permission}"
  158.                 stop
  159.         if arg 1 is "lista" or "list":
  160.             if player has permission "hiddenplayers.listfriend" or "hiddenplayers.*":
  161.                 send "{@tag} &6%{hiddenplayers.%player%.friendslist::*}%"
  162.                 stop
  163.             else:
  164.                 send "{@tag} {@permission}"
  165.                 stop
  166.         if arg 1 is "usun" or "delete":
  167.             if arg 2 is set:
  168.                 if player has permission "hiddenplayers.deletefriends" or "hiddenplayers.*":
  169.                     if {hiddenplayers.%argument 2%.%player%.friends} is true:
  170.                         set {hiddenplayers.%argument 2%.%player%.friends} to false
  171.                         remove "%arg 2%" from {hiddenplayers.%player%.friendslist::*}
  172.                         send "{@tag} &aUsunieto gracza %arg 2% z listy przyjaciol!"
  173.                         stop
  174.                     else:
  175.                         send "{@tag} &cTen gracz nie jest na liscie przyjaciol!"
  176.                         stop
  177.                 else:
  178.                     send "{@tag} {@permission}"
  179.                     stop
  180.             else:
  181.                 send "{@tag} &cPodaj nick gracza!"
  182.                 stop
  183.         if arg 1 is "wersja" or "version":
  184.             send "&7----------------------------------------------"
  185.             send " &8Nazwa: &aHiddenPlayers"
  186.             send " &8Wersja: &a&n{@version}"
  187.             send "&7----------------------------------------------"
  188.             stop
  189.         if arg 1 is "author" or "autor":
  190.             send "&7----------------------------------------------"
  191.             send " &8Autor: &aPatisonPlayGames"
  192.             send " &8Nazwa: &aHiddenPlayers"
  193.             send "&8 &8&nYou&4&nTube:&a &nwww.youtube.com/PatisonPlayGames"
  194.             send "&7----------------------------------------------"
  195.             stop
  196.  
  197. on rightclick with {@item4}:
  198.     if player has permission "hiddenplayers.hide" or "hiddenplayers.*":
  199.         loop all players:
  200.             if {hiddenplayers.%loop-player%.%player%.friends} is true:
  201.                 hide all players from player
  202.                 reveal loop-player to player
  203.                 send "{@tag} &6Pokazano graczy na liscie przyjaciol!"
  204.                 set the player's tool to {@item4}
  205.                 set name of the player's tool to "&aGracze ==> &4Ukryci!"
  206.                 set lore of the player's tool to "&6Kliknij (LPM) by pokazac graczy!"
  207.                 stop
  208.             else:
  209.                 send "{@tag} &cNie masz zadnych przyjaciol lub nie sa oni online!"
  210.                 stop
  211.     else:
  212.         send "{@tag} {@permission}"
  213.         stop
  214. on leftclick with {@item4}:
  215.     if player has permission "hiddenplayers.show" or "hiddenplayers.*":
  216.         reveal all players to player
  217.         send "{@tag} &6Pokazano graczy!"
  218.         set the player's tool to {@item4}
  219.         set name of the player's tool to "&aGracze ==> Pokazani!"
  220.         set lore of the player's tool to "&6Kliknij (PPM) by ukryc graczy!"
  221.         stop
  222.     else:
  223.         send "{@tag} {@permission}"
  224.         stop   
  225. on rightclick with {@item1}:
  226.     set {hiddenplayers.items} to {@ilosc}
  227.     if {hiddenplayers.items} is 1:
  228.         if player has permission "hiddenplayers.hide" or "hiddenplayers.*":
  229.             hide all players from player
  230.             send "{@tag} &6Ukryto graczy!"
  231.             set the player's tool to {@item1}
  232.             set name of the player's tool to "&aGracze ==> &4Ukryci!"
  233.             set lore of the player's tool to "&6Kliknij (PPM) by pokazac graczy!"
  234.             stop
  235.         else:
  236.             send "{@tag} {@permission}"
  237.             stop
  238.        
  239. on leftclick with {@item1}:
  240.     set {hiddenplayers.items} to {@ilosc}
  241.     if {hiddenplayers.items} is 1:
  242.         if player has permission "hiddenplayers.show" or "hiddenplayers.*":
  243.             reveal all players to player
  244.             send "{@tag} &6Pokazano graczy!"
  245.             set the player's tool to {@item1}
  246.             set name of the player's tool to "&aGracze ==> Pokazani!"
  247.             set lore of the player's tool to "&6Kliknij (LPM) by ukryc graczy!"
  248.             stop
  249.         else:
  250.             send "{@tag} {@permission}"
  251.             stop
  252.        
  253. on rightclick with {@item2}:
  254.     set {hiddenplayers.items} to {@ilosc}
  255.     if {hiddenplayers.items} is 2:
  256.         if player has permission "hiddenplayers.hide" or "hiddenplayers.*":
  257.             hide all players from player
  258.             send "{@tag} &6Ukryto graczy!"
  259.             set the player's tool to {@item3}
  260.             set name of the player's tool to "&aGracze ==> &4Ukryci!"
  261.             set lore of the player's tool to "&6Kliknij (PPM) by pokazac graczy!"
  262.             stop
  263.         else:
  264.             send "{@tag} {@permission}"
  265.             stop
  266.        
  267. on leftclick with {@item3}:
  268.     set {hiddenplayers.items} to {@ilosc}
  269.     if {hiddenplayers.items} is 2:
  270.         if player has permission "hiddenplayers.show" or "hiddenplayers.*":
  271.             reveal all players to player
  272.             send "{@tag} &6Pokazano graczy!"
  273.             set the player's tool to {@item2}
  274.             set name of the player's tool to "&aGracze ==> Pokazani!"
  275.             set lore of the player's tool to "&6Kliknij (LPM) by ukryc graczy!"
  276.             stop
  277.         else:
  278.             send "{@tag} {@permission}"
  279.             stop
  280.  
  281.            
  282. on skript start:
  283.     send "&8HiddenPlayers wymaga wersji Skript 2.0.2 ..." to the console
  284.     send "&8HiddenPlayers wymaga pluginu SkriptPlus ..." to the console
  285.     wait 1 seconds
  286.     send "&8Serwer pracuje na wersji: %skript version%" to the console
  287.     send "" to the console
  288.     send "&8--------------------------------------------------------------" to the console
  289.     send "&8|                                                            |" to the console
  290.     send "&8|                  Enable &9HiddenPlayers                  &8|" to the console
  291.     send "&8|                                                            |" to the console
  292.     send "&8--------------------------------------------------------------" to the console
  293.     send "" to the console
  294.     send "&8Autor: &ePatisonPlayGames" to the console
  295.     send "&8Version: &7{@version}" to the console
  296.     send "" to the console
  297.  
  298.  
  299. #------------------------------------------------ End of Script / Thanks for Use ---------------------------------#
  300. #-------------------------------- © by PationPlayGames - Author / YouTube www.youtube.com/PatisonPlayGames -------#
Advertisement
Add Comment
Please, Sign In to add comment