Skocz do zawartości
  • 0

Pytanie - Skrypt


Trokuszek_PL

Pytanie

Mam pytanie ostatnio znalazłem skrypt na AntyReklame:
 

on chat:
    message contains ".pl" or ".com" or ".eu" or ".net" or ".csrv" or ".us" or ".ench" or ".de" or ".serv.nu" or ".topcraft" or ".hiplay":
        cancel event
        send "&8============================" to all ops
        send "&7->&c&l Prawdopodobnie" to all ops
        send "&7->&c&l Wykryto Reklame!" to all ops
        send "&7->&c Gracz&4 %player%&c." to all ops
        send "&7->&c Napisal:&4 %message%&c." to all ops
        send "&8============================" to all ops



Czy potrafiłby ktoś zrobić tak aby zamiast " to all ops " było że wysyła do każdego gracza z permisją " helpop.gracz " ?? 

Edytowane przez xAxee
xAxee

Wstawiam w code

Notatka dodana przez xAxee

Odnośnik do komentarza
https://skript.pl/temat/38742-pytanie-skrypt/
Udostępnij na innych stronach

11 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

A nie można po prostu wrzucić tego na czat dla wszystkich? Z resztą po co syfić komunikatami o reklamie operatorom, wiadomość do gracza, że nie może reklamować, kick czy coś i tyle :v

Edytowane przez Vate
Odnośnik do komentarza
https://skript.pl/temat/38742-pytanie-skrypt/#findComment-244182
Udostępnij na innych stronach

  • 0
function getPlayers(t: text) :: players:
    loop all players:
        loop-player has permission {_t}:
        add loop-player to {_ret::*} 
    return {_ret::*} 

dodaj to do skryptu i zamiast to all ops daj to getPlayers("helpop.gracz")

Odnośnik do komentarza
https://skript.pl/temat/38742-pytanie-skrypt/#findComment-244183
Udostępnij na innych stronach

  • 0

Czyli wychodzi takie coś: ?

 

on chat:
    message contains ".pl" or ".com" or ".eu" or ".net" or ".csrv" or ".us" or ".ench" or ".de" or ".serv.nu" or ".topcraft" or  ".hiplay":
        cancel event
        send "&8============================" to getPlayers("helpop.gracz")
        send "&7->&c&l Prawdopodobnie" to getPlayers("helpop.gracz")
        send "&7->&c&l Wykryto Reklame!" to getPlayers("helpop.gracz")
        send "&7->&c Gracz&4 %player%&c." to getPlayers("helpop.gracz")
        send "&7->&c Napisal:&4 %message%&c." to getPlayers("helpop.gracz")
        send "&8============================" to getPlayers("helpop.gracz")
on chat:
    message contains "kurwa" or "jebac" or "huj" or "pierdol" or "szmata" or "kurna" or "chuj" or "szmato" or "pierdolic":
        cancel event
        send "&cTwoja wiadomosc zawiera brzydkie słowa. Nie zostala wyslana" to player
        execute console command "helpop &4&l[WYKRYTO PRZEKLENSTWO] &c%player% Napisal %message% [CONSOLE]"

 

Edytowane przez xAxee
xAxee

Wstawiam w code

Notatka dodana przez xAxee

Odnośnik do komentarza
https://skript.pl/temat/38742-pytanie-skrypt/#findComment-244184
Udostępnij na innych stronach

  • 0

Kurde nie działa:
 

