#it doesn't work can anybody give me a hand..??

1 messages · Page 1 of 1 (latest)

quiet inlet
#

don't crosspost

#

but i'll say it again

#

player doesn't have {SP}, {SP} is the player

tidal current
#

oh i found your comment..!

#

so how do i change

#

like...

#
if player is {SP}```??
quiet inlet
#

just make it true or false, and set the variable to something more scaleable since now, it technically only works with 1 player

tidal current
quiet inlet
#

scaleable i mean

#

player's uuid

tidal current
#

okay

quiet inlet
#

so u know what i mean or do i need to explain further?

tidal current
#

set {_sp} to %player's uuid%

#

you mean right..?

#

actually im noob in skript..

quiet inlet
#

no

tidal current
#

hum...

quiet inlet
#

also don't use % if it isn't in varibles or strings

#

but

#

set {sb.%player's uuid%} to true

#

and then call it

#

and maybe make it a list

#

lists always better

tidal current
#

oh...

quiet inlet
#

also

#

location doesn't work like that

#

the variables is local which means it can only be used in the same event

tidal current
#

oh,,

#

okay

quiet inlet
#

ig you could do the same thing as the sb

#

variable

tidal current
#

or is there any thing like better then "on gamemode change:"???

quiet inlet
#

i don't think so

#

what do you mean

tidal current
#

somethiong like "on gamemode spectator?"

#

im trying to make spectator mode to be stuck

quiet inlet
#

yeah i know

#

but yes

#

actually i think you can do that

tidal current
#

oh let me try !!

tidal current
quiet inlet
#

on gamemode change to spectator

tidal current
#

so that works only if change to SPmode

#

if i reconnect the server wont work??

quiet inlet
#

yes

#

what?

#

you could make an on join event then

#

but i see why that would be more complicated

#

or make the player survival on quit

tidal current
#

hum...

#
    if player is not op:
        set {_location} to player's location
        while player's gamemode = spectator:
            if distance between player's location and {_location} > 0.5:
                teleport player to {_location}
            wait 10 ticks```
#

so this is the best way??

quiet inlet
#

does it work?

tidal current
#

it works but

#

if you rejoin

#

deosnt work..

quiet inlet
#

i said what you can do up there

tidal current
#

on join:
if player"s gamemode is spectator:
{SET LOCATION}??

quiet inlet
#

yea

#

but just make the while loop it's own

#

probably easier

tidal current
#

AH.!

quiet inlet
#

and don't make the location local

#

delete the _

#

and make it the player's uuid

#

and then if you want, delete the location variable on survival change

tidal current
#

ill try!

#
    if player is not op:
        set {_location} to player's location
        while player's gamemode = spectator:
            if distance between player's location and {_location} > 0.5:
                teleport player to {_location}
            wait 10 ticks

on join:
    if player's gamemode is spectator:
        if player is not op:
            set {_location} to player's location
            while player's gamemode = spectator:
                if distance between player's location and {_location} > 0.5:
                    teleport player to {_location}
                wait 10 ticks```
#

im not used to in varable

#

but this works!

quiet inlet
#

if it works it works

tidal current
#

thanks alot