SA-MP Forums Archive
Camera - 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: Camera (/showthread.php?tid=626742)



Camera - Hunud - 19.01.2017

How do i make or force when OnPlayerConnect he will be able to see player select skin on my mapped interior on login/register like on Stunt Evolution Freeroam server! help me ;( I tried with SetPlayerCameraPos and SetPlayerCameraLookAt but no work


Re: Camera - Rufio - 19.01.2017

Use SetPlayerPos, SetPlayerCameraPos and SetPlayerCameraLookAt on OnPlayerRequestClass, not OnPlayerConnect, remember to set the interior of the player as well if the destination is mapped in an interior.


Re: Camera - Hunud - 19.01.2017

i already did but no work


Re: Camera - Rufio - 19.01.2017

Show your OnPlayerRequestClass and explain how it doesn't work.


Re: Camera - Hunud - 19.01.2017

Код:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 439.1598,-3238.1653,1350.6810);
	SetPlayerFacingAngle(playerid, 100.2);
	SetPlayerCameraPos(playerid, 332.2801,-1478.9952,3500.9161);
	SetPlayerCameraLookAt(playerid, 439.1598,-3238.1653,1350.6810);
    return 1;
}



Re: Camera - Rufio - 19.01.2017

Quote:
Originally Posted by Hunud
Посмотреть сообщение
Код:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 439.1598,-3238.1653,1350.6810);
	SetPlayerFacingAngle(playerid, 100.2);
	SetPlayerCameraPos(playerid, 332.2801,-1478.9952,3500.9161);
	SetPlayerCameraLookAt(playerid, 439.1598,-3238.1653,1350.6810);
    return 1;
}
And how does it not work? What happens when a player connects and is sent to class selection?

Edit: By the way.... Your CameraLookAt is WAY too below of your CameraPos, I doubt such a distance is even streamable but I could be wrong.


Re: Camera - Hunud - 19.01.2017

Well when OnPlayerConnect a player camera position is normal one(Looking at beach) but this one no work! Camera should be set at inside my mapped interior small and there is saved player position when camera look at!