You are viewing our Forum Archives. To view or take place in current topics click here.
#11. 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
hacksorce wrote This is how to do it in c#
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);
}
lol thanks i couldnt get
but i thought x and y are floats not integers ?!
- 0useful
- 0not useful
#12. 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
TreyZ1337 wrotehacksorce wrote This is how to do it in c#
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);
}
lol thanks i couldnt get
but i thought x and y are floats not integers ?!
They are, in the loop there are integers, but when you put the i or whatever into the newsbar it is just the number not the variable type.
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.