Skocz do zawartości
  • 0

MSG


pawel1232
 Udostępnij

Pytanie

7 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
34 minuty temu, pawel1232 napisał:

Napisze mi ktoś skrypt na msg? /msg <offlineplayer> i jak da się to żeby było /r czyli odpisz

command /msg [<player>] [<text>]:
	trigger:
		if arg 1 is not set:
			send "&cPoprawne uzycie: &6/msg <gracz> <wiadomosc>" to player
			stop
		if arg 2 is not set:
			send "&cPoprawne uzycie: &6/msg <gracz> <wiadomosc>" to player
			stop
		send "&6[&c%player% &e-> &cTy&6] &7%arg 2%" to arg 1
		send "&6[&cTy &e-> &c%arg 1%&6] &7%arg 2%" to player
		loop {socialspy::*}:
			send "&6[&c%player% &e-> &c%arg 1%&6] &7%arg 2%" to loop-value
		set {msg::last::%player%} to arg 1
		set {msg::last::%arg 1%} to player
		
command /r [<text>]:
	trigger:
		if arg 1 is not set:
			send "&cPoprawne uzycie: &6/r <wiadomosc>" to player
			stop
		if {msg::last::%player%} is not set:
			send "&cNie masz komu odpowiedziec!" to player
			stop
		send "&6[&c%player% &e-> &cTy&6] &7%arg 2%" to {msg::last::%player%}
		send "&6[&cTy &e-> &c%{msg::last::%player%}%&6] &7%arg 2%" to player
		loop {socialspy::*}:
			send "&6[&c%player% &e-> &c%{msg::last::%player%}%&6] &7%arg 2%" to loop-value
		
command /socialspy:
	trigger:
		if player is not op:
			stop
		if {socialspy::*} contains player:
			remove player from {socialspy::*}
			send "&cWylaczyles &6SocialSpy&c." to player
			stop
		if {socialspy::*} doesn't contain player:
			add player to {socialspy::*}
			send "&aWlaczyles &6SocialSpy&a." to player	

Napisałem taką wersję z dodanym socialspy. Sprawdź czy wszystko będzie działało.

Edytowane przez Kormic
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
5 minut temu, Kormic napisał:
command /msg [<player>] [<text>]:
	trigger:
		if arg 1 is not set:
			send "&cPoprawne uzycie: &6/msg <gracz> <wiadomosc>" to player
			stop
		if arg 2 is not set:
			send "&cPoprawne uzycie: &6/msg <gracz> <wiadomosc>" to player
			stop
		send "&6[&c%player% &e-> &cTy&6] &7%arg 2%" to arg 1
		send "&6[&cTy &e-> &c%arg 1%&6] &7%arg 2%" to player
		loop {socialspy::*}:
			send "&6[&c%player% &e-> &c%arg 1%&6] &7%arg 2%" to loop-value
		set {msg::last::%player%} to arg 1
		set {msg::last::%arg 1%} to player
		
command /r [<text>]:
	if arg 1 is not set:
		send "&cPoprawne uzycie: &6/r <wiadomosc>" to player
	if {msg::last::%player%} is not set:
		send "&cNie masz komu odpowiedziec!" to player
		stop
	send "&6[&c%player% &e-> &cTy&6] &7%arg 2%" to {msg::last::%player%}
	send "&6[&cTy &e-> &c%{msg::last::%player%}%&6] &7%arg 2%" to player
	loop {socialspy::*}:
		send "&6[&c%player% &e-> &c%{msg::last::%player%}%&6] &7%arg 2%" to loop-value
		
command /socialspy:
	trigger:
		if player is not op:
			stop
		if {socialspy::*} contains player:
			remove player from {socialspy::*}
			send "&cWylaczyles &6SocialSpy&c." to player
			stop
		if {socialspy::*} doesn't contain player:
			add player to {socialspy::*}
			send "&aWlaczyles &6SocialSpy&a." to player	

Napisałem taką wersję z dodanym socialspy. Sprawdź czy wszystko będzie działało.

z tym jest cos nie tak 

		send "&6[&c%player% &e-> &cTy&6] &7%arg 2%" to {msg::last::%player%}
		send "&6[&cTy &e-> &c%{msg::last::%player%}%&6] &7%arg 2%" to player
		loop {socialspy::*}:
			send "&6[&c%player% &e-> &c%{msg::last::%player%}%&6] &7%arg 2%" to loop-value

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Teraz, pawel1232 napisał:

z tym jest cos nie tak 

		send "&6[&c%player% &e-> &cTy&6] &7%arg 2%" to {msg::last::%player%}
		send "&6[&cTy &e-> &c%{msg::last::%player%}%&6] &7%arg 2%" to player
		loop {socialspy::*}:
			send "&6[&c%player% &e-> &c%{msg::last::%player%}%&6] &7%arg 2%" to loop-value

 

Ale co konkretnie? Jakiś błąd jest?

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Cytat
command /r [<text>]:
    trigger:
        if arg 1 is not set:
            send "&cPoprawne uzycie: &6/r <wiadomosc>" to player
        if {msg::last::%player%} is not set:
            send "&cNie masz komu odpowiedziec!" to player
            stop
        send "&6[&c%player% &e-> &cTy&6] &7%arg 2%" to {msg::last::%player%}
        send "&6[&cTy &e-> &c%{msg::last::%player%}%&6] &7%arg 2%" to player
        loop {socialspy::*}:
            send "&6[&c%player% &e-> &c%{msg::last::%player%}%&6] &7%arg 2%" to loop-value

 

Tutaj chyba nie ma else: 

Edytowane przez xAxee
xAxee

Poprawiam cytat

Notatka dodana przez xAxee

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
11 minut temu, Kormic napisał:

Już widzę o co biega, stop nie dałem. Zaraz dodam.

EDIT:

Naprawione.

Sprawdź jeszcze raz komende /r i zobacz tam brakuje trigger: i coś jeszcze jest źle 

EDIT tylko w tej komendzie jest źle 

EDIT 2: Naprawiłem tam był arg 2 zamiast arg 1 

 

Edytowane przez pawel1232
Odnośnik do komentarza
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.

 Udostępnij

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

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