Solved PlayerSwap skript help again

  • 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.
I don't know where I would put that line of code and I do not know what to write in the #do something part.
 
put it before it swaps the players.... basically think about where you want it to check if the player is in spectator or not
The #do something part, is where you would put your "swapping players" part
 
12f8dde21ff71fc2d8c53a09e4b55102.png

https://gyazo.com/12f8dde21ff71fc2d8c53a09e4b55102

When I remove the colon it becomes 33 errors...

https://pastebin.com/Ubb9wcW1
 
No I did not write this skript... I told you this last time I made a post about this skript...
 
not really sure what You are talking about, i don't remember another post of yours regarding this skript.
You need to indent the next line after any colons
 
i edited this section
try this

code_language.skript:
every second:
    if {playerswap} is true:
        if {timeswap} is less than 1:
            set {timeswap} to 600
            delete {playertp::*}
            loop all players:
                if gamemode of loop-player is not spectator:
                    if {spec::%loop-player%} is not set:
                        if loop-player is not "Pheo":
                            add loop-player to {playertp::*}
            set {_swapp1} to (random element out of {playertp::*})
            remove {_swapp1} from {playertp::*}
            set {_x} to {_swapp1}'s x-coordinate
            set {_y} to {_swapp1}'s y-coordinate
            set {_z} to {_swapp1}'s z-coordinate
            set {_world} to {_swapp1}'s world
            set {playerloc.%{_swapp1}%} to (the location at {_x}, {_y}, {_z} of the world {_world})
            wait 1 tick
            set {_swapp2} to (random element out of {playertp::*})
            remove {_swapp2} from {playertp::*}
            set {_x2} to {_swapp2}'s x-coordinate
            set {_y2} to {_swapp2}'s y-coordinate
            set {_z2} to {_swapp2}'s z-coordinate
            set {_world2} to {_swapp2}'s world
            set {playerloc.%{_swapp2}%} to (the location at {_x2}, {_y2}, {_z2} of the world {_world2})
            wait 1 tick
            teleport {_swapp2} to {playerloc.%{_swapp1}%}
            teleport {_swapp1} to {playerloc.%{_swapp2}%}
            broadcast "{@P} &e%{_swapp1}% &7has been swapped with &e%{_swapp2}%&7!"
            wait 1 tick
            delete {_swapp2}
            delete {_swapp1}
            delete {playerloc.%{_swapp2}%}
            delete {playerloc.%{_swapp1}%}
 
When I do /skript update check, it says I have the latest stable version.

And in the plugins folder it doesnt say what version it just says Skript.
 
Status
Not open for further replies.