#screenshare skript
1 messages · Page 1 of 1 (latest)
I'm not entirely sure what you're asking
Could you repeat your question and specifically say what you need help with?
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
So you want the player not to be able to use a command while they are in a specific room?
Instead of making it region based use a variable
I create a region and in that region he cannot use any other commands
less laggy
ok
When you send the player to whatever region you use a command right?
/screenshare player?
yes
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
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
on command "/spawn":
if {whatever variable} is true:
cancel event
send "You cant use that command while in ss room" to sender
did you set a variable to be true when you /ss the player
yea
what?
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
yea
set {screenshare.%player%} to true
if {screenshare.%player%} is true:
cancel event
send "You cant use that command while in ss room" to sender```
i dont know what to tell you because its working perfectly for me
are you using the latest version of skript?
yea
can you send your skript info
I cannot even read that
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
ok
How is this possible??
idk