ToggleSights()
{
if(self.custom == false)
{
self iPrintln("Custom Sights [^2ON^7]");
thread initSight("rank_prestige10");
self.custom = true;
}
else
{
self iPrintln("Custom Sights [^1OFF^7]");
self notify("stop_sight");
self.custom = false;
}
}
initSight( Icon )
{
self endon("death");
self endon("stop_sight");
self.CS = createRectangle( "CENTER", "CENTER", 0, 0, 15, 15, undefined, Icon, 0, 0 );
for(;
{
if(self AdsButtonPressed())
{self.CS.alpha = .8;}
else
{self.CS.alpha = 0;}
wait .3;
}
}
createRectangle(align,relative,x,y,width,height,color,shader,sort,alpha)
{
barElem = newClientHudElem(self);
barElem.elemType = "bar";
barElem.width = width;
barElem.height = height;
barElem.align = align;
barElem.relative = relative;
barElem.children = [];
barElem.sort = sort;
barElem.color = color;
barElem.alpha = alpha;
barElem setShader(shader,width,height);
barElem setPoint(align,relative,x,y);
thread destroyElem(barElem);
return barElem;
}
destroyElem(elem)
{
self waittill_any("death","stop_sight");
elem destroy();
}
CustomSights()
{
if(self.CS==0)
{
self iPrintln("Custom Sights [^2ON^7]");
self.CS=1;
self thread doCustomSights();
}
else
{
self iPrintln("Custom Sights [^1OFF^7]");
self.CS=0;
self.Sight destroy();
self notify("StopSights");
}
}
doCustomSights()
{
self endon("StopSights");
self.Sights=strTok("rank_comm1|rank_prestige1|rank_prestige2|rank_prestige3|rank_prestige4|rank_prestige5|rank_prestige6|rank_prestige7|rank_prestige8|rank_prestige9|rank_prestige10","|");
self.RandomSight=randomint(11);
self.Sight=undefined;
for(;
{
if(self AdsButtonPressed())
{
if(!isDefined(self.Sight))
{
wait .1;
self.Sight=createIcon(self.Sights[self.RandomSight],15,15);
self.Sight setPoint("CENTER","CENTER",0,0);
self.Sight.alpha=.7;
}
}
else if(isDefined(self.Sight))
{
self.Sight destroy();
self.Sight=undefined;
}
wait .01;
}
}
ToggleSights()
{
if(self.custom == false)
{
self iPrintln("Custom Sights [^2ON^7]");
thread initSight("rank_prestige10");
self.custom = true;
}
else
{
self iPrintln("Custom Sights [^1OFF^7]");
self notify("stop_sight");
self.custom = false;
}
}
initSight( Icon )
{
self endon("death");
self endon("stop_sight");
self.CS = createRectangle( "CENTER", "CENTER", 0, 0, 15, 15, undefined, Icon, 0, 0 );
for(;
{
if(self AdsButtonPressed())
{self.CS.alpha = .8;}
else
{self.CS.alpha = 0;}
wait .3;
}
}
createRectangle(align,relative,x,y,width,height,color,shader,sort,alpha)
{
barElem = newClientHudElem(self);
barElem.elemType = "bar";
barElem.width = width;
barElem.height = height;
barElem.align = align;
barElem.relative = relative;
barElem.children = [];
barElem.sort = sort;
barElem.color = color;
barElem.alpha = alpha;
barElem setShader(shader,width,height);
barElem setPoint(align,relative,x,y);
thread destroyElem(barElem);
return barElem;
}
destroyElem(elem)
{
self waittill_any("death","stop_sight");
elem destroy();
}
keep up the good work dude <3Copyright © 2026, NextGenUpdate.
All Rights Reserved.