SA-MP Forums Archive
Login screen - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Login screen (/showthread.php?tid=583542)



Login screen - SquirrelLSRP - 29.07.2015

I currently am working on my login screen. For some reason, when I first join the server, the camera does not move and it stays in the default SA:MP location. However, when I type an incorrect password, it will take me to the camera position.


When I join the server:


When I type an incorrect password:


What should I put the cameraposition under so it will show when I first enter the server rather then when I type an incorrect password?


Re: Login screen - xXitsgodzillaXx - 29.07.2015

Can you show the camera's code?


Re: Login screen - SquirrelLSRP - 29.07.2015

It's an interpolate.

Код HTML:
	TogglePlayerSpectating(playerid, 1);
	InterpolateCameraPos(playerid, 1494.749877, -1715.429809, 15.321800, 1510.866088, -1718.042114, 16.046100, 3000, 1);
	InterpolateCameraLookAt(playerid, 1495.684814, -1715.078369, 15.271821, 1513.923583, -1715.473999, 16.283460, 3000, 1);



Re: Login screen - DarkLored - 29.07.2015

Set the position of the camera when the dialog is being shown, it should work.


Re: Login screen - SquirrelLSRP - 29.07.2015

Quote:
Originally Posted by DarkLored
Посмотреть сообщение
Set the position of the camera when the dialog is being shown, it should work.
It still doesn't work.


Re: Login screen - jamesmith12 - 29.07.2015

Quote:
Originally Posted by SquirrelLSRP
Посмотреть сообщение
It still doesn't work.
hmm try to put that camera code when the player succsessfully login ?


Re: Login screen - SquirrelLSRP - 29.07.2015

Still doesn't work.


Re: Login screen - Variable™ - 29.07.2015

Removed.


Re: Login screen - Battlezone - 29.07.2015

Hey, when the player gets the dialog, use TogglePlayerSpectating, toggle it off / on and see if it works in one of the cases, otherwise use ForcePlayerClassSelection