Results 1 to 1 of 1

Thread: [cod4]Infobar

  1. #1

    Default [cod4]Infobar

    here is a simple code to make a infobar for cod4


    colour
    Code:
    vec4_t                          bgColor			        = { 0.16,0.20,0.17,0.80 };	
    vec4_t				colWhite			= { 1.0f, 1.0f, 1.0f, 1.0f };
    Infobar
    Code:
    char szInfoBar[512];
    	sprintf(szInfoBar,"cod4bot by wessie | nick name %s | map %s | players %i",clientinfo[cg->clientNum].Name,cgs->mapName,cgs->maxPlayers);
    	Drawing.DrawShader(0 ,0,cgs->scrWidth ,30 ,bgColor,sWhite);
    	Drawing.DrawRect(0,0,cgs->scrWidth,30,1,colYellow);
    	Drawing.DrawString(5,12,normalFont,1,colWhite,szInfoBar);
    Activate it
    Code:
    Misc.InfoBar();
    Last edited by wessie; 21st May 2011 at 04:28.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •