V01D wrote on June 1, 2021, 1:15 am:
U weapon configu nadji sledece :
https://ibb.co/F5fFKmd
Ovo se nalazi u UpdateHealthBar funkciji i ovde ces promeniti boju td-a
Nasao,
SetFakeHealth(playerid, health);
SetFakeArmour(playerid, armour);
UpdateSyncData(playerid);
if(health != s_LastSentHealth) {
s_LastSentHealth = health;
SetPlayerHealth(playerid, 8000000.0 + float(health));
if(s_HealthBarVisible && !s_IsDying) {
PlayerTextDrawDestroy(playerid, s_HealthBarForeground);
s_HealthBarForeground = PlayerText:INVALID_TEXT_DRAW;
if(s_HealthBarForeground == PlayerText:INVALID_TEXT_DRAW) {
s_HealthBarForeground = CreatePlayerTextDraw(
playerid,
551.5 + float(health) * 0.5651,
70.25,
"_"
);
if(s_HealthBarForeground == PlayerText:INVALID_TEXT_DRAW) {
printf("(wc) WARN: Unable to create player healthbar foreground");
} else {
s_InternalPlayerTextDraw[s_HealthBarForeground] = true;
PlayerTextDrawUseBox (playerid, s_HealthBarForeground, 1);
PlayerTextDrawLetterSize(playerid, s_HealthBarForeground, 0.500000, 0.099999); //0.0, 0.2);
PlayerTextDrawTextSize (playerid, s_HealthBarForeground, 546.000000, -3.000000); //545.75, 0.0);
PlayerTextDrawBoxColor (playerid, s_HealthBarForeground, 0x0964B8FF); //svijetla
PlayerTextDrawShow(playerid, s_HealthBarForeground);
}
} else {
PlayerTextDrawSetPosition(playerid, s_HealthBarForeground, 551.5 + float(health) * 0.5651, 70.25);
PlayerTextDrawShow(playerid, s_HealthBarForeground);
}
} else if(s_HealthBarForeground != PlayerText:INVALID_TEXT_DRAW) {
PlayerTextDrawDestroy(playerid, s_HealthBarForeground);
s_InternalPlayerTextDraw[s_HealthBarForeground] = false;
s_HealthBarForeground = PlayerText:INVALID_TEXT_DRAW;
}
}
Ako mozes nastaviti pisati ako imas fb da ne spammamo ovdje :/ ako ne nmvz