Skocz do zawartości
  • 0

Wytabowanie


namefx

Pytanie

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
Spoiler

options:
	tag: &8[&c&lChatPX&8]
	bcmsg: &8[&6Ogloszenie&8]
	
command /chat [<text>] [<text>] [<text>]:
	permission: chatPX.sk or op
	permission message: {@tag}&c&lNie posiadasz uprawnien aby uzyc tej komendy!
	trigger:
		if arg 1 is not set:
			send "&8**************{@tag}&8*****************"
			send "&8/chat &cpomoc &8- &c&l Wyswietla komendy zawarte w skrypcie"
			send "&8/chat &con/off &8- &c&l Wlacza/wylacza chat"
			send "&8/chat &cclear/c &8- &c&l Czysci chat"
			send "&8/chat &cogloszenie/oglo &8- &c&lWysyla ogloszenie"
			send "&8/chat &ccenzura dodaj &8- &c&lDodaje cenzure"
			send "&8/chat &ccenzura usun &8- &c&lUsuwa cenzure"
			send "&8/chat &ccenzura lista &8- &c&lLista cenzur"
			send "&8/chat &cemotikony/emoty on/off &8- &c&lWlacza/wylacza emotikony"
			send "&8/chat &cspam &8- &c&lWysyla kilkanascie razy wiadomosc"
			send "&8/chat &cinfo &8- &c&lInformacje o skrypcie"
			send "&8**************{@tag}&8*****************"
			stop
		if arg 1 is set:
			if arg 1 is "pomoc" or "on" or "off" or "clear" or "c" or "ogloszenie" or "oglo" or "cenzura" or "emotikony" or "emoty" or "info":
				if arg 1 is "pomoc":
					send "&8**************{@tag}&8*****************"
					send "&8/chat &cpomoc &8- &c&l Wyswietla komendy zawarte w skrypcie"
					send "&8/chat &con/off &8- &c&l Wlacza/wylacza chat"
					send "&8/chat &cclear/c &8- &c&l Czysci chat"
					send "&8/chat &cogloszenie/oglo &8- &c&lWysyla ogloszenie"
					send "&8/chat &ccenzura dodaj &8- &c&lDodaje cenzure"
					send "&8/chat &ccenzura usun &8- &c&lUsuwa cenzure"
					send "&8/chat &ccenzura lista &8- &c&lLista cenzur"
					send "&8/chat &cemotikony/emoty on/off &8- &c&lWlacza/wylacza emotikony"
					send "&8/chat &cspam &8- &c&lWysyla kilkanascie razy wiadomosc"
					send "&8/chat &cinfo &8- &c&lInformacje o skrypcie"
					send "&8**************{@tag}&8*****************"
					stop
				if arg 1 is not "pomoc" or "on" or "off" or "clear" or "c" or "ogloszenie" or "oglo" or "cenzura" or "emotikony" or "emoty" or "info":
					send "&8**************{@tag}&8*****************"
					send "&8/chat &cpomoc &8- &c&l Wyswietla komendy zawarte w skrypcie"
					send "&8/chat &con/off &8- &c&l Wlacza/wylacza chat"
					send "&8/chat &cclear/c &8- &c&l Czysci chat"
					send "&8/chat &cogloszenie/oglo &8- &c&lWysyla ogloszenie"
					send "&8/chat &ccenzura dodaj &8- &c&lDodaje cenzure"
					send "&8/chat &ccenzura usun &8- &c&lUsuwa cenzure"
					send "&8/chat &ccenzura lista &8- &c&lLista cenzur"
					send "&8/chat &cemotikony/emoty on/off &8- &c&lWlacza/wylacza emotikony"
					send "&8/chat &cspam &8- &c&lWysyla kilkanascie razy wiadomosc"
					send "&8/chat &cinfo &8- &c&lInformacje o skrypcie"
					send "&8**************{@tag}&8*****************"
					stop
				if arg 1 is "on":
					set {chat} to true
					send "{@tag} &8>> &c&lWylaczyles chat! &8<<"
					broadcast "{@bcmsg} &8>> &c&l%player% wylaczyl czat! &8<<"
				if arg 1 is "off":
					set {chat} to false
					send "{@tag} &8>> &c&lWlaczyles chat! &8<<"
					broadcast "{@bcmsg} &8>> &c&l%player% wlaczyl czat! &8<<"
				if arg 1 is "clear" or "c":
					loop 200 times:
						send "" to all players
					broadcast "{@bcmsg} &8>> &c&lChat zostal wyczyszczony przez &c%player% &8<<"
					stop
				if arg 1 is "ogloszenie" or "oglo":
					if arg 2 is set:
						send "{@bcmsg}%colored arg 2%" to all players
						stop
					else:
						send "{@tag}Napisz cos!" to player
						stop
				if arg 1 is "cenzura":
					if arg 2 is "dodaj":
						if arg 3 is set:
							if {cenzura.%arg 3%} is not set: 
								add "%arg 3%" to {censor::*}
								set {cenzura.%arg 3%} to "%arg 3%"
								send "{@tag} &8>> &6Pomyslnie dodano do cenzury slowo: &c%arg 3% &8<<"
							else:
								send "{@tag} &8>> &4Blad: &cW spisie cenzur juz jest taka cenzura. &8<<"
						else:
							send "{@tag} &8>> &4Blad: &cPodaj cenzure! &8<<"
							stop
				if arg 1 is "cenzura":
					if arg 2 is "usun":
						if arg 3 is set:
							if {cenzura.%arg 3%} is set:
								remove "%arg 3%" from {censor::*}
								set {cenzura.%arg 3%} to ""
								send "{@tag} &8>> &6Pomyslnie usunales slowo: &c%arg 3% &8<<"
							else:
								send "{@tag} &8>> &4Blad: &cW spisie cenzur nie ma takiej cenzury. &8<<"
						else:
							send "{@tag} &8>> &4Blad: &cPodaj cenzure! &8<<"
							stop   
				if arg 1 is "cenzura":
					if arg 2 is "lista":
						if {censor::*} is not set:
							send "{@tag} &6Spis cenzur: &cBrak cenzur."
						else:
							send "{@tag} &6Spis cenzur: &c%{censor::*}%"
							stop
								
				if arg 1 is "emoty" or "Emotikony":
					if arg 2 is "on":
						send "&7{@tag}wlaczyles emotikony"
						set {Chat::Emotikony} to true
						stop
					if arg 2 is "off":
						send "&7{@tag}wylaczyles emotikony"
						set {Chat::Emotikony} to false
						stop
				if arg 1 is "spam":
					if arg 2 is set:
						loop 5 times:
							send "{@bcmsg}%colored arg 2%" to all players
							stop
				if arg 1 is "info":
					send "&8*************{@tag}&8****************"
					send "&8******** &cSkrypt By PIX0R &8**********"
					send "&8************ &cWERSJA 1.0 **************"
					send "&8*************{@tag}&8****************"
