Skocz do zawartości
  • 0

Pisanie na czacie


gnomq

Pytanie

Rekomendowane odpowiedzi

  • 0
17 minut temu, gnomq2000 napisał:

dodasz mi do tego permisję?

Rozumiem, że ma to być bypass cooldownu. W takim razie to powinno pomóc.

on chat:
	if player doesn't have permission "czat.bypass":
		if {cooldownMsg::%player%} is not set:
			set {cooldownMsg::%player%} to 0
		if unix timestamp of now < {cooldownMsg::%player%}:
			cancel event
			send "odczekaj jeszcze %(unix timestamp of now - {cooldownMsg::%player%})% sekund"
			stop
		if {lastSender} is player:
			if unix timestamp of now - {lastMessage::%player%} < 5:
				set {cooldownMsg::%player%} to unix timestamp of now + 5
				stop
		set {lastSender} to player
		set {lastMessage::%player%} to unix timestamp of now

 

Odnośnik do komentarza
https://skript.pl/temat/41528-pisanie-na-czacie/#findComment-260008
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ę...