Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » how to make a specific person ban from an online game
- kindmining
-
Scratcher
21 posts
how to make a specific person ban from an online game
Well, I am kindmining
and I was wondering how do I ban and unban a specific person from my multiplayer game.
and I was wondering how do I ban and unban a specific person from my multiplayer game.
- sharkode
-
Scratcher
1000+ posts
how to make a specific person ban from an online game
I wouldn't recommend doing it because I'm not sure if it is against the rules, it's best not to do that
when green flag clicked
if <(username) = [The person you want to ban from your game]> then
stop [all v]
end
- kindmining
-
Scratcher
21 posts
how to make a specific person ban from an online game
I wouldn't recommend doing it because I'm not sure if it is against the rules, it's best not to do thatum ok?when green flag clicked
if <(username) = [The person you want to ban from your game]> then
stop [all v]
end
- kindmining
-
Scratcher
21 posts
how to make a specific person ban from an online game
I wouldn't recommend doing it because I'm not sure if it is against the rules, it's best not to do thatbut then can again press green flag??when green flag clicked
if <(username) = [The person you want to ban from your game]> then
stop [all v]
end
- griefercube
-
Scratcher
500+ posts
how to make a specific person ban from an online game
when green flag clickedIf they want to join the game they can’t.
if <(username) = [banned name]> then
stop [all v]
end
… // do your scripts below
(The one below might be against the rules, but I’ll show it anyways.)
To lag him out of existence:
define lag
lag
when [timer v] > (0)
if <(username) = [name]> then
Lag // run without screen refresh
end
- kindmining
-
Scratcher
21 posts
how to make a specific person ban from an online game
Hmm…when green flag clickedIf they want to join the game they can’t.
if <(username) = [banned name]> then
stop [all v]
end
… // do your scripts below
(The one below might be against the rules, but I’ll show it anyways.)
To lag him out of existence:define lag
lag
when [timer v] > (0)
if <(username) = [name]> then
Lag // run without screen refresh
end
Laging can still keep him
I use the first one
- Kaomoji_Dude
-
Scratcher
89 posts
how to make a specific person ban from an online game
Even if you use the code @greifercube used, the person you want to ban (which may not be allowed) can simply use a different account because then the code won't detect the username. Or they could sign out of Scratch and play. I wouldn't recommend this though.
- deck26
-
Scratcher
1000+ posts
how to make a specific person ban from an online game
Even if you use the code @greifercube used, the person you want to ban (which may not be allowed) can simply use a different account because then the code won't detect the username. Or they could sign out of Scratch and play. I wouldn't recommend this though.They won't be able to update cloud variables unless they have an account with Scratcher status so being signed out won't work and if they need banning once a second account has Scratcher status you just add that account.
There's little point banning someone if the project doesn't use cloud data.
- kindmining
-
Scratcher
21 posts
how to make a specific person ban from an online game
Even if you use the code @greifercube used, the person you want to ban (which may not be allowed) can simply use a different account because then the code won't detect the username. Or they could sign out of Scratch and play. I wouldn't recommend this though.why can't we ban ??
I am making a cloud chat and if anyone says swears then will have to get BANNED
- Kaomoji_Dude
-
Scratcher
89 posts
how to make a specific person ban from an online game
Ok, first of all, cloud chats are banned. You can read more about it here.
And the swearing problem is the reason why cloud chats are banned. The Scratch Team can not moderate these projects. I understand that you are trying to prevent this problem, but you would need a blacklist of swear words, so you would need to type the words in a list or something. Then people could see these words when they see inside your project.
However, you CAN make a chat with pre-made messages, such as the one in @griffpatch's Cloud Platformer Multiplayer Fun game.
And the swearing problem is the reason why cloud chats are banned. The Scratch Team can not moderate these projects. I understand that you are trying to prevent this problem, but you would need a blacklist of swear words, so you would need to type the words in a list or something. Then people could see these words when they see inside your project.
However, you CAN make a chat with pre-made messages, such as the one in @griffpatch's Cloud Platformer Multiplayer Fun game.
- DNQ_brwn
-
Scratcher
30 posts
how to make a specific person ban from an online game
also thanks for the lag script, I needed that
- Discussion Forums
- » Help with Scripts
-
» how to make a specific person ban from an online game
