Skocz do zawartości

TimeTnT


DeV+
# CSH External VIP Project

Masz dosyć problemów z czynnikiem zaufania w CS2 lub notorycznymi banami?

Sprawdź CSH External VIP Project.


Więcej informacji  

Rekomendowane odpowiedzi

MwfexaQ.jpg

 

 

 

 

SteamCraft - Steam w minecraft!

 

MwfexaQ.jpg

 

Funkcje:

    • Tworzenie konta

    • Usuwanie konta

    • Wylogowywanie się

    • Dodawanie gry do SteamCraft / konta

    • Usuwanie gry z SteamCraft / konta

    • Lista gier w SteamCraft

    • Lista gier dla danego konta

    • Kupowanie gry

    • Logowanie do konta

 

MwfexaQ.jpg

 

Instalacja: (WAŻNE!)

  • Wrzucamy skrypt do folderu scripts
  • Wchodzimy do gier, które mają być w SteamCraft i dodajemy ten kod pod sub-komendą "join" : " if player has permission "steamcraft.joingame.bypass": " (jeśli tak to wykonuje dalej komendę (teleportuje na arenę itp.), jeśli nie to wysyła tą wiadomość " send "&8[&3SteamCraft&8] &cNie mozesz zagrac w ta gre! Prawdopodobnie nie masz jej na swoim koncie SteamCraft!" ", kod przykładowy:http://pastebin.com/raw.php?i=7hJvRvDE)
  • Dodajemy gry do SteamCraft. (tak jak wpiszemy w komendzie tak musi być w folderze!)

MwfexaQ.jpg

 

Uprawnienia:

    • steamcraft.lista.uzytkownicy - sprawdza listę użytkowników i ich hasła (dla adminów)

    • steamcraft.add.game - dodanie gry do SteamCraft

    • steamcraft.remove.game - usunięcie gry z SteamCraft

    • steamcraft.addgame.user - dodanie gry dla gracza

    • steamcraft.removegame.user - usunięcie gry z konta gracza

 

MwfexaQ.jpg

 

Komendy:

  • /sc - wszystkie komendy

  • /sc stworz [hasło] - tworzy konto

  • /sc usun - usuwa konto

  • /sc login [hasło] - logowanie do konta SteamCraft

  • /sc wyloguj - wylogowuje z konta SteamCraft

  • /sc join [nazwa] - dołącza do areny

  • /sc lista - lista kont SteamCraft

  • /sc dodaj - dodaje gre do SteamCraft

  • /sc usun - usuwa grę z SteamCraft

  • /sc gry - gry w SteamCraft

  • /sc mojegry - pokazuje twoje gry

  • /sc kup - kupuje daną grę na SteamCraft

 

MwfexaQ.jpg

 

Do zrobienia:

    • dodawanie $ do danego konta

 

MwfexaQ.jpg

 

Błędy:

    • Nie znalezione

 

MwfexaQ.jpg

 

Zmiany:

    • Wersja 1.0 [FREE]:

        * Skrypt został wydany

 

MwfexaQ.jpg

 

Wersja:

    • ALPHA

 

MwfexaQ.jpg

 

Autorzy:

    • boleknowak

 

MwfexaQ.jpg

 

Wymagania:

  • Skript

  • skQuery

  • WildSkript

 

MwfexaQ.jpg

 

 

 

MwfexaQ.jpg

 

Inne:

brak!

 

MwfexaQ.jpg

 

	
	variables:
	
	
	        {steamcraft::%player%::account::balance} = 0
	
	
	options:
	
	
	        tag: &8[&3SteamCraft&8]
	
	
	        cena.kupna: 50
	
	
	 
	
	
	command /sc [<text>] [<text>] [<integer>] [<player>]:
	
	
	        trigger:
	
	
	                if arg 1 is not set:
	
	
	                        if {steamcraft::%player%::logged} is true:
	
	
	                                send "&2&m-----------------------------------------------------"
	
	
	                                send "&b                                      SteamCraft [zalogowany, %{steamcraft::%player%::account::balance}%$]"
	
	
	                                send "&7- &e/sc usun &7- Usuwa konto SteamCraft"
	
	
	                                send "&7- &e/sc lista &7- Lista kont SteamCraft&b*"
	
	
	                                send "&7- &e/sc wyloguj &7- Wylogowywuje Cie z konta SteamCraft"
	
	
	                                send "&7- &e/sc dodaj [nazwa_gry] &7- Dodaje gre do SteamCraft&b*"
	
	
	                                send "&7- &e/sc usungre [nazwa_gry] &7- Usuwa gre z SteamCraft&b*"
	
	
	                                send "&7- &e/sc gry &7- Lista gier w SteamCraft"
	
	
	                                send "&7- &e/sc mojegry &7- Lista twoich gier w SteamCraft"
	
	
	                                send "&7- &e/sc kup [nazwa_gry] &7- Kupujesz gre ze sklepu SteamCraft"
	
	
	                                send "&7- &e/sc dodajgraczowi [nazwa_gry] [gracz] &7- Dodaje gre ze sklepu SteamCraft dla gracza&b*"
	
	
	                                send "&7- &e/sc usungraczowi [nazwa_gry] [gracz] &7- Usuwa gre ze sklepu SteamCraft dla gracza&b*"
	
	
	                                send "&b* - dla administratora"
	
	
	                                send "&b                                    by boleknowak"
	
	
	                                send "&2&m-----------------------------------------------------"
	
	
	                        else:
	
	
	                                send "&2&m-----------------------------------------------------"
	
	
	                                send "&b                                      SteamCraft"
	
	
	                                send "&7- &e/sc stworz [haslo] &7- Tworzy konto SteamCraft"
	
	
	                                send "&7- &e/sc login [haslo] &7- Loguje Cie na konto SteamCraft"
	
	
	                                send "&b                                    by boleknowak"
	
	
	                                send "&2&m-----------------------------------------------------"
	
	
	                if arg 1 is "stworz":
	
	
	                        if arg 2 is set:
	
	
	                                if {steamcraft::%player%::account} is true:
	
	
	                                        send "{@tag} &cMasz juz konto!"
	
	
	                                else:
	
	
	                                        set {steamcraft::%player%::password} to arg 2
	
	
	                                        send "{@tag} &aTwoje nowe konto to: &6%player%&a, a haslo: &6%arg 2%"
	
	
	                                        set {steamcraft::%player%::account} to true
	
	
	                                        add "%player%_%arg 2%" to {steamcraft::account::*}
	
	
	                if arg 1 is "usun":
	
	
	                        if {steamcraft::%player%::account} is true:
	
	
	                                send "{@tag} &aPomyslnie usunales konto SteamCraft!"
	
	
	                                delete {steamcraft::%player%::account}
	
	
	                                delete {steamcraft::%player%::password}
	
	
	                                remove "%player%_%{steamcraft::%player%::password}%" from {steamcraft::account::*}
	
	
	                        else:
	
	
	                                send "{@tag} &cNie masz konta!"
	
	
	                if arg 1 is "lista":
	
	
	                        if player has permission "steamcraft.lista.uzytkownicy":
	
	
	                                send "{@tag} &6Lista kont SteamCraft:"
	
	
	                                send "{@tag} &9Ilosc kont: %size of {steamcraft::account::*}%"
	
	
	                                send "{@tag} &9Konta:"
	
	
	                                set {_} to "%{steamcraft::account::*}%"
	
	
	                                replace all "and" with ", " in {_}
	
	
	                                send "%{_}%"
	
	
	                                delete {_}
	
	
	                if arg 1 is "login":
	
	
	                        if arg 2 is set:
	
	
	                                if {steamcraft::%player%::account} is true:
	
	
	                                        if arg 2 is "%{steamcraft::%player%::password}%":
	
	
	                                                if {steamcraft::%player%::logged} is true:
	
	
	                                                        send "{@tag} &cJestes zalogowany!"
	
	
	                                                else:
	
	
	                                                        send "{@tag} &aZalogowano!"
	
	
	                                                        set {steamcraft::%player%::logged} to true
	
	
	                                        else:
	
	
	                                                send "{@tag} &cPodales zle haslo, lub twoje konto nie istnieje!"
	
	
	                                else:
	
	
	                                        send "{@tag} &cNie masz konta!"
	
	
	                if arg 1 is "logout" or "wyloguj":
	
	
	                        if {steamcraft::%player%::logged} is true:
	
	
	                                set {steamcraft::%player%::logged} to false
	
	
	                                send "{@tag} &aWylogowales sie pomyslnie!"
	
	
	                        else:
	
	
	                                send "{@tag} &cNie jestes zalogowany!"
	
	
	                if arg 1 is "dodaj":
	
	
	                        if arg 2 is set:
	
	
	                                if player has permission "steamcraft.add.game":
	
	
	                                        if file "plugins/Skript/scripts/%arg 2%.sk" doesn't exists:
	
	
	                                                send "&cNie ma takiego skryptu." to player
	
	
	                                        else:
	
	
	                                                send "&aDodano: &6&l%arg 2%" to player
	
	
	                                                add "%arg 2%" to {steamcraft::games::*}
	
	
	                                else:
	
	
	                                        send "{@tag} &cNie mozesz tego zrobic!"
	
	
	                if arg 1 is "usungre":
	
	
	                        if arg 2 is set:
	
	
	                                if player has permission "steamcraft.remove.game":
	
	
	                                        remove "%arg 2%" from {steamcraft::games::*}
	
	
	                                        send "{@tag} &aUsunales gre: &6&l%arg 2%"
	
	
	                if arg 1 is "gry":
	
	
	                        send "{@tag} &9Ilosc gier: %size of {steamcraft::games::*}%"
	
	
	                        send "{@tag} &9Gry:"
	
	
	                        set {_} to "%{steamcraft::games::*}%"
	
	
	                        replace all " and" with ", " in {_}
	
	
	                        replace all "<none>" with "Brak gier!" in {_}
	
	
	                        send "&a%{_}%"
	
	
	                        delete {_}
	
	
	                if arg 1 is "kup":
	
	
	                        if arg 2 is set:
	
	
	                                if {steamcraft::%player%::logged} is false:
	
	
	                                        send "{@tag} &cMusisz byc zalogowany!"
	
	
	                                else:
	
	
	                                        if {steamcraft::%player%::account::balance} >= {@cena.kupna}:
	
	
	                                                loop {steamcraft::games::*}:
	
	
	                                                        if loop-value is arg 2:
	
	
	                                                                send "{@tag} &aZakupiles gre &6&l%arg 2%&a, koszt &6&l50"
	
	
	                                                                add "%arg 2%" to {steamcraft::%player%::games::*}
	
	
	                                                                stop
	
	
	                                                send "{@tag} &cNie ma takiej gry!"
	
	
	                                                stop
	
	
	                                        else:
	
	
	                                                send "{@tag} &cNie stac Cie!"
	
	
	                if arg 1 is "mojegry":
	
	
	                        if {steamcraft::%player%::logged} is false:
	
	
	                                send "{@tag} &cMusisz byc zalogowany!"
	
	
	                        else:
	
	
	                                send "{@tag} &9Moje gry:"
	
	
	                                set {_} to "%{steamcraft::%player%::games::*}%"
	
	
	                                replace all " and" with ", " in {_}
	
	
	                                replace all "<none>" with "Brak gier!" in {_}
	
	
	                                send "&a%{_}%"
	
	
	                                delete {_}
	
	
	                if arg 1 is "dodajgraczowi":
	
	
	                        if arg 2 is set:
	
	
	                                if player-arg is set:
	
	
	                                        if player has permission "steamcraft.addgame.user":
	
	
	                                                if {steamcraft::%player%::account} is true:
	
	
	                                                        if file "plugins/Skript/scripts/%arg 2%.sk" doesn't exists:
	
	
	                                                                send "{@tag} &cNie ma takiej gry"
	
	
	                                                        else:
	
	
	                                                                add "%arg 2%" to {steamcraft::%player-arg%::games::*}
	
	
	                                                                send "{@tag} &aDodano gre &6&l%arg 2% &agraczowi &6&l%player-arg%"
	
	
	                if arg 1 is "usungraczowi":
	
	
	                        if arg 2 is set:
	
	
	                                if player-arg is set:
	
	
	                                        if player has permission "steamcraft.removegame.user":
	
	
	                                                if {steamcraft::%player%::account} is true:
	
	
	                                                        loop {steamcraft::%player-arg%::games::*}:
	
	
	                                                                if loop-value is arg 2:
	
	
	                                                                        remove "%arg 2%" from {steamcraft::%player-arg%::games::*}
	
	
	                                                                        send "{@tag} &aUsunieto gre &6&l%arg 2% &agraczowi &6&l%player-arg%"
	
	
	                                                                        stop
	
	
	                if arg 1 is "graj":
	
	
	                        if arg 2 is set:
	
	
	                                if {steamcraft::%player%::logged} is false:
	
	
	                                        send "{@tag} &cMusisz byc zalogowany!"
	
	
	                                else:
	
	
	                                        loop {steamcraft::%player%::games::*}:
	
	
	                                                if loop-value is arg 2:
	
	
	                                                        execute console command "pex user %player% add ""steamcraft.joingame.bypass"""
	
	
	                                                        send "{@tag} &aŁączenie z grą..."
	
	
	                                                        wait 2 seconds
	
	
	                                                        execute player command "%arg 2% join"
	
	
	                                                        wait 5 tick
	
	
	                                                        execute console command "pex user %player% remove ""steamcraft.joingame.bypass"""
	
	
	                                                        stop
	
	
	                                        send "{@tag} &cNie masz tej gry!"
	
	
	                                        stop
	
	
	on quit:
	
	
	        execute player command "sc logout"
	


Edytowane przez DeV+
Odnośnik do komentarza

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Gość
Dodaj odpowiedź do tematu...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  Tagi

×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę. Regulamin. Polityka prywatności