Variables:
{adminlog.%player%} = false
{Admin.%player%} = false
{pass.%player%} = "."
on join:
set {adminlog.%player%} to false
command /sss [<text>] [<text>]:
trigger:
player has permissions "admin.panel":
if {admin.%player%} is true:
if arg 1 is "login":
if arg 2 is {pass.%player%}:
set {adminlog.%player%} to true
execute console command "msg %player% &aZalogowano pomyslnie"
if arg 1 is "setpassword":
set {pass.%player%} to arg 2
execute console command "msg %player% &aUstawiono haslo pomyslnie!"
if arg 1 is "add":
if {Admin.%player%} is true:
set {Admin.%player%} to arg 2
execute console command "msg %player% &cPomyslnie nadano administratora graczowi &a%player%"
if {admin.%player%} is false:
execute console command "bc dobrze"
Mam następujący problem, po wpisaniu komendy nic się nie dzieje, co jest tego przyczyną ?
Czy również ktoś mógłby powiedzieć mi jak zrobić aby po wpisaniu /sss del nick ustawiało wpisanemu graczu {Admin.%player%} na false ? A po wpisaniu /sss add nick ustawiało graczu na true
Pytanie
Hardcor13480 0
Variables: {adminlog.%player%} = false {Admin.%player%} = false {pass.%player%} = "." on join: set {adminlog.%player%} to false command /sss [<text>] [<text>]: trigger: player has permissions "admin.panel": if {admin.%player%} is true: if arg 1 is "login": if arg 2 is {pass.%player%}: set {adminlog.%player%} to true execute console command "msg %player% &aZalogowano pomyslnie" if arg 1 is "setpassword": set {pass.%player%} to arg 2 execute console command "msg %player% &aUstawiono haslo pomyslnie!" if arg 1 is "add": if {Admin.%player%} is true: set {Admin.%player%} to arg 2 execute console command "msg %player% &cPomyslnie nadano administratora graczowi &a%player%" if {admin.%player%} is false: execute console command "bc dobrze"Mam następujący problem, po wpisaniu komendy nic się nie dzieje, co jest tego przyczyną ?
Czy również ktoś mógłby powiedzieć mi jak zrobić aby po wpisaniu /sss del nick ustawiało wpisanemu graczu {Admin.%player%} na false ? A po wpisaniu /sss add nick ustawiało graczu na true
Odnośnik do komentarza
https://skript.pl/temat/30270-problem-ze-skryptem/Udostępnij na innych stronach
4 odpowiedzi na to pytanie
Rekomendowane odpowiedzi