• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Server] Login and registration without pressing spawn
#1
[English] Good morning / afternoon / evening



Friends, today I have a question, which has invaded me a while ago, and it is how I can make the users who enter my server, either by logging in or registering, do so without pressing the "Spawn" box.




[i]PS: Your support is always appreciated[/i]



[Spanish]?Buen@s d?as/tardes/noches



amigos, hoy tengo una pregunta, la cual me ha invadido hace un tiempo, y es como puedo hacer que los usuarios que entren en mi servidor, ya sea logeando o registrandose lo hagan sin necesidad de presionar el recuadro de "Spawn".





PD: Siempre se agradece su apoyo :3
  Reply
#2
If you mean players have to click on the spawn box to see?the dialog login/register :

You have to show the login/register dialog on OnPlayerConnect not in OnPlayerRequestClass.
  Reply
#3
Resumiendo el problema, lo que quiero es que cuando un usuario coloca su contrase?a, inicia sesi?n o se genera en el servidor instant?neamente, sin tener que presionar la casilla "Spawn", ?hay alg?n c?digo para deshabilitar esa casilla?
  Reply
#4
(2021-04-06, 04:19 AM)YowlsGazZ Wrote: Resumiendo el problema, lo que quiero es que cuando un usuario coloca su contrase?a, inicia sesi?n o se genera en el servidor instant?neamente, sin tener que presionar la casilla "Spawn", ?hay alg?n c?digo para deshabilitar esa casilla?

You can disable those buttons by using TogglePlayerSpectating(playerid, 1) at OnPlayerConnect to make player spectate and after the player log in you can show them again using TogglePlayerSpectating(playerid, 0) or if you are not using classes you should use it before you spawn the player
Away
  Reply


Forum Jump: