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



Problem With InterpolateCameraPos - zT KiNgKoNg - 15.09.2012

when a player join my server i want the camera to move point to point with InterpolateCameraPos but when they connect it only showing them the dialog not moving the camera could someone help please

pawn Код:
public OnPlayerConnect(playerid)
{
    if(fexist(UserPath(playerid)))
    {
        SetPlayerPos( playerid, PosX[ playerid ], PosY[ playerid ], PosZ[ playerid ] );
        SetPlayerFacingAngle( playerid, PosA[ playerid ] );
        SetPlayerInterior( playerid, Interior[ playerid ] );
        SetPlayerVirtualWorld( playerid, VirtualWorld[ playerid ] );
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Type your password below to login.","Login","Quit");
    }
    else
    {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
    }
    TogglePlayerSpectating(playerid, 1);
    InterpolateCameraPos(playerid,3.6484, 1231.1394, 60.5957,-217.8054, 995.5449, 60.5957, 10000, CAMERA_MOVE);
    return 1;
}



Re: Problem With InterpolateCameraPos - milanosie - 15.09.2012

Doesnt work at onplayerconnect.
Place it in a,100 ms timer started from onplayerrequestclass


Re: Problem With InterpolateCameraPos - zT KiNgKoNg - 15.09.2012

thanks mate