Hello,
I wanted to ask how I can code a realtime script when a player is in-game and he is banned during dessend then a pop up should come and say please log in again, how can I code something like that?
Hello,
I wanted to ask how I can code a realtime script when a player is in-game and he is banned during dessend then a pop up should come and say please log in again, how can I code something like that?
Could you please tell me what does ”user is banned during dessend” mean? And as you ban a user, they cannot log in, so why do you want to show them ”please log in again”? If you want to ban players, you can just use BanUsers on server side.
The line "and he is banned during dessend" is probably accidental I took a there translator sorry for that, so I mean the whole ban thing goes but I mean if let's say I'm a cheater and I'm just in the game and play it and an admin bans me nothing happens it is only displayed when I leave the game and log in again I do want that if someone is banned that he is then kicked in-game directly to the login screen, you know what I mean?
What is the type of your game? If it is real-time multiplayer game, you can ban and disconnect the client at the same time on the server. If not, once the user is banned, any API call will return ("error": "AccountBanned"), then you can tell the user they’re banned and let the game go back to the login screen.
It's a mutliplayer FPS game and I have no idea how to do it
I don’t know your programming environment or framework. The disconnect feature ought to be implemented in your multiplayer server assets, so you may search the related document.
I looked in the document and found nothing neither docs nor other posts from Player
2 People are following this question.