Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Komenda - /msg


Rekomendowane odpowiedzi

Opublikowano

@up

Masz kod do script.

PASTE

Kod:

command /msg <player> <text>:
	aliases: tell, m, t, whisper
	trigger:
		player has permission "sopher.chat.msg":
			arg 1 is set:
				arg 1 is online:
					arg 2 is set:
						send "&7[&dJa &f> &d%arg 1%&7] &7%arg 2%" to player
						send "&7[&d%player% &f> &dJa&7] &7%arg 2%" to arg 1
						clear {sopher.chat.msg.%player%}
						clear {sopher.chat.msg.%arg 1%}
						wait 1 second
						set {sopher.chat.msg.%player%} to arg 1
						set {sopher.chat.msg.%arg 1%} to player
						loop all players:
							loop-player has permission "sopher.chat.spy"
							if {sopher.chat.spy.%loop-player%} is true:
								send "&7[&5SPY&7] [&f%player% > %arg 1%&7] &7%arg 2%" to loop-player
								stop
							stop
						log " [%player% > %arg 1%] %arg 2%" to "sopher.chat.msg"
						stop
					send "&6** &7Musisz wpisac wiadomosc!"
					stop
				send "&6** &7Gracz %arg 1% nie jest aktywny!"
				stop
			send "&6** /msg <gracz> <tresc>"
			stop
		send "&6**{prms}"
		stop
		
		
command /reply <text>:
	trigger:
		arg is set:
			if {sopher.chat.msg.%player%} is set:
				send "&7[&dJa &f> &d%{sopher.chat.msg.%player%}%&7] &7%arg%" to player
				send "&7[&d%player% &f> &dJa&7] &7%arg%" to {sopher.chat.msg.%player%}
				loop all players:
					loop-player has permission "sopher.chat.spy"
					if {sopher.chat.spy.%loop-player%} is true:
						send "&7[&5SPY&7] [&f%player% > %{sopher.chat.msg.%player%}%&7] &7%arg%" to loop-player
						stop
					stop
				log " [%player% > %{sopher.chat.msg.%player%}%] %arg%" to "sopher.chat.msg"
				stop
			else:
				send "&6** &9Nie masz komu odpisac!"
				stop
		send "&6** /r <tresc>"
		stop
		
command /r <text>:
	trigger:
		arg is set:
			if {sopher.chat.msg.%player%} is set:
				send "&7[&dJa &f> &d%{sopher.chat.msg.%player%}%&7] &7%arg%" to player
				send "&7[&d%player% &f> &dJa&7] &7%arg%" to {sopher.chat.msg.%player%}
				loop all players:
					loop-player has permission "sopher.chat.spy"
					if {sopher.chat.spy.%loop-player%} is true:
						send "&7[&5SPY&7] [&f%player% > %{sopher.chat.msg.%player%}%&7] &7%arg%" to loop-player
						stop
					stop
				stop
			else:
				send "&6** &9Nie masz komu odpisac!"
				stop
		send "&6** /r <tresc>"
		stop

:)

  • 2 lata później...
Opublikowano

 

@up

Masz kod do script.

PASTE

Kod:

command /msg <player> <text>:
	aliases: tell, m, t, whisper
	trigger:
		player has permission "sopher.chat.msg":
			arg 1 is set:
				arg 1 is online:
					arg 2 is set:
						send "&7[&dJa &f> &d%arg 1%&7] &7%arg 2%" to player
						send "&7[&d%player% &f> &dJa&7] &7%arg 2%" to arg 1
						clear {sopher.chat.msg.%player%}
						clear {sopher.chat.msg.%arg 1%}
						wait 1 second
						set {sopher.chat.msg.%player%} to arg 1
						set {sopher.chat.msg.%arg 1%} to player
						loop all players:
							loop-player has permission "sopher.chat.spy"
							if {sopher.chat.spy.%loop-player%} is true:
								send "&7[&5SPY&7] [&f%player% > %arg 1%&7] &7%arg 2%" to loop-player
								stop
							stop
						log " [%player% > %arg 1%] %arg 2%" to "sopher.chat.msg"
						stop
					send "&6** &7Musisz wpisac wiadomosc!"
					stop
				send "&6** &7Gracz %arg 1% nie jest aktywny!"
				stop
			send "&6** /msg <gracz> <tresc>"
			stop
		send "&6**{prms}"
		stop
		
		
command /reply <text>:
	trigger:
		arg is set:
			if {sopher.chat.msg.%player%} is set:
				send "&7[&dJa &f> &d%{sopher.chat.msg.%player%}%&7] &7%arg%" to player
				send "&7[&d%player% &f> &dJa&7] &7%arg%" to {sopher.chat.msg.%player%}
				loop all players:
					loop-player has permission "sopher.chat.spy"
					if {sopher.chat.spy.%loop-player%} is true:
						send "&7[&5SPY&7] [&f%player% > %{sopher.chat.msg.%player%}%&7] &7%arg%" to loop-player
						stop
					stop
				log " [%player% > %{sopher.chat.msg.%player%}%] %arg%" to "sopher.chat.msg"
				stop
			else:
				send "&6** &9Nie masz komu odpisac!"
				stop
		send "&6** /r <tresc>"
		stop
		
command /r <text>:
	trigger:
		arg is set:
			if {sopher.chat.msg.%player%} is set:
				send "&7[&dJa &f> &d%{sopher.chat.msg.%player%}%&7] &7%arg%" to player
				send "&7[&d%player% &f> &dJa&7] &7%arg%" to {sopher.chat.msg.%player%}
				loop all players:
					loop-player has permission "sopher.chat.spy"
					if {sopher.chat.spy.%loop-player%} is true:
						send "&7[&5SPY&7] [&f%player% > %{sopher.chat.msg.%player%}%&7] &7%arg%" to loop-player
						stop
					stop
				stop
			else:
				send "&6** &9Nie masz komu odpisac!"
				stop
		send "&6** /r <tresc>"
		stop

Dzieki za skrypt :)

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...