SHARE
TWEET

Untitled

a guest Jun 17th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function spect_magazyn(p: player, x: player):
  2.     open chest with 6 rows named "Magazyn: %{_x}%" to {_p}
  3.     stop
  4.            
  5. command /spectmagazyn [<text>] [<text>]:
  6.     permission: group.admin
  7.     permission message: &cTa komenda nie istnieje, badz nie masz uprawnien!
  8.     trigger:
  9.         if arg 1 is set:
  10.             if arg 2 is set:
  11.                 close player's inventory
  12.                 set {_p} to player
  13.                 set {_x} to ("%arg 2%" parsed as player)
  14.                 set {_t} to ("%arg 1%" parsed as integer)
  15.                 spect_magazyn({_p}, {_x})
  16.                 if {_x} is set:
  17.                     if {_t} = 1:
  18.                         loop 54 times:
  19.                             set {_p}'s current inventory's slot ((loop-number -1)) to {magazyn.1::%{_p}%::%loop-number%}
  20.                         stop
  21.                     if {_t} = 2:
  22.                         loop 54 times:
  23.                             set {_p}'s current inventory's slot ((loop-number -1)) to {magazyn.2::%{_p}%::%loop-number%}
  24.                         stop
  25.                     if {_t} = 3:
  26.                         loop 54 times:
  27.                             set {_p}'s current inventory's slot ((loop-number -1)) to {magazyn.3::%{_p}%::%loop-number%}
  28.                         stop
  29.             else:
  30.                 send "&cPodaj gracza!"
  31.                 stop
  32.         else:
  33.             send "&cPodaj numer magazynu!"
  34.             stop
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top