Skocz do zawartości
  • 0

Usunie mi ktoś z tego skryptu permissie do używania komend ?


Pytanie

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

 

 

 

 

 

Chce żeby nie było permissi do używania tego usunie ktoś ?

Odnośnik do komentarza
https://skript.pl/temat/8817-usunie-mi-kto%C5%9B-z-tego-skryptu-permissie-do-u%C5%BCywania-komend/
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Ja ci to mogę zrobić tylko że daj wytabowane xd. A tu masz moj skrypt na msg :p. Może ci spasi xd





command /msg [<player>] [<text>]:
trigger:
if arg 1 is not set:
send "&a/msg &c<nick> &f<tresc> &a- wysylasz wiadomosc."
if arg 1 is set:
if arg 2 is not set:
send "&a/msg &c%arg 1%&a &f<tresc> &a- zapomniales tresci..."
if arg 2 is set:
send "&f[&aMSG&f] &f[&a%player% &f-> &aJa&f] &a%arg 2%" to player-argument
send "&f[&aMSG&f] &f[&aTy &f-> &a%arg 1%&f] &a%arg 2%"
log "[Gracz: %player% -> %arg 1% ] Wyslal'a: [%arg 2%]" to "msg/%player%"
stop


Tylko że nie rozumiem po co loop all players do msg. W sumie msg to prywatna wiadomosc a nie globalna.


Jak chcesz to ci napisze jeszcze reply


Edytowane przez ShroN
Odnośnik do komentarza
https://skript.pl/temat/8817-usunie-mi-kto%C5%9B-z-tego-skryptu-permissie-do-u%C5%BCywania-komend/#findComment-69003
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ę...