Hello guys, im new to skript and im just playing around with an gamemode command. Then i tried:
if arg 1 is greater than "3":
send message "&cWrong Usage: /gm <0, 1, 2, 3>"
but it's not working.. how is it right? i only saw "greather than"
[doublepost=1652307511,1652307437][/doublepost]options:
prefix: &c✕ &7Server &c✕ &7|
command /gm [<string>]:
permission: server.gm
permission message: "{@prefix} &cDas darfst du nicht!"
trigger:
if arg 1 is "survival" or "s" or "0":
set player's gamemode to survival
send message "{@prefix} &eDu bist nun im &6Überlebensmodus&e." to player
else if arg 1 is "creative" or "c" or "1":
set player's gamemode to creative
send message "{@prefix} &eDu bist nun im &6Kreativmodus&e." to player
else if arg 1 is "adventure" or "a" or "2":
set player's gamemode to adventure
send message "{@prefix} &eDu bist nun im &6Abenteuermodus&e." to player
else if arg 1 is "spectator" or "spec" or "3":
set player's gamemode to spectator
send message "{@prefix} &eDu bist nun im &6Zuschauermodus&e." to player
else if arg 1 is not set:
send message "{@prefix} &cFalscher Syntax: /gm <0, 1, 2, 3>"
else if arg 1 is greater than "3":
send message "{@prefix} &cFalscher Syntax: /gm <0, 1, 2, 3>"
This is my full code..
if arg 1 is greater than "3":
send message "&cWrong Usage: /gm <0, 1, 2, 3>"
but it's not working.. how is it right? i only saw "greather than"
[doublepost=1652307511,1652307437][/doublepost]options:
prefix: &c✕ &7Server &c✕ &7|
command /gm [<string>]:
permission: server.gm
permission message: "{@prefix} &cDas darfst du nicht!"
trigger:
if arg 1 is "survival" or "s" or "0":
set player's gamemode to survival
send message "{@prefix} &eDu bist nun im &6Überlebensmodus&e." to player
else if arg 1 is "creative" or "c" or "1":
set player's gamemode to creative
send message "{@prefix} &eDu bist nun im &6Kreativmodus&e." to player
else if arg 1 is "adventure" or "a" or "2":
set player's gamemode to adventure
send message "{@prefix} &eDu bist nun im &6Abenteuermodus&e." to player
else if arg 1 is "spectator" or "spec" or "3":
set player's gamemode to spectator
send message "{@prefix} &eDu bist nun im &6Zuschauermodus&e." to player
else if arg 1 is not set:
send message "{@prefix} &cFalscher Syntax: /gm <0, 1, 2, 3>"
else if arg 1 is greater than "3":
send message "{@prefix} &cFalscher Syntax: /gm <0, 1, 2, 3>"
This is my full code..