8YzZcwlW
Język: Skript
|
Autor: Anonimowy
options: logo: &8&l[&a&lParty&8&l]&f -: &8&l---------- komenda_na_podglad_rozmow: podglad # <-- ustawiasz nazwe komendy BEZ UKOŚNIKA (/) function paryhelp(p: player): send "{@-}{@logo}{@-}" to {_p} send "• &a/party zapros <gracz>&f - zaprasza danego gracza" to {_p} send "• &a/party akceptuj <gracz>&f - akceptuje zaproszenie do party" to {_p} send "• &a/party opusc&f - opuszcza party" to {_p} send "• &a/party usun&f - usuwa party, jeżeli jesteś jego właścicielem" to {_p} send "• &a/pchat <wiadomość>&f - wysyłanie wiadomości na czacie party" to {_p} send "{@-}{@logo}{@-}" to {_p} command /party [<text>] [<player>]: aliases: /p trigger: if arg 1 is "zapros": if arg 2 is "%player%": send "{@logo} &cNie możesz zaprosić Siebie samego do party!" stop else if {pary.%arg 2%join} is true: send "{@logo} &cGracz &a%arg 2%&c jest już w party!" stop else if {pary.%player%delay} is true: send "{@logo} &cPoczekaj 40 sekund, aby spróbować ponownie!" to {_p} else: send "{@logo} Zaprosiłeś do party &a%arg 2%&f, ma 40 sekund na zaakceptowanie" send "{@logo} Gracz &a%player%&f zaprosił Cię do party, masz 40 sekund na zaakceptowanie!" to arg 2 send "{@logo} Użyj &a/p akceptuj %player%&f, aby zaakceptować zaproszenie!" to arg 2 set {pary.%arg 2%%player%} to true set {pary.%player%delay} to true wait 40 second delete {pary.%arg 2%%player%} delete {pary.%player%delay} else if arg 1 is "akceptuj": if {pary.%player%%arg 2%} is true: if {pary.%arg 2%chat} is true: add player to {%arg 2%pary::*} set {_join message} to "{@logo} Gracz &a%player%&f dołączył do party!" delete {pary.%arg 2%%player%} set {pary.%player%join} to true set {pary.%player%party} to "%arg 2%" send "%{_join message}%" to {%arg 2%pary::*} else: set {pary.%arg 2%chat} to true set {pary.%arg 2%join} to true set {pary.%player%join} to true set {pary.%player%party} to "%arg 2%" set {pary.%arg 2%party} to "%arg 2%" set {pary.%player%leather} to true add arg 2 to {%arg 2%pary::*} add player to {%arg 2%pary::*} set {_join message} to "{@logo} Gracz &a%player%&f dołączył do party!" delete {pary.%arg 2%%player%} set {pary.%arg 2%leader} to true send "%{_join message}%" to {%arg 2%pary::*} else: send "{@logo} Gracz &a%arg 2%&f Cię nie zaprosił lub zaproszenie wygasło!" else if arg 1 is "opusc": if {pary.%player%chat} is true: send "{@logo} Prawidłowe polecenie to &a/p usun&f" else if {pary.%player%join} is true: remove player from {%{pary.%player%party}%pary::*} set {_leave} to "{@logo} Gracz &a%player%&f opuścił party!" send "%{_leave}%" to {%{pary.%player%party}%pary::*} delete {pary.%player%party} delete {pary.%player%join} send "{@logo} Opuściłeś party!" to player else: send "{@logo} Nie jesteś w party!" else if arg 1 is "usun": if {pary.%player%chat} is true: delete {pary.%player%join} delete {pary.%player%chat} delete {pary.%player%party} delete {pary.%player%leather} set {_disband} to "{@logo} Usunięto party!" send "%{_disband}%" to {%player%pary::*} delete {%player%pary::*} else: send "{@logo} Nie jesteś właścicielem party lub nie znajdujesz się w party!" else if arg 1 is "pomoc": paryhelp(player) else: paryhelp(player) command /pchat [<text>]: trigger: if {pary.%player%join} is true: set {_p-arg} to "&8&l[&a&lParty&8&l]&f&7 %player% &8»&f %arg 1%" send "%{_p-arg}%" to {%{pary.%player%party}%pary::*} loop all players: if {pchat.message.%loop-player%} is 1: send "&8&l[&a&lParty&8&l]&f&7 %player% &8»&f %arg 1%" to loop-player else: send "{@logo} Nie znajdujesz się w party, użyj &a/p pomoc&f aby uzyskać pomoć" command /{@komenda_na_podglad_rozmow} [<text>]: # <-- [<text>] jest po to, by sie nie bugowalo trigger: if player has permission "podgladparty.admin": if {pchat.message.%player%} is not set: set {pchat.message.%player%} to 1 send "&aWlaczyles podglad wiadomosci wszystkich party!" stop if {pchat.message.%player%} is 0: set {pchat.message.%player%} to 1 send "&aWlaczyles podglad wiadomosci wszystkich party!" stop if {pchat.message.%player%} is 1: set {pchat.message.%player%} to 0 send "&cWylaczyles podglad wiadomosci wszystkich party!" stop else: send "&4Nie masz permisji do tej komendy!" on quit: remove player from {%{pary.%player%party}%pary::*} set {_leave} to "{@logo} Gracz &a%player%&f opuścił party!" send "%{_leave}%" to {%{pary.%player%party}%pary::*} delete {pary.%player%party} delete {pary.%player%join} delete {pary.%player%join} delete {pary.%player%chat} delete {pary.%player%party} delete {pary.%player%leather} set {_disband} to "{@logo} Usunięto party!" send "%{_disband}%" to {%player%pary::*} delete {%player%pary::*} on join: delete {pary.%player%delay}