#TWOJE ID KLIENTA Z LVLUP, mozesz je dostac tutaj: https://lvlup.pro/panel/profile/api on script load: set {nr.api.lvlup} to "XXXXX" command /sms []: aliases: /sklep trigger: open chest with 1 row named "Dostepne Uslugi" to player wait 1 tick set player's current inventory's slot 0 to diamond named "&3Ranga Premium" with lore "&6Cena » &e1,23 PLN z VAT||&6Tresc SMS » &eAP.HOSTMC||&6Numer SMS » &e71068||||&aAby uzyc kodu kliknij tutaj!" on inventory click: if "%inventory name of player's current inventory%" is "Dostepne Uslugi": cancel event if clicked inventory is not player's inventory: # Aktywacja wysylania kodu na chacie po kliknieciu w itemek if player's current inventory's slot slot is not air: send "&6ItemShop &3» &fAby aktywowac usluge napisz na chacie" to player send "&6ItemShop &3» &fkod ktory dostales w SMS'ie. Masz 30 sekund." to player if "%slot%" is "0": close player's inventory set {nr.tel.wiadomosci::%Player%} to "71068" set {id.uslugi::%player%} to 0 #numer uslugi, zeby mozna bylo dodac wiecej rzeczy za te sama cene. wait 30 seconds if "%{nr.tel.wiadomosci::%Player%}%" is "71068": delete {nr.tel.wiadomosci::%Player%} delete {id.uslugi::%player%} send "&6ItemShop &3» &fCzas na podanie kodu dobiegl konca!" to player on chat: if {nr.tel.wiadomosci::%Player%} is set: set {_l} to length of message if {_l} is not 8: send "&6ItemShop &3» &fPodany kod jest nieprawidlowy!" to player else: #Musiałem tak zrobić, ponieważ gdy dałem {_url} w jednej linijce to zamieniało &n na kolor w mc. set {_url} to "https://lvlup.pro/api/checksms?id=" set {_url} to "%{_url}%%{nr.api.lvlup}%" set {_url} to "%{_url}%&" set {_url} to "%{_url}%code=%uncoloured message%" set {_url} to "%{_url}%&" set {_url} to "%{_url}%number=%{nr.tel.wiadomosci::%Player%}%" set {_url} to "%{_url}%&" set {_url} to "%{_url}%desc=ItemShop_%player%_%uncoloured message%" set {_vaild} to text from "%{_url}%" if "%{_vaild}%" contains "1" or "0": if "%{_vaild}%" contains "1": # Tutaj dodajesz co ma się dziać po zakupieniu usługi if {id.uslugi::%player%} is 0: make console execute command "pex user %Player% add premium" send "" to all players send "&6ItemShop &3» &fGracz &e%Player%&f zakupil usluge &ePremium&f dziekujemy!" to all players send "" to all players else: send "&6ItemShop &3» &fPodany kod jest nieprawidlowy!" to player else: send "&6ItemShop &3» &fPodany link API jest zly!" to player delete {nr.tel.wiadomosci::%Player%} delete {id.uslugi::%player%} cancel event