Something is blocking animations.
#4

Ah... the chances are that TogglePlayerSpectating(playerid, 0); may be causing the issue. When you are disabling spectate, OnPlayerSpawn is called. So I think you would be better off placing this under OnPlayerSpawn, like so:

pawn Код:
public OnPlayerSpawn(playerid)
{
    if (beforehold)
    {
        if (introstop[playerid] == 2)
        {
            TogglePlayerControllable(playerid, 1);
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, 1900.3048,-1600.3887,13.5526);
            SetPlayerFacingAngle(playerid, 276.2729);
            ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.1, 1, 0, 0, 0, 0, 1);
            SetPlayerCameraPos(playerid, 1893.487548, -1602.461914, 19.122800);
            SetPlayerCameraLookAt(playerid, 1896.553955, -1601.187622, 16.892684);
            FadeColorForPlayer(playerid, 0, 0, 0, 255, 0, 0, 0, 0, 25, 0);
            SCM(playerid, COLOR_YELLOW, "Дrkasid mдluauguga tдnaval ning kьsid endalt mхttes \"Mis juhtus?\".");
            introstop[playerid] = 0;
        }
        else SetCameraBehindPlayer(playerid); //Not sure if this is entirely needed here (Doesn't need to be repeated)
        //return 1; //If you don't want to use any more code past this point, add this return 1; here.
    }
    //rest of code
    return 1;
}

public OnFadeComplete(playerid,beforehold)
{
    if (beforehold)
    {
        if (introstop[playerid] == 2)
        {
            TogglePlayerSpectating(playerid, 0);
        }
        else SetCameraBehindPlayer(playerid);
    }
    return 1;
}
Reply


Messages In This Thread
Something is blocking animations. - by kristo - 22.10.2013, 14:12
Re: Something is blocking animations. - by Threshold - 22.10.2013, 14:29
Re: Something is blocking animations. - by kristo - 22.10.2013, 14:33
Re: Something is blocking animations. - by Threshold - 22.10.2013, 14:43
Re: Something is blocking animations. - by kristo - 22.10.2013, 14:53

Forum Jump:


Users browsing this thread: 2 Guest(s)