SA-MP Forums Archive
Problem with AddPlayerClass - 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: Problem with AddPlayerClass (/showthread.php?tid=628628)



Problem with AddPlayerClass - Triggerz - 12.02.2017

The problem is that the camera isn't focused on the player in the skin selection.
Here's my code:

Код:
public OnGameModeInit()
{
	AddPlayerClass(117,-87.4950,1217.3195,19.7422,185.2165,24,199,25,50,10,1);
	AddPlayerClass(268,-141.6544,1176.3391,19.7500,351.0439,24,199,25,50,10,1); //
	AddPlayerClass(46,-158.8103,1128.7385,19.7422,344.7046,24,199,25,50,10,1); //
	AddPlayerClass(98,-204.9586,1119.3209,19.7422,269.6488,24,199,25,50,10,1); //
	AddPlayerClass(111,-231.5153,1052.6196,19.7344,282.4956,24,199,25,50,10,1); //
	AddPlayerClass(277,-165.9810,1050.8811,19.7422,165.5720,24,199,25,50,10,1); //
	AddPlayerClass(13,-110.0530,1133.4197,19.7422,3.8179,24,199,25,50,10,1);
	return 1;
}



Re: Problem with AddPlayerClass - adri[4]Life - 12.02.2017

You Have to Put this OnPlayerRequestClass (if you don't have)
Код:
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); //Put Here Player's Co-Ordinates
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); //Put Here Camera's Co-ordinates
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); //Same Co-Ordinates With SetPlayerPos
And You Can Put This it's not necessary But it Set Your Player's Facing Angel :
Код:
SetPlayerFacingAngle( playerid, 0 ); //Player faces north
Use /save to Save your Position On The Map's Co-Ordinates