Skocz do zawartości
  • 0

Chat i Ban - "system" dla zabawy


Luki133q

Pytanie

Witam, kiedyś pisałem skrypty i teraz mając serwer z kolegami potrzebuję skryptu do czatu i do banowania graczy. Nie mam możliwości tego na serwerze sprawdzić więc chciałem żebyście mi to tylko sprawdzili, ewentualnie poprawili. Dziękuję.

https://code.skript.pl/QtbwSDLX/raw

Odnośnik do komentarza
https://skript.pl/temat/35112-chat-i-ban-system-dla-zabawy/
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /ban [<player>] [<text>]:
	permission: ban
	trigger:
		if arg 2 is set:
			ban (arg 1) due to "&4Zostales zbanowany!%nl%&7Powod: &c%arg 2%"
			send "&7Zbanowano"
		else:
			send "&7/ban <player> <reason>"
command /unban [<offlineplayer>]:
	permission: unban
	trigger:
		if arg 1 is set:
			unban arg
			send "&7Odbanowano"
		else:
			send "&7/unban <player>"
command /chat [<text>]:
	permission: chat
	trigger:
		if arg is "c" or "clear" or "cc":
			loop 100 times:
				send "" to all players
			send "&7Wyczyszczono chat" to all players
		if arg is "on" or "wlacz":
			set {chat} to true
			send "&7Wlaczono chat" to all players
		if arg is "off" or "wylacz":
			set {chat} to false
			send "&7Wylaczono chat" to all players
		if arg is not set:
			send "&7/chat <c/on/off>"
on chat:
	if {chat} is false:
		if player has permission "chat":
			stop
		else:
			cancel event
			send "&7Chat jest wylaczony"

 

Odnośnik do komentarza
https://skript.pl/temat/35112-chat-i-ban-system-dla-zabawy/#findComment-225526
Udostępnij na innych stronach

  • 0
15 godzin temu, xAxee napisał:

command /ban [<player>] [<text>]:
	permission: ban
	trigger:
		if arg 2 is set:
			ban (arg 1) due to "&4Zostales zbanowany!%nl%&7Powod: &c%arg 2%"
			send "&7Zbanowano"
		else:
			send "&7/ban <player> <reason>"
command /unban [<offlineplayer>]:
	permission: unban
	trigger:
		if arg 1 is set:
			unban arg
			send "&7Odbanowano"
		else:
			send "&7/unban <player>"
command /chat [<text>]:
	permission: chat
	trigger:
		if arg is "c" or "clear" or "cc":
			loop 100 times:
				send "" to all players
			send "&7Wyczyszczono chat" to all players
		if arg is "on" or "wlacz":
			set {chat} to true
			send "&7Wlaczono chat" to all players
		if arg is "off" or "wylacz":
			set {chat} to false
			send "&7Wylaczono chat" to all players
		if arg is not set:
			send "&7/chat <c/on/off>"
on chat:
	if {chat} is false:
		if player has permission "chat":
			stop
		else:
			cancel event
			send "&7Chat jest wylaczony"

 

Dzięki 😁

Odnośnik do komentarza
https://skript.pl/temat/35112-chat-i-ban-system-dla-zabawy/#findComment-225561
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ę...