Death script problem.
#4

Ok i added this and the player still gets teleported back to the place without an animation nor getting frozen.

pawn Код:
if(Dead[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0)
                {
                    new Float:pX, Float:pY, Float:pZ;
                    GetPlayerPos(playerid, pX, pY, pZ);
                    DeathPosX[playerid] = pX;
                    DeathPosY[playerid] = pY;
                    DeathPosZ[playerid] = pZ;
                    SetCameraBehindPlayer(playerid);
                    SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
                    ClearAnimations(playerid);
                    LoopingAnim(playerid,"PED","KO_skid_front",4.1,0,1,1,1,0);
                    TogglePlayerControllable(playerid, 0);
                    SetPlayerHealth(playerid, 25.00);
                    SendClientMessage(playerid, COLOR_RED, "You are dying, Type /acceptdeath or wait for a medic.");
                    IsDead[playerid] = 1;
                return 1;
                }
Reply


Messages In This Thread
Death script problem. - by viddo - 30.01.2013, 20:20
Re: Death script problem. - by LarzI - 30.01.2013, 20:34
Re: Death script problem. - by jakejohnsonusa - 30.01.2013, 20:46
Re: Death script problem. - by viddo - 31.01.2013, 22:19

Forum Jump:


Users browsing this thread: 1 Guest(s)