#screenshare skript

1 messages · Page 1 of 1 (latest)

cedar rain
#

Hi I want help with screenshare skript in skript I want in ss room of dont use command /spawn cancel event in ss room somebody help me?

#

in this

ivory hull
#

I'm not entirely sure what you're asking

#

Could you repeat your question and specifically say what you need help with?

cedar rain
#

hi, I have this script and as soon as I give /screenshare player it will port him to the ss room but I want him to not be able to give /spawn any command when he is in the room until I give ss end

ivory hull
#

So you want the player not to be able to use a command while they are in a specific room?

cedar rain
#

yea

#

stations in the region

#

he dont use comand

ivory hull
#

Instead of making it region based use a variable

cedar rain
#

I create a region and in that region he cannot use any other commands

ivory hull
#

less laggy

cedar rain
#

ok

ivory hull
#

When you send the player to whatever region you use a command right?

#

/screenshare player?

cedar rain
#

yes

ivory hull
#

if so, in the trigger of that command make a local variable on the player and set it to true to specify that they are in the screenshare

#

then, whenever they try to execute a command check to see if the player has that variable set to true

#

if its true, dont let them do the command

#

if its false, let them

cedar rain
#

This

#

I don't want him to be able to spawn in this room.

#

just stay in ss room

#

and him ss end he can use comand and /spawn

ivory hull
#
on command "/spawn":
  if {whatever variable} is true:
    cancel event
    send "You cant use that command while in ss room" to sender
cedar rain
#

thanks

#

wait i try

#

still i can spawn comand in room

#

😦

ivory hull
#

did you set a variable to be true when you /ss the player

cedar rain
#

yea

ivory hull
#

oh dude that was example code

#

not actual code

#

im not gonna write it for you

cedar rain
#

what?

ivory hull
#

it was an example

#

you have to change {whatever variable} to an actual variable that is set to true or false

#

when you send the player to the ss room using the command set the variable to true

cedar rain
#

still not work

#

i have region type ss

ivory hull
#

in the actual /screenshare command

#

when you send the player to the screenshare

cedar rain
#

yea

ivory hull
#

set {screenshare.%player%} to true

#
  if {screenshare.%player%} is true:
    cancel event
    send "You cant use that command while in ss room" to sender```
cedar rain
#

still dont work

ivory hull
#

i dont know what to tell you because its working perfectly for me

#

are you using the latest version of skript?

cedar rain
#

yea

ivory hull
#

can you send your skript info

cedar rain
ivory hull
#

no /skript info

#

and send your updated skript

cedar rain
ivory hull
#

I cannot even read that

cedar rain
#

good?

#

why dont work

ivory hull
#

i dont know tbh

#

ive helped you as much as i can

cedar rain
#

oh ok

#

and if it carried data in the region, /spawn, I would make the region ss so that they couldn't give any commands in that region alone

#

this dont be work?

#

@ivory hull

ivory hull
#

im sorry i cant help you any more

#

someone else will try soon

cedar rain
#

ok

pine void
cedar rain
#

idk