SA-MP Forums Archive
InterpolateCameraPos not working... - 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: InterpolateCameraPos not working... (/showthread.php?tid=662394)



InterpolateCameraPos not working... - NexyAG - 30.12.2018

Код:
public OnPlayerConnect(playerid)
{	
	InterpolateCameraPos(playerid, 1792.998779, -1947.676025, 21.284772, 1701.712524, -1945.378417, 20.402620, 2500);
	InterpolateCameraLookAt(playerid, 1788.847534, -1949.786254, 19.464315, 1705.769042, -1947.831787, 18.813478, 2500);
	TogglePlayerSpectating(playerid, true);
	FCNPC_Tutorial[playerid] = FCNPC_Create("Vi");
	FCNPC_Spawn(FCNPC_Tutorial[playerid], 292, 1723.0363,-1951.1362,14.1172);
	FCNPC_SetAngle(FCNPC_Tutorial[playerid], 180.0);
	Ulogovan[playerid] = false; LoginPokusaji[playerid] = 0;
	/*-------------------------------------------------------------*/
	DeleteObjects(playerid);
	Server(playerid, "Ucitavanje servera u toku, molimo sacekajte...");
	SetTimerEx("LogReg", 1000, false, "d", playerid);
	/*-------------------------------------------------------------*/
	return 1;
}
I know that InterpolateCameraPos and other camera related stuff cannot be used right after/before changing player's mode to SPECTATOR, but even when i put this into this timer "LogReg", it still won't work, but when i add on example when player enter wrong password, than it works ( when dialog responds )
Sorry for my bad English