Smooth Camera Movement - 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: Smooth Camera Movement (
/showthread.php?tid=502291)
Smooth Camera Movement -
vassilis - 23.03.2014
So i decided to use MP2's camera moving include and seems to work correctly but now i can't go to request class... I am using it on player connect and then it doesn't sends you to class selection? Any idea here is my code:
pawn Код:
OnPlayerRequestClass callback
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2025.0773,-1423.5450,16.9922);
SetPlayerCameraPos(playerid,2016.2635,-1432.2692,13.5458);
SetPlayerCameraLookAt(playerid,2025.0773,-1423.5450,16.9922);
SetPlayerFacingAngle(playerid, 135.4);
return 1;
}
OnPlayerConnect callback
{
SetPlayerCamera(playerid, 2001.823974, -1069.818481, 202.117340, 779.929504, -1942.855590, 169.096206, true);
InterpolatePlayerCamera(playerid, 2001.823974, -1069.818481, 202.117340, 779.929504, -1942.855590, 169.096206, 634.326599, -1901.326782, 166.084747, 202.117340, 779.929504, -1942.855590, 30000);
return 1;
}
it logs in but it doesnt send on class selection then :/
Re: Smooth Camera Movement -
vassilis - 23.03.2014
no help?
Re: Smooth Camera Movement -
MP2 - 23.03.2014
pawn Код:
TogglePlayerSpectating(playerid, false);
That should return them to CC.
Re: Smooth Camera Movement -
vassilis - 23.03.2014
Quote:
Originally Posted by MP2
pawn Код:
TogglePlayerSpectating(playerid, false);
That should return them to CC.
|
So i should use onplayerrequestclass toggleplayerspectating(playerid,false) ?