SA-MP Forums Archive
InterpolateCameraPos Problem. - 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 Problem. (/showthread.php?tid=368573)



InterpolateCameraPos Problem. - [TC]XxJuggaloxX - 13.08.2012

So when ever I have a user login, It shows it moving exactly like I wanted. But then when they spawn they bug out and Fly into the air continually. And their character looks like a blob. They need to /kill just to actually spawn.

Any help with this?


Re: InterpolateCameraPos Problem. - RedJohn - 13.08.2012

https://sampwiki.blast.hk/wiki/SetCameraBehindPlayer

Try it on player login!


Re: InterpolateCameraPos Problem. - [TC]XxJuggaloxX - 13.08.2012

I have it here

new titlestring[64];
new string[256];
format(szMessage, sizeof(szMessage), "Incorrect password. You have %d remaining login attempts left.", MAX_LOGIN_ATTEMPTS - GetPVarInt(extraid, "LA"));
SendClientMessage(extraid, COLOR_HOTORANGE, szMessage);
new ip[32];
GetPlayerIp(extraid, ip, 32);
TogglePlayerSpectating(extraid, 1);
InterpolateCameraPos(extraid, 0.0, 0.0, 10.0, 1000.0, 1000.0, 30.0, 120000, CAMERA_MOVE);

format(titlestring, sizeof(titlestring), "Login - %s", GetPlayerNameEx(extraid));
format(string, sizeof(string), "Invalid Password!\n\nWelcome to Final Genesis Roleplay, %s.\n\nThis Account Is Registred Please Fill In Your Password To Login In", GetPlayerNameEx(extraid), ip);
ShowPlayerDialog(extraid,DIALOG_LOGIN,DIALOG_STYLE _PASSWORD,titlestring,string,"Login","Exit");

Then On Player Spawn this is there

SetCameraBehindPlayer(playerid);


Respuesta: InterpolateCameraPos Problem. - [DOG]irinel1996 - 13.08.2012

When you're going to spawn him after the camera movement, just use TogglePlayerSpectating(playerid, false);, it calls OnPlayerSpawn automatically.
Also, to spawn him with another way, do the same then SetSpawnInfo, and SpawnPlayer.


Re: InterpolateCameraPos Problem. - [TC]XxJuggaloxX - 13.08.2012

You got the cam to stop irinel1196
*EDIT*

Thanks it works perfectly.