Problem With InterpolateCameraPos
#1

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;
}
Reply
#2

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

thanks mate
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)