15.03.2015, 17:49
Quote:
They want to know where do you change the variable "SpielerInfo[playerid][pBlood]"
Some examples pawn Код:
|
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]);