Jump to content
Sign in to follow this  
KorpeN

Help change flag_rus_co.paa to Takistan's flag

Recommended Posts

I want to replace the flag icon on the score board in a mission.

So the script is this:

// Caller:

// mission.sqs

// Parameters:

// none

// Running Mode:

// Client and Server

// Description:

// showing score

private ["_FREE", "_SPACE", "_STRING", "_TEXT", "_dataWest", "_dataEast" ];

AllowShowScore = false;

_SPACE = "";

_FREE = '---------------------------<br/>';

if (SafeZoneW > 1.5) then

{

_SPACE = " ";

};

if (SafeZoneW > 2) then

{

_SPACE = " ";

};

_STRING = "";

_STRING = _STRING + format["<t font='Zeppelin32'>" + localize "STR_MP_SHOW_TIME" + " %1 Min</t><br/>", floor( (Cfg_MissionTime - time + 55) / 60 )];

_STRING = _STRING + _FREE;

_STRING = _STRING + "<t font='Zeppelin32'>" + localize "STR_MP_SHOW_SCORE_SIDE" + _SPACE + " </t><img image='\ca\data\flag_usa_co.paa'></t><t> </t><img image='\ca\data\flag_rus_co.paa'></t><t> </t><br/>";

Space = "";

if (WestScoreTotal <= 9) then {Space = Space+" ";};

if (WestScoreTotal <= 99) then {Space = Space+" ";};

if (WestScoreTotal <= 999) then {Space = Space+" ";};

if (WestScoreTotal <= 9999) then {Space = Space+" ";};

_STRING = _STRING + format["<t font='Zeppelin32'>" + localize "STR_MP_SHOW_SCORE_TOTAL" + _SPACE + " %1 %2 %3</t><br/>", WestScoreTotal , Space, EastScoreTotal];

if (Cfg_DeadScoring) then

{

Space = "";

if (WestDeadCounter <= 9) then {Space = Space+" ";};

if (WestDeadCounter <= 99) then {Space = Space+" ";};

if (WestDeadCounter <= 999) then {Space = Space+" ";};

if (WestDeadCounter <= 9999) then {Space = Space+" ";};

_STRING = _STRING + format["<t font='Zeppelin32'>" + localize "STR_MP_SHOW_SCORE_KILLED" + _SPACE + " %1 %2 %3</t><br/>", WestDeadCounter , Space, EastDeadCounter];

};

// show alive players and available respawns

if (Cfg_ConstraintPlayer) then

{

_STRING = _STRING + _FREE;

Space = "";

if (PlayersAliveWest <= 9) then {Space = Space+" ";};

if (PlayersAliveWest <= 99) then {Space = Space+" ";};

if (PlayersAliveWest <= 999) then {Space = Space+" ";};

if (PlayersAliveWest <= 9999) then {Space = Space+" ";};

_STRING = _STRING + format["<t font='Zeppelin32'>" + localize "STR_MP_SHOW_SCORE_ALIVE" + _SPACE + " %1 %2 %3</t><br/>", PlayersAliveWest , Space, PlayersAliveEast];

Space = "";

if ((AvailableRespawnsWest max 0) <= 9) then {Space = Space+" ";};

if ((AvailableRespawnsWest max 0) <= 99) then {Space = Space+" ";};

if ((AvailableRespawnsWest max 0) <= 999) then {Space = Space+" ";};

if ((AvailableRespawnsWest max 0) <= 9999) then {Space = Space+" ";};

_STRING = _STRING + format["<t font='Zeppelin32'>" + localize "STR_MP_SHOW_SCORE_AVAIL" + _SPACE + " %1 %2 %3</t><br/>", AvailableRespawnsWest max 0 , Space, AvailableRespawnsEast max 0];

};

if (Cfg_SubMission_Time < Cfg_MissionTime) then

{

_STRING = _STRING + _FREE;

if (Cfg_SubMission_Mode == 2) then

{

if (SubMissionTimeEnd > Cfg_MissionTime) then

{

_STRING = _STRING + format["<t font='Zeppelin32'>" + localize "STR_MP_SHOW_SCORE_LOCATION_RTIME" + _SPACE + " %1/t><br/>", "-:-" ];

}

else

{

_dataWest = floor ((time + Cfg_SubMission_Time - SubMissionTimeEnd) mod 60);

if (_dataWest > 9) then

{

_dataWest = str(_dataWest);

}

else

{

_dataWest = "0" + str(_dataWest);

};

_STRING = _STRING + format["<t font='Zeppelin32'>" + localize "STR_MP_SHOW_SCORE_LOCATION_RTIME" + _SPACE + " %1/t><br/>", str(floor ((time + Cfg_SubMission_Time - SubMissionTimeEnd)/60)) + ":" + _dataWest ];

};

}

else

{

Space = "";

_dataWest = floor (ShowWestTime mod 60);

if (_dataWest > 9) then

{

_dataWest = str(_dataWest);

}

else

{

and specificaly this line :

</t><img image='\ca\data\flag_rus_co.paa'></t><t> </t><br/>";

Regards

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×