The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on PUN.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

How to kick a player

Thestranger
2020-01-25 04:25:36

Hi, i just made a script to kick a player from room if player name equal the value and click button he will be kicked out , I'm using Photon

Comments

Thestranger
2020-01-26 00:15:29

Any help please

JohnTube
2020-01-27 10:43:13

Hi @Thestranger,

Thank you for choosing Photon!

Example code to get player using its nickname.
Suggestions: assign & cache input field component.

Thestranger
2020-02-10 06:45:11

@JohnTube

It worked! Thank you so much, And i want something else, I want when the player kicks he is directed to Lobby

Back to top