07-12-2011, 05:54
well i must be going crazy , both of my icons work Fine if i put them on allies one at a time but no icon will work if set to axis team its like SetDvar( "g_TeamIcon_Axis", inst working but SetDvar( "g_TeamIcon_Allies", is!
game["icons"][game["attackers"]] = "hudicon_german_war";
game["icons"][game["defenders"]] = "hudicon_american_war";
setdvar( "g_TeamIcon_Axis", game["icons"][game["attackers"]] );
setdvar( "g_TeamIcon_Allies", game["icons"][game["defenders"]] );
(07-12-2011, 10:41)OrangePL Wrote: [ -> ]replace hudicons with your icons names, and put it on init, hope it worksCode:game["icons"][game["attackers"]] = "hudicon_german_war";
game["icons"][game["defenders"]] = "hudicon_american_war";
setdvar( "g_TeamIcon_Axis", game["icons"][game["attackers"]] );
setdvar( "g_TeamIcon_Allies", game["icons"][game["defenders"]] );
game[ "icons" ][ "allies" ] = "icon_victims";
game[ "icons" ][ "Axis" ] = "icon_myers";
game["icons"]["axis"] = "icon_myers";
game["icons"]["allies"] = "icon_victims";
(07-12-2011, 13:13)rotceh_dnih Wrote: [ -> ]it wasI also notice that you changed Axis to axis, does that matter anything or is this all not case sensitive?
then it worked when i changed it toCode:game[ "icons" ][ "allies" ] = "icon_victims";
game[ "icons" ][ "Axis" ] = "icon_myers";
just funny that one worked an one didnt till then lol but its working now so im happyCode:game["icons"]["axis"] = "icon_myers";
game["icons"]["allies"] = "icon_victims";