Frozen Camera
#1

Hi, I made an auto-crack system but the camera moves to above the player, Can I change this without removing the TogglePlayerControllable

pawn Код:
forward checkcrack(playerid);
public checkcrack(playerid)
{
    new Float:h;
    GetPlayerHealth(playerid, h);
    if(h < 20)
    {
        if(iscracked[playerid] == 0)
        {
            new Float:u, Float:u2, Float:u3;
            GetPlayerPos(playerid, u, u2, u3);
            iscracked[playerid] = 1;
            TogglePlayerControllable(playerid, 0);
            SetCameraBehindPlayer(playerid);
            ApplyAnimation(playerid,"CRACK","crckdeth2",4.0,1,0,0,0,1);
            ApplyAnimation(playerid,"CRACK","crckdeth2",4.0,1,0,0,120000,1);
            cracktime[playerid] = SetTimerEx("uncrack", 120000, false, "i", playerid);
            CrackLabel[playerid] = Create3DTextLabel("Injured", COLOR_RED, u, u2, u3, 15, 0);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Frozen Camera - by milanosie - 21.02.2012, 08:25
Re: Frozen Camera - by niels44 - 21.02.2012, 15:39
Re: Frozen Camera - by Toreno - 21.02.2012, 15:57
Re: Frozen Camera - by milanosie - 21.02.2012, 16:49

Forum Jump:


Users browsing this thread: 1 Guest(s)