You are viewing our Forum Archives. To view or take place in current topics click here.
xxjamestxx allclient menu base help adding a news bar
Posted:
xxjamestxx allclient menu base help adding a news barPosted:
Status: Offline
Joined: May 28, 201212Year Member
Posts: 55
Reputation Power: 2
Status: Offline
Joined: May 28, 201212Year Member
Posts: 55
Reputation Power: 2
can someone help me i try to add a news bar but i do somthing wrong help plz
thanks anyway
thanks anyway
#2. Posted:
Status: Offline
Joined: Apr 26, 201212Year Member
Posts: 365
Reputation Power: 16
Status: Offline
Joined: Apr 26, 201212Year Member
Posts: 365
Reputation Power: 16
you need to use the for loop
- 1useful
- 0not useful
#3. Posted:
Status: Offline
Joined: Dec 29, 201112Year Member
Posts: 783
Reputation Power: 35
Status: Offline
Joined: Dec 29, 201112Year Member
Posts: 783
Reputation Power: 35
lol, i tried this too and i got it working for one game then it just stopped when i added options into the base. so i decided to code my own and it worked first time. it's all trial and error mate. trust me
- 2useful
- 0not useful
#4. Posted:
Status: Offline
Joined: Oct 30, 201212Year Member
Posts: 83
Reputation Power: 3
Status: Offline
Joined: Oct 30, 201212Year Member
Posts: 83
Reputation Power: 3
we got it working with a for loop ;)
- 1useful
- 0not useful
#5. Posted:
Status: Offline
Joined: Apr 29, 201113Year Member
Posts: 2,192
Reputation Power: 99
Status: Offline
Joined: Apr 29, 201113Year Member
Posts: 2,192
Reputation Power: 99
use a for loop and use it to take say 5 away from X value each time...
- 1useful
- 0not useful
#6. Posted:
Status: Offline
Joined: Oct 30, 201212Year Member
Posts: 83
Reputation Power: 3
Status: Offline
Joined: Oct 30, 201212Year Member
Posts: 83
Reputation Power: 3
Wilez wroteuse a for loop and use it to take say 5 away from X value each time...
5 will make it too fast and laggy, try 0.5^^
- 1useful
- 0not useful
#7. Posted:
Status: Offline
Joined: Dec 29, 201112Year Member
Posts: 783
Reputation Power: 35
Status: Offline
Joined: Dec 29, 201112Year Member
Posts: 783
Reputation Power: 35
why don't one of you guys help him out with it instead of telling him things he may not know about...
- 0useful
- 0not useful
#8. Posted:
Status: Offline
Joined: Apr 26, 201212Year Member
Posts: 365
Reputation Power: 16
Status: Offline
Joined: Apr 26, 201212Year Member
Posts: 365
Reputation Power: 16
xT_Cryptic wrote why don't one of you guys help him out with it instead of telling him things he may not know about...
because people should learn it yourself
people cant just copy & paste
a little tip:
try to search in engine text menu's ;)
- 0useful
- 0not useful
#9. Posted:
Status: Offline
Joined: Dec 29, 201112Year Member
Posts: 783
Reputation Power: 35
Status: Offline
Joined: Dec 29, 201112Year Member
Posts: 783
Reputation Power: 35
lol, i got Engine text working perfectly but it took me a while to get it working in Huds. it's harder than it looks for noobs haha ;)
- 0useful
- 0not useful
#10. Posted:
Status: Offline
Joined: Aug 17, 201212Year Member
Posts: 132
Reputation Power: 8
Status: Offline
Joined: Aug 17, 201212Year Member
Posts: 132
Reputation Power: 8
This is how to do it in c#
and add this for moving the location
public void newsbar()
{
for (; ; )
{
for (int i=0; i<=17;i++)
{
if (Clientsver[i] == true)
{
uint newsbarlol = createElem(i);
string elemtext3 = "You can put an example of your string here :)";
setText(newsbarlol, uintBytes(createText(elemtext3)), 6, 20, -700, 600, 1);
elemshader = createElem(i);
shader = getMaterialIndex("Black");
setIcon(elemshader, shader, 950, 40, 750, 390, 1, 0, 555, 155, 155, 200);
setText(newsbarlol, uintBytes(createText(elemtext3)), 6, 20, -700, 600, 1);
sleep(100);
// make the text and the elem||
for (int p = 800; p > -400; )
{
ElemMove(0, newsbarlol, 725, p);
p = p - 5;
if (p == -300)
{
p = 800;
}
}
}
}
}
}
and add this for moving the location
public void ElemMove(int client, uint elem, float x, float y)
{
Jtag.SetMemory(elem + HElems.xOffset, ReverseBytes(BitConverter.GetBytes(x)));
Jtag.SetMemory(elem + HElems.yOffset, ReverseBytes(BitConverter.GetBytes(y)));
spawnElem(client, elem);
}
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.