Camera problem.
#2

Use a variable.

pawn Код:
new somevariable[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    somevariable[playerid] = 0; // You must reset the variable
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    if(!somevariable[playerid]) // If it's 0 it means the class selection hasn't been set up yet
    {
    SetPlayerPos(playerid, 330.0273,1307.4177,59.0736);
    SetPlayerFacingAngle(playerid, 358.2263);
        InterpolateCameraPos(playerid, -385.947540, 1386.031005, 44.999927, -332.731658, 1311.356323, 59.700035, 5000);
        InterpolateCameraLookAt(playerid, -383.063262, 1381.969848, 45.433204, -330.227203, 1307.135375, 58.745227, 2000);
        somevariable[playerid] = 1; // Mark it as 'set up'
    }
    return 1;
}
Reply


Messages In This Thread
Camera problem. - by x96664 - 19.05.2012, 12:34
Re: Camera problem. - by MP2 - 19.05.2012, 12:47
Re: Camera problem. - by x96664 - 19.05.2012, 13:06
Re: Camera problem. - by MP2 - 19.05.2012, 13:12
Re: Camera problem. - by x96664 - 19.05.2012, 13:23

Forum Jump:


Users browsing this thread: 1 Guest(s)