on chat:
	if {Chat::Emotikony} is true:
		replace all "<3" with "❤" in the message
		replace all ":)" with "☺" in the message
		replace all "(music)" with "♫" in the message
		replace all "(slonce)" with "☼" in the message
		replace all "(like)" with "✌" in the message
		replace all "(nice)" with "✔" in the message
		replace all "(boy)" with "♀" in the message
		replace all "(girl)" with "♂" in the message
		replace all "(peace)" with "☮" in the message
		replace all ":(" with "☹" in the message
		replace all "(nope)" with "×" in the message
		replace all "z/w" with "zaraz wracam" in the message
		replace all "z.w" with "zaraz wracam" in the message
		replace all "j/j" with "juz jestem" in the message
		replace all "j.j" with "juz jestem" in the message	
		replace all "->" and "*->" in message with "→"
		replace all "<-" and "*<-" in message with "←"
		replace all "\/" and "*\/" in message with "↓"
		replace all "/\" and "*/\" in message with "↑"
		replace all ">>" and "*>>" in message with "»"
		replace all "<<" and "*<<" in message with "«"
		replace all "-_*" in message with "ツ"
 

	if player doesn't have permission "chat.off" or "op":
		if {Chat::Status} is false:
			cancel event
			send "&cChat jest wylaczony!"

on join:
	set join message to "&a+&c%player% &8wszedl na serwer"
 
on quit:
	set quit message to "&a+&c%player% &8wyszedl z serwera"

 

 

Odnośnik do komentarza
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ę...