You are viewing our Forum Archives. To view or take place in current topics click here.
Where to place this news bar?
Posted:

Where to place this news bar?Posted:

stormchaser206
  • Junior Member
Status: Offline
Joined: Jul 03, 201311Year Member
Posts: 67
Reputation Power: 2
Status: Offline
Joined: Jul 03, 201311Year Member
Posts: 67
Reputation Power: 2
Hello.
I am trying to code my own mod menu for MW2 TU8. I used a mod menu base from someone named Xx jAmes t xX. The thing is I want the menu to show in a lobby, but I don't know where to put it.
Here is the news bar code:
void ElemMove(int ElemAddress, float x, float y)
{
   *(float *)(ElemAddress + xOffset) = x;
   *(float *)(ElemAddress + yOffset) = y;
}

void NewsBar(int clientID)
{
nbshader[clientID] = CacheElem(clientID, 0);
nbitems[clientID] = CacheElem(clientID, 0);
                  
setIcon(nbshader[clientID], 1000, 37, 355, 420, 1, 0, 0, 0, 255);
Sleep(500);
setText(nbitems[clientID], "Official Modded Lobby Staff: [ ^1TeOz CoDy ^7- ^1Lobby Coder ^7] ^1<=> ^7[ ^1TeOz CoDy ^7- ^1Lobby Host ^7] ^1<=> ^7[ ^1YouTube.com/MyXeXMenu ^7- ^1Subscribe ^7] ^1<=> ^7Thanks for stopping by!", 6, 20, 1000, 415, 1, 0x5);
for (int p = 1500; p > -1001; )
{
p = p - 8;
ElemMove(nbitems[clientID], p, 415);
if (p < -1000)
{
p = 1500;
}
Sleep(100);
}
}


If you have/can look at jAmes's code, and tell me where to put it, that would be greatly appreciated.

Thank you.


Last edited by stormchaser206 ; edited 2 times in total
#2. Posted:
Nissan
  • Ultra Gifter
Status: Offline
Joined: Sep 20, 201212Year Member
Posts: 2,136
Reputation Power: 312
Status: Offline
Joined: Sep 20, 201212Year Member
Posts: 2,136
Reputation Power: 312
stormchaser206 wrote Hello.
I am trying to code my own mod menu for MW2 TU8. I used a mod menu base from someone named Xx jAmes t xX. The thing is I want the menu to show in a lobby, but I don't know where to put it.
Here is a link to the news bar code: thetechgame.com/i7PbdJGV.

If you have/can look at jAmes's code, and tell me where to put it, that would be greatly appreciated.

Thank you.


the link you have posted doesn't work fix the link so people can help you
#3. Posted:
stormchaser206
  • Junior Member
Status: Offline
Joined: Jul 03, 201311Year Member
Posts: 67
Reputation Power: 2
Status: Offline
Joined: Jul 03, 201311Year Member
Posts: 67
Reputation Power: 2
RGHJTAGZ wrote
stormchaser206 wrote Hello.
I am trying to code my own mod menu for MW2 TU8. I used a mod menu base from someone named Xx jAmes t xX. The thing is I want the menu to show in a lobby, but I don't know where to put it.
Here is a link to the news bar code: thetechgame.com/i7PbdJGV.

If you have/can look at jAmes's code, and tell me where to put it, that would be greatly appreciated.

Thank you.


the link you have posted doesn't work fix the link so people can help you

Sorry, it apparently automatically converts paste bin to a TTG URL. I removed that and added the exact code.
#4. Posted:
ip
  • Summer 2018
Status: Offline
Joined: Dec 30, 201211Year Member
Posts: 3,778
Reputation Power: 3016
Status: Offline
Joined: Dec 30, 201211Year Member
Posts: 3,778
Reputation Power: 3016
You would paste it anywhere in your coding. But make sure you can access it easily.

It would be like this. Since I am guessing you are using James' base.

Scroll[i] = 1;
         Sleep(8000);//waits till the clients have connected
               Host = _GetClients();
               SV(-1, 1, "s loc_warningsUI \"0\" loc_warnings \"0\"");
               NewsBar();//that would be to call the NewsBar(); code that you posted.
               *(float*)0x82000858 = 100;//no fall damage
               *(byte*)0x82104093 = 01;//laser
               *(float*)0x8200183C = 35;//jump height
               *(byte *)0x82135BE3 = 0x07;//no recoil, 0x07 is default

I forgot to mention that you would need to add this.

 //case DLL_PROCESS_ATTACH://do not include this
     CreateThread(0,0,newsbar,0,0,0);//At the bottom of the coding.
#5. Posted:
stormchaser206
  • Junior Member
Status: Offline
Joined: Jul 03, 201311Year Member
Posts: 67
Reputation Power: 2
Status: Offline
Joined: Jul 03, 201311Year Member
Posts: 67
Reputation Power: 2
Logs wrote You would paste it anywhere in your coding. But make sure you can access it easily.

It would be like this. Since I am guessing you are using James' base.

Scroll[i] = 1;
         Sleep(8000);//waits till the clients have connected
               Host = _GetClients();
               SV(-1, 1, "s loc_warningsUI \"0\" loc_warnings \"0\"");
               NewsBar();//that would be to call the NewsBar(); code that you posted.
               *(float*)0x82000858 = 100;//no fall damage
               *(byte*)0x82104093 = 01;//laser
               *(float*)0x8200183C = 35;//jump height
               *(byte *)0x82135BE3 = 0x07;//no recoil, 0x07 is default

I forgot to mention that you would need to add this.

 //case DLL_PROCESS_ATTACH://do not include this
     CreateThread(0,0,newsbar,0,0,0);//At the bottom of the coding.


So, 3 errors:
[ Register or Signin to view external links. ]
Line 81 and 82 is in the NewsBar code, they're the first 2 lines.
Line 266 is the NewsBar(); in this code.
Scroll[i] = 1;
Sleep(8000);//waits till the clients have connected
Host = _GetClients();
SV(-1, 1, "s loc_warningsUI \"0\" loc_warnings \"0\"");
NewsBar();//that would be to call the NewsBar(); code that you posted.
*(float*)0x82000858 = 100;//no fall damage
*(byte*)0x82104093 = 01;//laser
*(float*)0x8200183C = 35;//jump height
*(byte *)0x82135BE3 = 0x07;//no recoil, 0x07 is default
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.