Skocz do zawartości
  • 0

Skrypt na chat czy zadziała ?


PanNiedzwiadek
 Udostępnij

Pytanie

Czy to zadziała ?

 

 

UWAGA !!! skrypt zawiera wulgarne słowa !!!

 

Zastrzegam sobie wyłączne prawo do skryptu poniżej.

on chat:		 # Cenzurowanie #    replace all "kurwa" with "ku#wa" in the message    replace all "spierdalaj" with "spi####laj" in the message    replace all "chuj" with "ch#j" in the message    replace all "huj" with "h#j" in the message				 # Anty reklama #    replace all "infocraft.eu" with "*serwer*" in the message    replace all "craftboard.pl" with "*serwer*" in the message    replace all "mineserwer.pl" with "*serwer*" in the message    replace all "hostmc" with "*serwer*" in the message    replace all "mcgo.pl" with "*serwer*" in the message    replace all "badziewny serw" with "*Swietny serwer*" in the message    replace all "csrv.pl" with "*serwer*" in the messagecommand /chat [<text&gt]:    if arg 1 is "off":	    set {chat.on} to true	    broadcast "Chat zostal wylaczony"    if arg 1 is "on":	    set {chat.on} to false on chat:    if {chat.on} is true:	    cancel event    if arg 1 is "clear":	    loop 1000 times:		    broadcast "Chat zostal wyczyszczony !"on chat:    if {chat.%player%} is false:	    set {chat.%player%} to true	    wait 3 seconds	    set {chat.%player%} to false    else:	    cancel event	    send "Mozesz pisac co 3 sekundy!"	    stop
Edytowane przez PanNiedzwiadek
Odnośnik do komentarza
Udostępnij na innych stronach

10 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

 

command /chat [<text&gt]:    if arg 1 is "off":        set {chat.on} to true        broadcast "Chat zostal wylaczony"    if arg 1 is "on":        set {chat.on} to false    if arg 1 is "clear":        loop 1000 times:            broadcast "Chat zostal wyczyszczony !"  on chat:    if {chat.on} is true:        cancel event

 

Eee... czyli co >? 

Proszę udzielać odpowiedzi w sposób:

 

Gdzie błąd a potem cały kod bez błędu :D

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Zamiast # używaj * bo przy użyciu # kod ci się kończy do końca lini

Tam gdzie masz te info #anty reklama# itp daj # na początku lini

To chyba jest zle (dokońca nwm może mi siwę pogmatwało)

command /chat [<text&gt]:

if arg 1 is "off":#zamiast off to on

set {chat.on} to true

broadcast "Chat zostal wylaczony"

if arg 1 is "on":

set {chat.on} to false#zamiast on to off

#też mam inny pomysł ale najpierw sprawdz czy działa, może ci dać linka na pliki serwerowe tak zwany serwer testowy

Edytowane przez _Of3k
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Teraz kod wygląda tak:

on chat:         * Cenzurowanie *    replace all "kurwa" with "ku#wa" in the message    replace all "spierdalaj" with "spi####laj" in the message    replace all "chuj" with "ch#j" in the message    replace all "huj" with "h#j" in the message                 * Słownik + anti flood *    replace all "nei" with "nie" in the message    replace all "niee" with "nie" in the message    replace all "nieee" with "nie" in the message    replace all "nieeee" with "nie" in the message    replace all "nieeeee" with "nie" in the message    replace all "nieeeeee" with "nie" in the message    replace all "hoc" with "chodz" in the message    replace all "hodz" with "chodz" in the message    replace all "ho" with "chodz" in the message    replace all "cho" with "chodz" in the message    replace all "heu" with "hue" in the message    replace all "ahah" with "haha" in the message    replace all "ihih" with "hihi" in the messagecommand /ichat [<text&gt]:    if arg 1 is "off":        set {chat.on} to true        broadcast "Chat zostal wylaczony"    if arg 1 is "on":        set {chat.on} to false    if arg 1 is "clear":        loop 100 times:            broadcast "Chat zostal wyczyszczony !"on chat:    if {chat.on} is true:        cancel event on chat:    if {chat.%player%} is false:        set {chat.%player%} to true        wait 3 seconds        set {chat.%player%} to false    else:        cancel event        send "Mozesz pisac co 3 sekundy!"        stop

 Jest OK ?

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Teraz kod wygląda tak:

on chat:         * Cenzurowanie *    replace all "kurwa" with "ku#wa" in the message    replace all "spierdalaj" with "spi####laj" in the message    replace all "chuj" with "ch#j" in the message    replace all "huj" with "h#j" in the message                 * Słownik + anti flood *    replace all "nei" with "nie" in the message    replace all "niee" with "nie" in the message    replace all "nieee" with "nie" in the message    replace all "nieeee" with "nie" in the message    replace all "nieeeee" with "nie" in the message    replace all "nieeeeee" with "nie" in the message    replace all "hoc" with "chodz" in the message    replace all "hodz" with "chodz" in the message    replace all "ho" with "chodz" in the message    replace all "cho" with "chodz" in the message    replace all "heu" with "hue" in the message    replace all "ahah" with "haha" in the message    replace all "ihih" with "hihi" in the messagecommand /ichat [<text&gt]:    if arg 1 is "off":        set {chat.on} to true        broadcast "Chat zostal wylaczony"    if arg 1 is "on":        set {chat.on} to false    if arg 1 is "clear":        loop 100 times:            broadcast "Chat zostal wyczyszczony !"on chat:    if {chat.on} is true:        cancel event on chat:    if {chat.%player%} is false:        set {chat.%player%} to true        wait 3 seconds        set {chat.%player%} to false    else:        cancel event        send "Mozesz pisac co 3 sekundy!"        stop

 Jest OK ?

Jest ok ;p

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...