Skocz do zawartości
  • 0

SKRYPT NA CHAT + ANTY SPAM


Frejzu

Pytanie

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Napisałem ci tylko skrypt na chat:

 

Cytat

command /chat [<text>]:
    trigger:
        if arg 1 is not set:
            send "&8&l>> &7poprawne uzycie: &c&l/chat on/off/clear" to player
            stop
        if arg 1 is set:
            if arg 1 is "on" or "off" or "clear" or "c":
                if arg 1 is "on":
                    set {chat.status} to true
                    send "&8&l>> &aWlaczyles chat" to player
                    send "&8&l>> &aChat zostal wlaczony przez &2&l%player%" to all players
                    stop
                if arg 1 is "off":
                    set {chat.status} to false
                    send "&8&l>> &cWylaczyles chat" to player
                    send "&8&l>> &cChat zostal wylaczony przez &4&l%player%" to all players
                    stop
                if arg 1 is "clear" or "c":
                    loop all players:
                        loop 100 times:
                            send "" to loop-player
                    send "&8&l>> &aChat zostal wyczyszczony przez &2&l%player%&a" to all players
                    send "&8&l>> &aWyczysciles chat" to player
                    stop
                if arg 1 is not "clear" or "c" or "on" or "off":
                    send "&8&l>> &7poprawne uzycie: &c&l/chat on/off/clear" to player
                    stop
on chat:
    if player don't have permission "chat.pisac":
        if {chat.status} is false:
            cancel event
            send "&8&l>> &cNie mozesz pisac gdy chat jest wylaczony!"
            stop

 

Odnośnik do komentarza
https://skript.pl/temat/31181-skrypt-na-chat-anty-spam/#findComment-205821
Udostępnij na innych stronach

  • 0
on chat:
	if player has permission "antyspam.bypass"
		stop
	else:
      if {slowmode::%player%} is not set:
          set {slowmode::%player%} to true
          wait 5 real seconds
          clear {slowmode::%player%}
      else:
          send "&cNa chacie mozesz piszesz co 5 sekund"

 

Odnośnik do komentarza
https://skript.pl/temat/31181-skrypt-na-chat-anty-spam/#findComment-205868
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

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