suggestion colored menus

Want to talk about war3ft or make suggestions? Post them here

Moderator: Forum Moderator

Post Reply
kp_downarrow
Rifleman
Posts: 162
Joined: Thu Dec 21, 2006 2:12 am

suggestion colored menus

Post by kp_downarrow » Fri Jul 20, 2007 6:58 pm

instead of making all shop12 items white, color code them on cstrike:



[small]else
{
if(money<ITEM_Cost( id, iItemID )|| (ITEM_Has( id, iItemID ) > ITEM_NONE && !ITEM_CheckFlag( iItemID, ITEM_CHARGEABLE ) ) ){
//red if alreay have and its not chargable
pos += format( szMenu[pos], 511-pos, "\r%d. %s\y\R%d^n", i + 1, szItemName, ITEM_Cost( id, iItemID ) );
iKeys |= (1<<i);
}
else if( ITEM_GetSlot( id ) == ITEM_SLOT_FULL&& ( !ITEM_CheckFlag( iItemID, ITEM_USEONBUY) || (ITEM_CheckFlag( iItemID, ITEM_CHARGEABLE )&&ITEM_Has( id, iItemID ) == ITEM_NONE) )){
//we are full and the new items is not "on buy" yellow so he wil "have to replace" >>>charagble but he doesnt have
pos += format( szMenu[pos], 511-pos, "\y%d. %s\y\R%d^n", i + 1, szItemName, ITEM_Cost( id, iItemID ) );
iKeys |= (1<<i);

}


else{//white its good 2 go
pos += format( szMenu[pos], 511-pos, "\w%d. %s\y\R%d^n", i + 1, szItemName, ITEM_Cost( id, iItemID ) );//chargab le/ enpty slots4 items, has money
iKeys |= (1<<i);
}
}[/small]

Post Reply