Smooth Camera Movement
#1

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 :/
Reply
#2

no help?
Reply
#3

pawn Код:
TogglePlayerSpectating(playerid, false);
That should return them to CC.
Reply
#4

Quote:
Originally Posted by MP2
Посмотреть сообщение
pawn Код:
TogglePlayerSpectating(playerid, false);
That should return them to CC.
So i should use onplayerrequestclass toggleplayerspectating(playerid,false) ?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)