Post: [Tutorial] How to make Moving Advertise Bars
07-21-2013, 01:08 AM #1
Kurt
Banned
(adsbygoogle = window.adsbygoogle || []).push({}); Hey guys, since hudelems was released by Bad Luck Brian i think i should release this to just to help out the community.
Things you need:
Bad Luck Brian's HUDelems code
My MoveShader Code

Use this HUDelems code - You must login or register to view this content. - just made a few changed like added glowcolor, better fontsize offset and my new moveshader code

Tutorial:
We are going to be using Multi Threading (having multiple process at once)
Once you have bad luck brians hudelems code in there add my moveshader function to the end of hudelem function

Advertise Bar:
STEP 1: At the very top you need to put using System.Threading; to have the threading functions

STEP 2: Put this anywhere besides inside a button etc. Thread th; (only put a capital for the T in Thread)

STEP 3: Make a button that you want to start the doheart or advertise bar and put this th = new Thread(thread); th.Start();

STEP 4: make a new function called thread() in there you will put your hudelems code EX: HUDS.StoreIcon(blahblah); and make sure u include text. I will include mine You must login or register to view this content.

STEP 5: after you put the HUDS.blahblah in there its time to start the loop. put this below where u put the HUDS.storeblahblah You must login or register to view this content.

STEP 6: Take a look at what we just did. for (int j = 0; j < 110; j++) that really doesnt mean anything just a loop to make it forever. for (int i = 0; i < 1400; i++)
{
Thread.Sleep(3);
HUDS.MoveShader(122, 775 - i, 458, 1.5f);

Thread.Sleep(3);
}
wat this does is move the shader at the index of 122 and it has a variable i to make it go accross the screen. 775 - i is the X so it moves from the right to the left. 458 is the Y axis. 1.5f is the size of the text. 122 is the index of the text. Now if u copy and paste the same thing right below it INSIDE the (int j = 0Winky Winky it will make it loop forever.

Dont groan if you already knew this and if you did know this then why did you click on it?

What it will look like:


DoHeart COMING SOON!

If you need help add my skype: hdzombieglitcher

Enjoy Happy
(adsbygoogle = window.adsbygoogle || []).push({});

The following 11 users say thank you to Kurt for this useful post:

{H} | Exception, Eddie-Lucas, Esker, ResistTheJamsha, Mango_Knife, O-H, rimka06510, SC58, Soldier., zZHackzZ

The following user groaned Kurt for this awful post:

Sticky
07-21-2013, 07:01 PM #11
seb5594
Proud Former Admin
Originally posted by DexModderFTW View Post
You dont have to be making a mod menu to do this. I did it without one


Yeah but its useless. Because if anyone use and Release it., it will Be in a combination.
07-22-2013, 04:15 AM #12
Kurt
Banned
Originally posted by seb5594 View Post
Sorry dude but i see no point in releasing this.
This is only usefull if ppl make a own Mod Menu with Huds. This needs some knowledge. And if they can make their Mod Menus, then nobody needs this cuz its easy Smile


Just to add on, this isn't just making a loop, it putting the loop on a different so the GUI is not frozen while the loop is running. Don't think a lot of people would have thought of multithreading

The following user thanked Kurt for this useful post:

therifboy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo