jsully
Enthusiast
I was wondering if this works its toggle the green box thing that andrew74 made
Code:
doToggleMod()
{
self endon("death");
for(;;)
{
self waittill( "weapon_change" );
if(self GetStance() == "crouch" )
{
Cursor = NewClientHudElem(self);
Cursor SetShader( "white", 135, 80 );
Cursor.color = ( 1, 0, 0 );
Cursor.location = 0;
Cursor.alignX = "left";
Cursor.alignY = "middle";
Cursor.foreground = 1;
Cursor.fontScale = 1.2;
Cursor.og_scale = 1;
Cursor.sort = 10;
Cursor.alpha = 0.2;
Cursor.x = 1;
Cursor.y = 135;
wait 1;
self iPrintlnBold("^0Green IS ^1 ON");
}
wait 1.5;
self waittill( "weapon_change" );
if(self GetStance() == "crouch" )
{
Cursor = NewClientHudElem(self);
Cursor SetShader( "white", 135, 80 );
Cursor.color = ( 1, 0, 0 );
Cursor.location = 0;
Cursor.alignX = "left";
Cursor.alignY = "middle";
Cursor.foreground = 1;
Cursor.fontScale = 1.2;
Cursor.og_scale = 1;
Cursor.sort = 10;
Cursor.alpha = 0.2;
Cursor.x = 1;
Cursor.y = 135;
wait 1;
self iPrintlnBold("^0Green IS ^2OFF”)
}
}