Jump to content
  • 0

pomoc Nastaveni kamery v dialogu loginu či register


Guest Thomas.

Dotaz

zdravím

 

chtěl bych jsem se zeptat jak nastavit pozici kamery po přihlášeni do hry do dialogu ve street life ? sam sem to zkoušel pošlu vám zde kod a screenshot

 

To je defaultne to co je na screnu ani nevím čím to je vůbec :

 

1u5717f8cgb2yh6qh8t7.png

 

 

Kod:

public OnPlayerRequestClass(playerid, classid)
{
  	SetPlayerPos(playerid, -2080.4331,305.3169,105.7115);
  	SetPlayerFacingAngle(playerid, 90.0);
  	SetPlayerCameraPos(playerid, -2079.9763,315.0147,106.1571);
  	SetPlayerCameraLookAt(playerid, -2080.4331,305.3169,105.7115);
	if(!IsPlayerNPC(playerid)) Player[playerid][FNC_01]=1;
	else if(Player[playerid][Logged] == true)
	{
	    SetSpawnInfo(playerid, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
	    SpawnPlayer(playerid);
	}
	return 1;
}

public OnPlayerConnect(playerid)
{
      SetPlayerPos(playerid, -2080.4331,305.3169,105.7115);
      SetPlayerFacingAngle(playerid, 90.0);
      SetPlayerCameraPos(playerid, -2079.9763,315.0147,106.1571);
      SetPlayerCameraLookAt(playerid, -2080.4331,305.3169,105.7115);
Edited by Thomas.
Link to comment
Share on other sites

2 odpovědí na tuto otázku

Recommended Posts

  • 0

zkus použít něco jako tohle http://samp-scripts.com/post/GM-ADDON_Moving_camera_on_class_selection-dice7-filterscript-other-6692/

ale pokuď chceš statickou kameru jako aby stála na místě tak to ti poradí někdo z těch lepších :d

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...