[REQ] /noicons
Moderator: Forum Moderator
-
- Rifleman
- Posts: 162
- Joined: Thu Dec 21, 2006 2:12 am
[REQ] /noicons
can u make say /icons enable the icons
and say /noicons disable
instead of toggling with the same command?
and say /noicons disable
instead of toggling with the same command?
-
- Rifleman
- Posts: 162
- Joined: Thu Dec 21, 2006 2:12 am
-
- Rifleman
- Posts: 162
- Joined: Thu Dec 21, 2006 2:12 am
-
- Rifleman
- Posts: 162
- Joined: Thu Dec 21, 2006 2:12 am
[small] else if ( CMD_Equal( id, szCmd, "icons" ) )
{
// Sprites not enabled or icons are disabled
if ( !g_bExtraSpritesEnabled || ( !get_pcvar_num( CVAR_wc3_race_icon ) && !get_pcvar_num( CVAR_wc3_level_icon ) ) )
{
client_print( id, print_center, "%L", id, "ICONS_ARE_DISABLED" );
}
// We at least have one of the icon options enabled (race or level)
else
{
p_data[id][P_SHOWICONS] = true;
client_print( id, print_center, "%L", id, "NOW_SEE_ICONS" );
CS_SetIcon( id );
}
}
else if ( CMD_Equal( id, szCmd, "noicons" ) )
{
p_data[id][P_SHOWICONS] = false;
client_print( id, print_center, "%L", id, "NO_LONGER_SEE_ICONS" );
CS_SetIcon( id );
}
[/small]
is this good? the quotes are not working
and whats cs_seticon(id)
what file is it in?
{
// Sprites not enabled or icons are disabled
if ( !g_bExtraSpritesEnabled || ( !get_pcvar_num( CVAR_wc3_race_icon ) && !get_pcvar_num( CVAR_wc3_level_icon ) ) )
{
client_print( id, print_center, "%L", id, "ICONS_ARE_DISABLED" );
}
// We at least have one of the icon options enabled (race or level)
else
{
p_data[id][P_SHOWICONS] = true;
client_print( id, print_center, "%L", id, "NOW_SEE_ICONS" );
CS_SetIcon( id );
}
}
else if ( CMD_Equal( id, szCmd, "noicons" ) )
{
p_data[id][P_SHOWICONS] = false;
client_print( id, print_center, "%L", id, "NO_LONGER_SEE_ICONS" );
CS_SetIcon( id );
}
[/small]
is this good? the quotes are not working
and whats cs_seticon(id)
what file is it in?