14.03.2015, 05:13
my blood not counter, only count: Blood: 12000 and and does not rise or lower. [5REP+]
Blood Counter
pawn Код:
format(string,sizeof(string),"Murders: 0~n~Bandits Killed: 0~n~Blood: %d~n~Players (Connected/Total): %i/200~n~Temperature: %02d |C~n~Weapon: %s(Ammo: %d)~n~Alive time: %02d:%02d~n~Name: %s",SpielerInfo[playerid][pBlood],ServerInfo[isPlayers],SpielerInfo[playerid][pTemparatur1],weps,GetPlayerAmmo(playerid),SpielerInfo[playerid][pAliveMinutes],SpielerInfo[playerid][pAliveSeconds],GetName(playerid));
pawn Код:
}
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]);