[5+REP] Blood Counter.
#9

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
They want to know where do you change the variable "SpielerInfo[playerid][pBlood]"

Some examples
pawn Код:
SpielerInfo[playerid][pBlood] += 5;
SpielerInfo[playerid][pBlood]++;
SpielerInfo[playerid][pBlood]--;
because the code you gave only shows the textdraws which are irrelevant
oh sure but u will help me? +1 rep for you
pawn Код:
Onplayerconnect

SpielerInfo[playerid][pBlood] = 12000;
SpielerInfo[playerid][pBloodCounter] = 0;

OnplayerDeath
SpielerInfo[playerid][pBlood]=12000;

...
        if(SpielerInfo[playerid][pBlood] >= 12000)PlayerTextDrawColor(playerid,DayZ_Anzeige4[playerid],16711935),PlayerTextDrawHide(playerid,DayZ_Anzeige4[playerid]),PlayerTextDrawShow(playerid,DayZ_Anzeige4[playerid]);
        else if(SpielerInfo[playerid][pBlood] <= 8000 && SpielerInfo[playerid][pBlood] >= 4000)PlayerTextDrawColor(playerid,DayZ_Anzeige4[playerid],0xFFB400FF),PlayerTextDrawHide(playerid,DayZ_Anzeige4[playerid]),PlayerTextDrawShow(playerid,DayZ_Anzeige4[playerid]);
        else if(SpielerInfo[playerid][pBlood] >= 1 && SpielerInfo[playerid][pBlood] <= 3999){
            PlayerTextDrawColor(playerid,DayZ_Anzeige4[playerid],LIGHTGREEN);
            if(SpielerInfo[playerid][pBloodCounter] == 0)SpielerInfo[playerid][pBloodCounter]=1,PlayerTextDrawHide(playerid,DayZ_Anzeige4[playerid]);
            else if(SpielerInfo[playerid][pBloodCounter] == 0)SpielerInfo[playerid][pBloodCounter]=0,PlayerTextDrawShow(playerid,DayZ_Anzeige4[playerid]);
        }
        else if(SpielerInfo[playerid][pBlood] <= 1)SetPlayerHealth(playerid,0),PlayerTextDrawColor(playerid,DayZ_Anzeige4[playerid],16711935),PlayerTextDrawHide(playerid,DayZ_Anzeige4[playerid]),PlayerTextDrawShow(playerid,DayZ_Anzeige4[playerid]);
only have it, if is incorrect what i have put to work?
Reply


Messages In This Thread
[5+REP] Blood Counter. - by StarPeens - 14.03.2015, 05:13
Re: [5+REP] Blood Counter. - by StarPeens - 14.03.2015, 23:10
Re: [5+REP] Blood Counter. - by Abagail - 14.03.2015, 23:12
Re: [5+REP] Blood Counter. - by StarPeens - 14.03.2015, 23:16
Re: [5+REP] Blood Counter. - by Abagail - 14.03.2015, 23:17
Re: [5+REP] Blood Counter. - by StarPeens - 14.03.2015, 23:20
Re: [5+REP] Blood Counter. - by StarPeens - 15.03.2015, 17:02
AW: [5+REP] Blood Counter. - by Nero_3D - 15.03.2015, 17:12
Re: AW: [5+REP] Blood Counter. - by StarPeens - 15.03.2015, 17:49
Re: [5+REP] Blood Counter. - by CalvinC - 15.03.2015, 17:58

Forum Jump:


Users browsing this thread: 4 Guest(s)