Guest User

SignFood v1.3

a guest
Apr 11th, 2014
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.01 KB | None | 0 0
  1. options:
  2.     #Tag skryptu
  3.     Tag: &9|&aSignFood&9|
  4.     #Co trzeba wpisac w 1 lini
  5.     1Linia: |Jedzenie|
  6.     #Wiadomosc po braku uprawnien
  7.     Permission: &4Nie masz uprawnien
  8.     #Ilosc miesa
  9.     Ilosc: 16
  10.     #Nazwa pliku sk.Zanim wgrasz plik i zmieniles nazwe zmien ja takze tutaj i dopiero wgraj plik!:
  11.     sk: Slowo
  12. on break of sign:
  13.     line 1 is "&7[&eMiesko&7]"
  14.     send "{@Tag}&c Tabliczka zniszczona"
  15.     stop
  16. on sign change:
  17.     line 1 is "{@1Linia}"
  18.     if player has permission "SignFood.*" or "SignFood.create":
  19.         set line 1 to "&7[&eMiesko&7]"
  20.         send "{@Tag} &2Tabliczka utworzona pomyslnie!"
  21.         stop
  22.     else:
  23.         send "{@Tag} {@Permission}"
  24.         cancel event
  25. on rightclick on sign:
  26.     line 1 is "&7[&eMiesko&7]"
  27.     send "{@Tag} &6Dostales miesko!" to player
  28.     execute console command "give %name of player% 320 {@Ilosc}"
  29. command /SignFood [<text>]:
  30.     aliases: sf, signf, sfood
  31.     trigger:
  32.         if player doesn't have permissions "SignFood.commands" or "SignFood.*":
  33.             send "{@Tag} {@Permission}"
  34.             stop
  35.         else:
  36.             if arg 1 is not set:
  37.                 send "&9=&b---&9= &a&lMenu pomocy &9=&b---&9="
  38.                 send "&a/SignFood reload/przeladuj &f- Przeladowanie skryptu"
  39.                 send "&a/SignFood help/pomoc &f- Menu pomocy"
  40.                 send "&a/SignFood autor/author &f- Autor skryptu"
  41.             if arg 1 is "reload" or "przeladuj":
  42.                 execute console command "sk reload {@sk}"
  43.                 send "&6* &aSkrypt zostal przeladowany!"
  44.             if arg 1 is "Author" or "Autor":
  45.                 send "&aAutorem skryptu SignFood jest &nsriskels&r&a!"
  46.             if arg 1 is "help" or "pomoc":
  47.                 send "&9=&b---&9= &a&lMenu pomocy &9=&b---&9="
  48.                 send "&a/SignFood reload/przeladuj &f- Przeladowanie skryptu"
  49.                 send "&a/SignFood help/pomoc &f- Menu pomocy"
  50.                 send "&a/SignFood autor/author &f- Autor skryptu"
  51.             if arg 1 is not "reload" or "przeladuj" or "help" or "pomoc" or "autor" or "author":
  52.                 send "&9=&b---&9= &a&lMenu pomocy &9=&b---&9="
  53.                 send "&a/SignFood reload/przeladuj &f- Przeladowanie skryptu"
  54.                 send "&a/SignFood help/pomoc &f- Menu pomocy"
  55.                 send "&a/SignFood autor/author &f- Autor skryptu"
Advertisement
Add Comment
Please, Sign In to add comment