Faction skript "invite" funciton

  • 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.

Willhelm.42

Member
Nov 13, 2022
4
0
1
24
command /leader [<text>] [<text>] [<text>] [<text>]:
aliases: /lfk
trigger:
if {fkleader.%player%} is true:
if arg-1 is "felvesz":
if {frakció.%arg-2%} = "{@nincs}":
if {frakció.%player%} = "{@pd}":
set {frakció.%arg-2%} to "{@pd}"
set {frakció.rang.%arg-2%} to "Tizedes"
send "&aSikeresen felvetted %arg-2% játékost a frakciódba!" to player
stop trigger
if {frakció.%player%} = "{@omsz}":
set {frakció.%arg-2%} to "{@omsz}"
set {frakció.rang.%arg-2%} to "Mentőápoló"
send "&aSikeresen felvetted %arg-2% játékost a frakciódba!" to player
stop trigger
if {frakció.%player%} = "{@önkori}":
set {frakció.%arg-2%} to "{@önkori}"
set {frakció.rang.%arg-2%} to "Ügyintéző"
send "&aSikeresen felvetted %arg-2% játékost a frakciódba!" to player
stop trigger


Not work this script
 
Formatted(i didnt change any of the code)
Code:
command /leader [<text>] [<text>] [<text>] [<text>]:
    aliases: /lfk
    trigger:
        if {fkleader.%player%} is true:
            if arg-1 is "felvesz":
                if {frakció.%arg-2%} = "{@nincs}":
                    if {frakció.%player%} = "{@pd}":
                        set {frakció.%arg-2%} to "{@pd}"
                        set {frakció.rang.%arg-2%} to "Tizedes"
                        send "&aSikeresen felvetted %arg-2% játékost a frakciódba!" to player
                        stop trigger
                    if {frakció.%player%} = "{@omsz}":
                        set {frakció.%arg-2%} to "{@omsz}"
                        set {frakció.rang.%arg-2%} to "Mentőápoló"
                        send "&aSikeresen felvetted %arg-2% játékost a frakciódba!" to player
                        stop trigger
                    if {frakció.%player%} = "{@önkori}":
                        set {frakció.%arg-2%} to "{@önkori}"
                        set {frakció.rang.%arg-2%} to "Ügyintéző"
                        send "&aSikeresen felvetted %arg-2% játékost a frakciódba!" to player
                        stop trigger
 
Would you be able to provide more information on why this doesn't work (things like errors or what's not working with it)?

And thanks for formatting it, yea rite.
 
Status
Not open for further replies.