[20:57:27 INFO]: [Skript] Reloading HelpOp.sk...
[20:57:27 ERROR]: The function 'getPlayers' does not exist. (HelpOp.sk, line 10: send "&8============================" to getPlayers("helpop.gracz")')
[20:57:27 ERROR]: The function 'getPlayers' does not exist. (HelpOp.sk, line 11: send "&7->&c&l Prawdopodobnie" to getPlayers("helpop.gracz")')
[20:57:27 ERROR]: The function 'getPlayers' does not exist. (HelpOp.sk, line 12: send "&7->&c&l Wykryto Reklame!" to getPlayers("helpop.gracz")')
[20:57:27 ERROR]: The function 'getPlayers' does not exist. (HelpOp.sk, line 13: send "&7->&c Gracz&4 %player%&c." to getPlayers("helpop.gracz")')
[20:57:27 ERROR]: The function 'getPlayers' does not exist. (HelpOp.sk, line 14: send "&7->&c Napisal:&4 %message%&c." to getPlayers("helpop.gracz")')
[20:57:27 ERROR]: The function 'getPlayers' does not exist. (HelpOp.sk, line 15: send "&8============================" to getPlayers("helpop.gracz")')
[20:57:27 INFO]: [Skript] Encountered 6 errors while reloading HelpOp.sk!

 

Edytowane przez xAxee
xAxee

Wstawiam w code

Notatka dodana przez xAxee

Odnośnik do komentarza
https://skript.pl/temat/38742-pytanie-skrypt/#findComment-244185
Udostępnij na innych stronach

  • 0
15 godzin temu, Trokuszek_PL napisał:

Kurde nie działa:
 


[20:57:27 INFO]: [Skript] Reloading HelpOp.sk...
[20:57:27 ERROR]: The function 'getPlayers' does not exist. (HelpOp.sk, line 10: send "&8============================" to getPlayers("helpop.gracz")')
[20:57:27 ERROR]: The function 'getPlayers' does not exist. (HelpOp.sk, line 11: send "&7->&c&l Prawdopodobnie" to getPlayers("helpop.gracz")')
[20:57:27 ERROR]: The function 'getPlayers' does not exist. (HelpOp.sk, line 12: send "&7->&c&l Wykryto Reklame!" to getPlayers("helpop.gracz")')
[20:57:27 ERROR]: The function 'getPlayers' does not exist. (HelpOp.sk, line 13: send "&7->&c Gracz&4 %player%&c." to getPlayers("helpop.gracz")')
[20:57:27 ERROR]: The function 'getPlayers' does not exist. (HelpOp.sk, line 14: send "&7->&c Napisal:&4 %message%&c." to getPlayers("helpop.gracz")')
[20:57:27 ERROR]: The function 'getPlayers' does not exist. (HelpOp.sk, line 15: send "&8============================" to getPlayers("helpop.gracz")')
[20:57:27 INFO]: [Skript] Encountered 6 errors while reloading HelpOp.sk!

 

musisz wkleić tą funkcje co podałem nad ten kkd

Edytowane przez xAxee
Odnośnik do komentarza
https://skript.pl/temat/38742-pytanie-skrypt/#findComment-244209
Udostępnij na innych stronach

  • 0

 
[11:01:25 INFO]: [Skript] Reloading HelpOp.sk...
[11:01:25 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (HelpOp.sk, line 10: getPlayers("helpop.gracz"):')
[11:01:25 ERROR]: The function 'getPlayers' does not exist. (HelpOp.sk, line 10: getPlayers("helpop.gracz"):')
[11:01:25 INFO]: [Skript] Encountered 1 error while reloading HelpOp.sk!

on chat:
    message contains ".pl" or ".com" or ".eu" or ".net" or ".csrv" or ".us" or ".ench" or ".de" or ".serv.nu" or ".topcraft" or  ".hiplay":
        cancel event
        getPlayers("helpop.gracz"):
        send "&8============================" 
        send "&7->&c&l Prawdopodobnie" 
        send "&7->&c&l Wykryto Reklame!" 
        send "&7->&c Gracz&4 %player%&c." 
        send "&7->&c Napisal:&4 %message%&c." 
        send "&8============================"

 

Edytowane przez xAxee
xAxee

Wstawiam w code

Notatka dodana przez xAxee

Odnośnik do komentarza
https://skript.pl/temat/38742-pytanie-skrypt/#findComment-244231
Udostępnij na innych stronach

  • 0
Godzinę temu, Trokuszek_PL napisał:


 

[11:01:25 INFO]: [Skript] Reloading HelpOp.sk...
[11:01:25 WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (HelpOp.sk, line 10: getPlayers("helpop.gracz"):')
[11:01:25 ERROR]: The function 'getPlayers' does not exist. (HelpOp.sk, line 10: getPlayers("helpop.gracz"):')
[11:01:25 INFO]: [Skript] Encountered 1 error while reloading HelpOp.sk!

on chat:
    message contains ".pl" or ".com" or ".eu" or ".net" or ".csrv" or ".us" or ".ench" or ".de" or ".serv.nu" or ".topcraft" or  ".hiplay":
        cancel event
        getPlayers("helpop.gracz"):
        send "&8============================" 
        send "&7->&c&l Prawdopodobnie" 
        send "&7->&c&l Wykryto Reklame!" 
        send "&7->&c Gracz&4 %player%&c." 
        send "&7->&c Napisal:&4 %message%&c." 
        send "&8============================"

 

Pokaż cały kod który zrobiłeś...

Odnośnik do komentarza
https://skript.pl/temat/38742-pytanie-skrypt/#findComment-244260
Udostępnij na innych stronach

  • 0
command /helpop <text>:
    trigger:
        send "&7Zglosiles problem: &6%argument%&7"
        loop all players:
            loop-player has permission "helpop.gracz":
                send "&4[&7HelpOP&4] &7%player%: &6%argument%&7" to loop-player
on chat:
    message contains ".pl" or ".com" or ".eu" or ".net" or ".csrv" or ".us" or ".ench" or ".de" or ".serv.nu" or ".topcraft" or  ".hiplay":
        cancel event
        getPlayers("helpop.gracz"):
        send "&8============================" 
        send "&7->&c&l Prawdopodobnie" 
        send "&7->&c&l Wykryto Reklame!" 
        send "&7->&c Gracz&4 %player%&c." 
        send "&7->&c Napisal:&4 %message%&c." 
        send "&8============================"
on chat:
    message contains "kurwa" or "jebac" or "huj" or "pierdol" or "szmata" or "kurna" or "chuj" or "szmato" or "pierdolic":
        cancel event
        send "&cTwoja wiadomosc zawiera brzydkie słowa. Nie zostala wyslana" to player
        execute console command "helpop &4&l[WYKRYTO PRZEKLENSTWO] &c%player% Napisal %message% [CONSOLE]"

 

Edytowane przez HeezQ
HeezQ

Wstawiam w code

Notatka dodana przez HeezQ

Odnośnik do komentarza
https://skript.pl/temat/38742-pytanie-skrypt/#findComment-244292
Udostępnij na innych stronach

  • 0
function getPlayers(t: text) :: players:
	loop all players:
		loop-player has permission {_t}:
		add loop-player to {_ret::*} 
	return {_ret::*} 
command /helpop [<text>]:
	trigger:
		if arg is not set:
			send "/helpop <tresc>"
			stop
		send "&7Zglosiles problem: &6%arg%&7"
		send "&4[&7HelpOP&4] &7%player%: &6%argument%&7" to getPlayers("helpop.gracz")
on chat:
	if message contains ".pl" or ".com" or ".eu" or ".net" or ".csrv" or ".us" or ".ench" or ".de" or ".serv.nu" or ".topcraft" or  ".hiplay":
		cancel event
		send "&8============================" to getPlayers("helpop.gracz")
		send "&7->&c&l Prawdopodobnie"  to getPlayers("helpop.gracz")
		send "&7->&c&l Wykryto Reklame!" to getPlayers("helpop.gracz")
		send "&7->&c Gracz&4 %player%&c." to getPlayers("helpop.gracz")
		send "&7->&c Napisal:&4 %message%&c." to getPlayers("helpop.gracz")
		send "&8============================"to getPlayers("helpop.gracz")
	if message contains "kurwa" or "jebac" or "huj" or "pierdol" or "szmata" or "kurna" or "chuj" or "szmato" or "pierdolic":
		cancel event
		send "&cTwoja wiadomosc zawiera brzydkie słowa. Nie zostala wyslana" to player
		execute console command "helpop &4&l[WYKRYTO PRZEKLENSTWO] &c%player% Napisal %message% [CONSOLE]"
19 godzin temu, xAxee napisał:

dodaj to do skryptu i zamiast to all ops daj to getPlayers("helpop.gracz")

nw czego tu nie zrozumiałeś xD

Odnośnik do komentarza
https://skript.pl/temat/38742-pytanie-skrypt/#findComment-244298
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  • Ostatnio przeglądający   0 użytkowników

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