Skocz do zawartości
  • 0

[Zlecenie] Napisanie antyreklamy i ..?


Gość Usunięty#3549

Pytanie

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
options:

	tag: &8[&6» &cA N T Y - C H A T &6«&8]

	perm-cmd: esej.antychat.command
	perm-omin: esej.antychat.cancel
command /esej:antychat [<text>] [<text>] [<text>]:
	permission: {@perm-cmd}
	permission message: &cNie posiadasz uprawnien &8(&c{@perm-cmd}&8)
	aliases: /antychat, /achat,
	trigger:
		if argument 1 isn't set:
			send "{@tag}" to the player
			send "&8» &6/antychat &3<add> <reklama/wulgaryzm> &8- &6Dodaje reklame lub wulgaryzm do listy blokowanych" to the player
			send "&8» &6/antychat &3<remove> <reklama/wulgaryzm> &8- &6Usuwa reklame lub wulgaryzm z listy blokowanych" to the player
			send "&8» &6/antychat &3<warn> <nick gracza> <powod> &8- &6Daje ostrzezenie" to the player
			send "&8» &6/antycheat &3author &8- &6Wyswietla dane o autorze" to the player
			stop
		if argument 1 is "add":
			argument 2 is set:
				add "%argument 2%" to {antychat::blocked::messages}
				send "&8» &6Dodano &apomyslnie &6nową reklame lub nowy wulgaryzm" to the player
				stop
			else:
				send "&8» &4Blad: &cMusisz wpisac jeszcze reklame lub wulgaryzm" to the player
				stop
		if argument 1 is "remove":
			argument 2 is set:
				if {antychat::blocked::messages} contains "%argument 2%":
					remove "%argument 2%" from {antychat::blocked::messages}
					send "&8» &aPomyslnie &cusunieto &6reklame lub wulgaryzm z listy blockowanych" to the player
					stop
				else:
					send "&8» &4Error: &cList not contain &8(&4%argument 2%&8)" to the player
					stop
			else:
				send "&8» &4Blad: &cMusisz wpisac jeszcze reklame lub wulgaryzm" to the player
		if argument 1 is "warn":
			if argument 2 is a player:
				if {warn::%argument 2 parsed as player%} < 3:
					add 1 to {warn::%argument 2 parsed as player%}
					send "&8» &aPomyslnie &6ostrzegles gracza &c%argument 2 parsed as player%" to the player
					if argument 2 parsed as player is online:
						send "&8» &cZostales ostrzezony przez &a%player% &8(&6Twoje warny: &7%{warn::%argument 2%}%&8)" to argument 2 parsed as player
						if argument 3 is set:
							send "&8» &6Za: &3%argument 3%" to argument 2 parsed as player
							stop
						else:
							send "&8» &cPowod nie zostal wpisany" to argument 2 parsed as player
							stop
				
				else:
					if {warn::%argument 2 parsed as player%} is 3:
						ban argument 2 parsed as player due to "&8» &cOtrzymales juz 3 ostrzezenia &8«"
						broadcast "%ARGUMENT 2 PARSED AS PLAYER% zostal zbanowany poniewaz otrzymal juz 3 ostrzezenia"
						stop
		if argument 1 is "author" or "autor" or "creator":
			send "{@tag}" to the player
			send "&8» &6Made by: &9esej &8«" to the player
			send "&8» &9FB: &6https://facebook.com/imxkvpi" to the player
			send "&8» &cCreated for &3exoticx" to the player
			add 1 diamond named "&8» &b&lLEGENDARNY DIAMENT &9&lES&6&lEJ" for the player
			wait 5 seconds
			remove 1 diamond named "&8» &b&lLEGENDARNY DIAMENT &9&lES&6&lEJ" from the player
			stop
on chat:
	if player don't have permission "{@perm-omin}":
		loop {antychat::blocked::messages}:
			replace all "%loop-value%" with "***" in message
			openGui(player)
			stop
function openGui(p: player):
	open chest with 1 rows named "{@tag}" to {_p}
	format slot 4 of {_p} with 1 of red stained glass pane named "&8» &cNie wolno Tobie; " with lore "&8• &4REKLAMOWAC SERWEROW||&8• &cORAZ KORZYSTAC Z WULGARYZMÓW" to close then run [kick player due to "&8» &cNiech ja jeszcze raz zobacze , ze zareklamowales serwer lub przeklnales&4!"]->[set {openGui::%{_p}%} to false]
	if {openGui::%{_p}%} is not true:
		set {openGui::%{_p}%} to true
		stop
on inventory close:
	if {openGui::%player%} is true:
		openGui(player)
		stop

Powinno działać :)

Odnośnik do komentarza
https://skript.pl/temat/19626-zlecenie-napisanie-antyreklamy-i/#findComment-133880
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ę...