open.mp forum
[Server] Login and registration without pressing spawn - Printable Version

+ open.mp forum (https://forum.open.mp)
-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3)
--- Forum: Support (https://forum.open.mp/forumdisplay.php?fid=12)
--- Thread: [Server] Login and registration without pressing spawn (/showthread.php?tid=1831)



Login and registration without pressing spawn - YowlsGazZ - 2021-04-01

[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


RE: Login and registration without pressing spawn - Radical - 2021-04-01

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.


RE: Login and registration without pressing spawn - YowlsGazZ - 2021-04-06

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?


RE: Login and registration without pressing spawn - Banditul - 2021-04-06

(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