ItsMods

Full Version: how to set custom team icons|SOLVED
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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!
Code:
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"]] );
replace hudicons with your icons names, and put it on init, hope it works Tongue
(07-12-2011, 10:41)OrangePL Wrote: [ -> ]
Code:
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"]] );
replace hudicons with your icons names, and put it on init, hope it works Tongue

this was kinda my issue , turned out when i had done it i put in a space some where i should not have Confused

it was

Code:
game[ "icons" ][ "allies" ] = "icon_victims";
    game[ "icons" ][ "Axis" ] = "icon_myers";
then it worked when i changed it to
Code:
    game["icons"]["axis"] = "icon_myers";
    game["icons"]["allies"] = "icon_victims";
just funny that one worked an one didnt till then lol but its working now so im happy
(07-12-2011, 13:13)rotceh_dnih Wrote: [ -> ]it was

Code:
game[ "icons" ][ "allies" ] = "icon_victims";
    game[ "icons" ][ "Axis" ] = "icon_myers";
then it worked when i changed it to
Code:
    game["icons"]["axis"] = "icon_myers";
    game["icons"]["allies"] = "icon_victims";
just funny that one worked an one didnt till then lol but its working now so im happy
I also notice that you changed Axis to axis, does that matter anything or is this all not case sensitive?
Pages: 1 2