ItsMods

Full Version: help please i want test all icon
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi, please help me, I wanted to say !ic iconname
it is code dont work
if (Message == "!ic")
{
string iconname = cardicon_semtex;
SetDvar("g_TeamIcon_Allies", +iconname);
}
help please
(01-27-2014, 14:58)Qwerty Wrote: [ -> ]hi, please help me, I wanted to say !ic iconname
it is code dont work
if (Message == "!ic")
{
string iconname = cardicon_semtex;
SetDvar("g_TeamIcon_Allies", +iconname);
}
help please

Please use [ code ] tags.

Code:
PrecacheShader("cardicon_semtex"); - put this to 'onprecache'

SetDvar("g_TeamIcon_Allies", "cardicon_semtex");
no, i know it
i want !icon <iconname>
i want tested all icons
(01-27-2014, 16:28)Qwerty Wrote: [ -> ]no, i know it
i want !icon <iconname>
i want tested all icons

Code:
string t[] = Message.Split(' ');

if(t[0] == "!icon")
{
SetDvar("g_TeamIconAllies", t[1]);
}