InterpolateCameraPos Problem.
#1

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?
Reply
#2

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

Try it on player login!
Reply
#3

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);
Reply
#4

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.
Reply
#5

You got the cam to stop irinel1196
*EDIT*

Thanks it works perfectly.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)