Updating IntVars Help (+Rep)
#1

-fixed-
Reply
#2

Make it execute "OnPlayerAcceptedDeath" and the reset of the code (within the same level of curly braces) in OnPlayerTakeDamage.
Reply
#3

I dont have a function with OnPlayerAcceptedDeath and i dont know what you mean by the reset of the code, maybe show me an example?
Reply
#4

I meant rest, basically all this:
pawn Код:
SetIntVar(playerid, "JustAcceptedDeath", 1);
        RemoveVar(playerid, "JustDied");
        RemoveVar(playerid, "LoggedInDead");
        FreezePlayer(playerid);
        OnAnim{playerid} = true;
        ApplyAnimation(playerid,"WUZI","CS_Dead_Guy",3.5,0,0,0,1,0);
        SCM(playerid, COLOR_YELLOWG, "-> You're now dead. You need to wait 60 seconds and then you'll get the ability to /respawnme.");

        KillTimer(timerWounded[playerid]);
        timerWounded[playerid] = SetTimerEx("OnPlayerAcceptedDeath", 60 * 1000, false, "i", playerid);
       
        Update3DTextLabelText(DeathReason[playerid], COLOR_LIGHTRED, "(( THIS PLAYER IS DEAD ))");
Reply
#5

Yeah thats what i thought ill will try this now and get back to you about the result, thank you for replying
Reply
#6

I sent you a private message about it in more depth.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)