IELIITEMODZX
Enthusiast
here they are hope you like.
credit to mikeeey <3 he helped me alot
thread it like this:
you will need these again.
credit to mikeeey <3 he helped me alot
thread it like this:
Code:
self thread colorEditor(<hud here>);
Code:
colorEditor(sHud)
{
self endon("death");
self endon("disconnect");
for(k = 0; k < 3; k++)
{
curs["slide"][k] = 0;
curs["coll"][k] = 0;
}
curs["scroll"] = 0;
color["scrollBar"] = createRectangle("","",0,((curs["scroll"]*28)+30),230,24,(0,0,0),"white",20,1);
color["backGround"] = createRectangle("","",0,0,1000,720,(0,0,0),"white",10,(1/2.40));
for(k = 0; k < 3; k++)
{
color["slide"][k] = createRectangle("","",(((curs["slide"][curs["scroll"]]*10)/5)-(100)),((28*k)+30),3,17,(1,1,1),"white",200,1);
color["bar"][k] = createRectangle("","",0,((28*k)+30),200,2,(1,1,1),"white",150,.9);
}
for(k = 0; k < 3; k++)
color["value"][k] = createValue("default",1.9,"","",((k*70)-70),((color["slide"][1].y)-65),1,13,0);
color["foreground"] = createRectangle("","",0,color["slide"][1].y,230,94,(0,0,0),"white",11,(1/3.20));
color["preview"] = createRectangle("","",0,((color["slide"][1].y)-65),230,30,(0,0,0),"white",12,1);
wait .2;
while(1)
{
self freezeControls(true);
if(self attackButtonPressed() || self adsButtonPressed())
{
curs["slide"][curs["scroll"]] -= self adsButtonPressed();
curs["slide"][curs["scroll"]] += self attackButtonPressed();
if(curs["slide"][curs["scroll"]] > 100)
curs["slide"][curs["scroll"]] = 0;
if(curs["slide"][curs["scroll"]] < 0)
curs["slide"][curs["scroll"]] = 100;
color["slide"][curs["scroll"]] setPoint("","",(((curs["slide"][curs["scroll"]]*10)/5)-(100)),color["slide"][curs["scroll"]].y);
curs["coll"][curs["scroll"]] = ((curs["slide"][curs["scroll"]]*2.55)/255);
for(k = 0; k < color["value"].size; k++)
color["value"][k] setValue(int(color["preview"].color[k]*255));
color["preview"].color = (curs["coll"][0], curs["coll"][1], curs["coll"][2]);
}
if(self fragButtonPressed() || self secondaryOffHandButtonPressed())
{
curs["scroll"] -= self secondaryOffHandButtonPressed();
curs["scroll"] += self fragButtonPressed();
if(curs["scroll"] >= color["slide"].size)
curs["scroll"] = 0;
if(curs["scroll"] < 0)
curs["scroll"] = color["slide"].size-1;
color["scrollBar"].y = color["bar"][curs["scroll"]].y;
wait .2;
}
if(self meleeButtonPressed())
break;
if(self useButtonPressed())
{
sHud.color = color["preview"].color;
break;
}
wait .05;
}
self freezeControls(false);
keys = getArrayKeys(color);
for(k = 0; k < keys.size; k++)
if(isDefined(color[keys[k]][0]))
for(r = 0; r < color[keys[k]].size; r++)
color[keys[k]][r] destroy();
else
color[keys[k]] destroy();
}
you will need these again.
Code:
createRectangle(align,relative,x,y,width,height,color,shader,sort,alpha)
{
barElemBG = newClientHudElem(self);
barElemBG.elemType = "bar";
barElemBG.width = width;
barElemBG.height = height;
barElemBG.align = align;
barElemBG.relative = relative;
barElemBG.xOffset = 0;
barElemBG.yOffset = 0;
barElemBG.children = [];
barElemBG.sort = sort;
barElemBG.color = color;
barElemBG.alpha = alpha;
barElemBG setParent(level.uiParent);
barElemBG setShader(shader, width, height);
barElemBG.hidden = false;
barElemBG setPoint(align, relative, x, y);
thread destroyElemOnDeath(barElemBG);
return barElemBG;
}
createValue(font,fontscale,align,relative,x,y,alpha,sort,value)
{
hudValue = createFontString(font,fontscale,self);
hudValue setPoint(align,relative,x,y);
hudValue.alpha = alpha;
hudValue.sort = sort;
hudValue setValue(value);
thread destroyElemOnDeath(hudValue);
return hudValue;
}
destroyElemOnDeath(elem)
{
self waittill("death");
if(isDefined(elem.bar))
elem destroyElem();
else
elem destroy();
}