Punishment System with Proof

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

FabricioSouza

Well-Known Member
Mar 15, 2018
267
3
0
25
Well, I did a Punishment System and I wanted to do a kind of proof, for example: when I type the / ban <offline player> <reason> <test> command, as you see, in argument 3 that is <proof > will be a site showing the proof because of the punishment only when I type command I want it like this: if the staff enter the command everything right and when he puts the proof, if the proof was njkdddnlnjkbdxd.net, would give an error saying that the proof can only begin with http: //
[doublepost=1523730086,1521682143][/doublepost]Does anyone know if this syntax exists:

code_language.skript:
if arg 3 is a link:
    broadcast "Argument 3 has been defined."
[doublepost=1523756542][/doublepost]Someone help me.
 
you could do what you said and just check if the first 8 characters of arg-3 are https://
code_language.skript:
if the first 8 characters of arg-3 are "https://":
    broadcast "Argument 3 has been defined."
if you wanna make sure the link is valid and/or if you wanna allow links that dont necessarily begin with https:// then you could use an expression with a url in it such as skquery''s text from url expression and if it returns none you can assume the link is invalid
code_language.skript:
if text from arg-3 is not "<none>":
    broadcast "Argument 3 has been defined."
 
I want him to announce a valid link.
[doublepost=1523813890,1523764853][/doublepost][QUOTE = "Donut, post: 28917, membro: 1948"] você pode fazer o que você disse e verificar se os 8 primeiros caracteres de arg-3 são https: //
[CODE = SKRIPT] se os primeiros 8 caracteres de arg-3 forem "https: //":
broadcast "Argumento 3 foi definido" [/ CODE]
se você quer ter certeza de que o link é válido e / ou se você quer permitir links que não necessariamente começam com https: // então você poderia usar uma expressão com uma URL como o texto da skquery da expressão url e se ele não retorna nenhum, você pode assumir que o link é inválido
[CODE = SKRIPT] se o texto de arg-3 não for "<none>":
broadcast "Argumento 3 foi definido." [/ CODE] [/ QUOTE]

Donut, I wanted the player to announce a valid link. How I do.
 
I want him to announce a valid link.
[doublepost=1523813890,1523764853][/doublepost][QUOTE = "Donut, post: 28917, membro: 1948"] você pode fazer o que você disse e verificar se os 8 primeiros caracteres de arg-3 são https: //
[CODE = SKRIPT] se os primeiros 8 caracteres de arg-3 forem "https: //":
broadcast "Argumento 3 foi definido" [/ CODE]
se você quer ter certeza de que o link é válido e / ou se você quer permitir links que não necessariamente começam com https: // então você poderia usar uma expressão com uma URL como o texto da skquery da expressão url e se ele não retorna nenhum, você pode assumir que o link é inválido
[CODE = SKRIPT] se o texto de arg-3 não for "<none>":
broadcast "Argumento 3 foi definido." [/ CODE] [/ QUOTE]

Donut, I wanted the player to announce a valid link. How I do.
i literally spoonfed you
 
you could do what you said and just check if the first 8 characters of arg-3 are https://
code_language.skript:
if the first 8 characters of arg-3 are "https://":
    broadcast "Argument 3 has been defined."
if you wanna make sure the link is valid and/or if you wanna allow links that dont necessarily begin with https:// then you could use an expression with a url in it such as skquery''s text from url expression and if it returns none you can assume the link is invalid
code_language.skript:
if text from arg-3 is not "<none>":
    broadcast "Argument 3 has been defined."
 
I said if you've "found" out I fix
[doublepost=1523815444,1523815328][/doublepost]Well Donut gave you what you needed... He legitimately stated that he Spoon-fed you.
 

Why is it saying here: <none>

code_language.skript:
if text from arg-3 is not "<none>":
     broadcast "Argument 3 has been defined".
 
Well you responded to my message... So I think you were chatting with me.

You're serious, you're taking me seriously.
[doublepost=1523816390,1523815810][/doublepost]
Ready, but if the player announces a link that does not exist or put in argument 3 any word what I do.
[doublepost=1523818720][/doublepost]
You're serious, you're taking me seriously.
[doublepost=1523816390,1523815810][/doublepost]

Ready, but if the player announces a link that does not exist or put in argument 3 any word what I do.

Please donut answer me.
 
code_language.skript:
if text from arg-3 is not "<none>":
    broadcast "Argument 3 has been defined."
else:
    broadcast "Invalid link"
 
[QUOTE = "Donut, post: 28947, membro: 1948"] [CODE = SKRIPT] se o texto de arg-3 não for "<none>":
broadcast "Argumento 3 foi definido".
outro:
transmissão "Link inválido" [/ CODE] [/ QUOTE]

You are not understanding, notice, If the player puts a site: https://gjhgshjdhjs.net will appear a message saying invalid link, please use an existing link. So I'm doubtful because the player can put any link that does not exist or can even put random words like: jkfduhjdfsdvhjdfhjfdshoj.
 
[QUOTE = "Donut, post: 28949, membro: 1948"] idk o que você está falando sobre isso funciona bem. teste e veja por si mesmo [/ QUOTE]

I already tested it. But my problem still is that my biggest fear is that when the player sets the argument 3 the site does not exist for example see this site: https://ablaablaabla.net. Then this site does not exist, and if the player announces this site will give an error saying that the site is non-existent.
 
that site is non existent... the code says its non existent... whats the problem?
 
[QUOTE = "Donut, post: 28951, membro: 1948"] esse site é inexistente ... o código diz que não existe ... qual é o problema? [/ QUOTE]

What is the part of the code that the site does not exist.
 
Status
Not open for further replies.