aPc6yqb0
Język: Skript
|
Autor: xNoternus
#->==============================<- # > Created by GrandLife Team < # - xNoternus - #->==============================<- # > 13.04.2021 < # Skrypt na SocialSpy #->==============================<- # Link do zlecenia: # https://skript.pl/temat/47935-skrypt-na-podglÄ…danie-msg #->==============================<- #===============================================# # # # >> KONFIGURACJA << # # # #===============================================# Options: prefix: &7[&cShow&4MSG&7] &e> # prefix przed wiadomoscia cmd: showmsg # nazwa komendy np. /showmsg lub /smsg permission: sk.showmsg # permisja do uzywania wszystkich funkcji w tym skrypcie message_help_1: &r &e/showmsg on &7- &fWlacz podglad msg # wiadomosc pomocnicza message_help_2: &r &e/showmsg off &7- &fWylacz podglad msg # wiadomosc pomocnicza message_enable: &aWlaczyles(-as) &7podglad msg! # wiadomosc gdy ktos wlaczy podglad msg message_disable: &cWylaczyles(-as) &7podglad msg! # wiadomosc gdy ktos wylaczy podglad msg message_permission: &cNie posiadasz permisji do tej komendy! # wiadomosc gdy ktos nie ma permisji message_enabled: &cMasz juz wlaczony podglad msg! # wiadomosc gdy ktos probuje wlaczyc podglad msg gdy juz ma wlaczone message_disabled: &cMasz juz wylaczony podglad msg! # wiadomosc gdy ktos probuje wylaczyc podglad msg gdy juz ma wylaczone #===============================================# # # # >> ZMIENNE << # # # #===============================================# Variables: {showmsg::%player%} = false #===============================================# # # # >> KOMENDA << # # # #===============================================# command /{@cmd} [<text>]: permission: {@permission} permission message: {@message_permission} trigger: if arg 1 is not set: send "" to player send "{@message_help_1}" to player send "{@message_help_2}" to player send "" to player else if arg 1 is "on" or "wlacz" or "wl" or "enable": if {showmsg::%player%} is false: set {showmsg::%player%} to true send "{@prefix} {@message_enable}" to player else: send "{@prefix} {@message_enabled}" to player else if arg 1 is "off" or "wylacz" or "wyl" or "disable": if {showmsg::%player%} is true: set {showmsg::%player%} to false send "{@prefix} {@message_disable}" to player else: send "{@prefix} {@message_disabled}" to player else: send "" to player send "{@message_help_1}" to player send "{@message_help_2}" to player send "" to player #===============================================# # # # >> EVENTY << # # # #===============================================# on command: if "%command%" is "msg" or "r" or "w": loop all players: if loop-player has permission "{@permission}": if {showmsg::%loop-player%} is true: send "{@prefix} &c%executor% &7- &6/%command% &f%arguments%" to loop-player