Skocz do zawartości

[Skrypt] BG-chat


# 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

Autor:XBG


 


BG-chat!


 


Jest to skrypt na chat!


Co posiada :



-Czyszczenie chatu
-Wyłaczanie chatu
-Właczanie chatu
-Autoczyszczenie chatu
-Możliwość zmiany koloru nicku na chacie 
-Dodawanie cenuzry w grze
-Anty CapsLock
-AntySpam
Komendy : 
/chat - menu chatu
/chat off - wyłacza chat
/chat on - włacza chat
/chat aon/aoff - włacza/wyłacza autoczyszczenie chatu
/cenzor - dodajemy cenzure

 


KOD



 


##########################################


#   Bg-chat                              #


#  Zakaz kopi                            #                  


#  Zakaz podszywania sie pod autora      #


#                                        #


#  v0.1(bedzie większy update)           #


#  autor : xBG                       #


##########################################


 


 


 


 


 


#  Dostepne permissje do skryptu/komendy :


 


#  xbg.chat.on - komenda /chat on


#  xbg.chat.off - komenda /chat off


#  xbg.chat.clear - komenda /chat clear


#  xbg.chat.auto - komenda /char aon/off


#  xbg.chat.write - pozwala na pisanie przy wylaczonym czacie


#  xbg.chat.write2 - pozwala na pisanie zawsze i ciągle


#  xbg.chat.caps - pozwala pisac duzymi literami


 


options:


    time: 30 # Co ile minut ma byc czyszczony chat


 


variables:


    {chat} = true


    {auto} = true


   


command /chat [<text>]:


    trigger:


        if arg 1 is not set:


            send "&8######## &4BG-chat &8######## "


            send "&3/chat on &7- wlacza chat"


            send "&3/chat off &7- wylacza chat"


            send "&3/chat clear &7- czysci chat"


            send "&3/chat aon &7- wlacza auto chat"


            send "&3/chat aoff &7 wylacza auto chat"


            send "&8######## &4BG-chat &8######## "


        if arg 1 is "on":


            if {chat} is false:


                if player has permission "xbg.chat.on":


                    set {chat} to true


                    broadcast ""


                    broadcast "&2» &6Chat zostal &aWlaczony"


                    broadcast ""


                    stop


                else:


                    send "&7Nie masz &auprawnienia&7 do tej komendy!"


                    stop


            else:


                send "&6Chat jest juz &aWlaczony"


                stop


        if arg 1 is "off":


            if {chat} is true:


                if player has permission "xbg.chat.off":


                    set {chat} to false


                    broadcast ""


                    broadcast "&2» &6Chat zostal &aWylaczony"


                    broadcast ""


                    stop


                else:


                    send "&7Nie masz &auprawnienia&7 do tej komendy!"


                    stop


            else:


                send "&6Chat jest juz &aWylaczony"


                stop


        if arg 1 is "clear":


            if player has permission "xbg.chat.clear":


                loop 100 times:


                    message "" to all players


                send "&2BG-chat» &6Chat został wyczyszczony przez &c %name of player%&a!" to all players


                stop


            else:


                send "&7Nie masz &auprawnienia&7 do tej komendy!"


                stop


        if arg 1 is "aon":


            if player has permission "xbg.chat.auto":


                set {auto} to true


                send "&6Auto czyszczenie chatu uruchomione!"


                stop


            else:


                send "&2BG-chat» Nie masz uprawnien aby to robic!"


        if arg 1 is "aoff":


            if player has permission "xbg.chat.auto":


                set {auto} to false


                send "&2BG-chat» &6Auto czyszczenie chatu wylaczone!"


            else:


                send "&2BG-chat» Nie masz uprawnien aby to robic!"


every {@time} minutes:


    if {auto} is true:


        loop 100 times:


            message "" to all players


        send "&2BG-chat» &6Chat zostal wyczyszczony &cAutomatycznie&a!" to all players      


           


on chat:


    if {chat} is false:


        if player has permission "xbg.chat.write":


            stop


        else:


            cancel event


            send "&2BG-chat» &6Chat jest aktualnie &aWylaczony!"


            stop


    else:


        if player has permission "xbg.chat.write2":


            stop


        set {_waited} to difference between {chat.%player%.spam} and now


        if {_waited} is less than 3 real seconds seconds:


            send "&2BG-chat» &6astepna&a wiadomosc&6 bedziesz mogl wyslac za &c3 sekundy"


            cancel event


            stop


        set {chat.%player%.spam} to now


        stop


on chat:


    if player has permission "xbg.chat.caps"


        replace all "A" with "a" in the message


        replace all "B" with "b" in the message


        replace all "C" with "c" in the message


        replace all "D" with "d" in the message


        replace all "E" with "e" in the message


        replace all "F" with "f" in the message


        replace all "G" with "g" in the message


        replace all "H" with "h" in the message


        replace all "I" with "i" in the message


        replace all "J" with "j" in the message


        replace all "K" with "k" in the message


        replace all "L" with "l" in the message


        replace all "M" with "m" in the message


        replace all "N" with "n" in the message


        replace all "O" with "o" in the message


        replace all "P" with "p" in the message


        replace all "R" with "r" in the message


        replace all "S" with "s" in the message


        replace all "T" with "t" in the message


        replace all "U" with "u" in the message


        replace all "W" with "w" in the message


        replace all "Y" with "y" in the message


        replace all "Z" with "z" in the message


command /kolornick [<player>] [<text>]:


    permission: xbg.chat.kolor


    trigger:


        if arg-2 is set:


            send "&2BG-chat» Ustawiles kolor nicku gracza %player-arg%"


            set {kolorchat::%player-arg%} to "%arg-2%"


        if arg-1 is not set:


            send "&2BG-chat» Poprawne uzycie /kolornick {gracz} {kolor}"


on chat:


    if {kolorchat::%player%} is not set:


        set player's display name to "&7%player%"


        stop


    if {kolorchat::%player%} is "6":


        set player's display name to "&6%player%"


        stop


    if {kolorchat::%player%} is "e":


        set player's display name to "&e%player%"


        stop


    if {kolorchat::%player%} is "9":


        set player's display name to "&9%player%"


        stop


    if {kolorchat::%player%} is "A":


        set player's display name to "&a%player%"


        stop


    if {kolorchat::%player%} is "2":


        set player's display name to "&2%player%"


        stop


    if {kolorchat::%player%} is "3":


        set player's display name to "&3%player%"


        stop


    if {kolorchat::%player%} is "b":


        set player's display name to "&b%player%"


        stop


    if {kolorchat::%player%} is "yt":


        set player's display name to "&8[&4YT&8]&7%player%"


        stop


command /cenzor [<text>] [<text>]:


    trigger:


        if player has permission "xbg.chat.cenzura":


            if arg 1 is not set:


                send "&cBG-cenzura"


                stop


            if arg 1 is set:


                if arg 2 is set:


                    set {xbg.chat.cenzura::%arg 1%} to "%arg 2%"


                    send "&2BG-chat» Dodales cenzure wyrazu &c%arg 1%&9. Cenzura: &c%arg 2%&9."


                    stop


                else:


                    send "&2BG-chat» Nieprawidlowa komenda! Uzyj: &2/cenzura [slowo] [cenzura]"


            else:


                send "&2BG-chat» Nieprawidlowa komenda! Uzyj: &2/cenzura [slowo] [cenzura]"


            stop



 

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