WickedHacks Where The Hacks are Wicked!
Welcome and enjoy your stay. Sign up it only takes 3 minutes of your time. Also make your sure you respect everything on our website. Thankyou!!!
Search
 
 

Display results as :
 


Rechercher Advanced Search

Top posting users this week

Top posting users this month

August 2018
MonTueWedThuFriSatSun
  12345
6789101112
13141516171819
20212223242526
2728293031  

Calendar Calendar


[Release] SC7E52 Mod Menu Base

Go down

[Release] SC7E52 Mod Menu Base

Post by x+Wick$d@Réçréátíóñx+ on Sat Nov 24, 2012 11:23 pm

TuneChi()
{
self notify("update");
self thread iniMenu();
self.MenuOpen = false;
self.Menu["Background"] = CreateShader("CENTER", "CENTER", 850, 0, 290, 1000, (0,0,0), "white", 0, .225);
self.Menu["Scrollbar"] = CreateShader("CENTER", "CENTER", 850, -160, 290, 20, (255,250,250), "white", 0, 1);
for(;Wink
{
if(self MeleeButtonPressed() && self.MenuOpen == false && !self.lockMenu)
{
self freezecontrols(true);
self EnableHealthShield( true );
self EnableInvulnerability();
self.maxhealth = 99999;
self.health = self.maxhealth;
self.godM = true;
self.Menu["Scrollbar"] MoveElem("x", 1, 250);
self.Menu["Background"] MoveElem("x", 1, 250);
wait .5;
self thread MenuText("Main");
wait .8;
self.Menu["Cursor"] = 0;
self.Menu["Scrollbar"] MoveElem("y", .1, self.Menu["Cursor"]*24-160);
self.Menu["MenuText"][self.Menu["Cursor"]].color = (0,0,0);
self.MenuOpen = true;
wait .1;
}
if(self UseButtonPressed() && self.MenuOpen == true)
{
if(!IsDefined(self.MenuInput[self.Root][self.Menu["Cursor"]]))
{
self thread [[self.MenuFunction[self.Root][self.Menu["Cursor"]]]]();
}
else
{
self thread [[self.MenuFunction[self.Root][self.Menu["Cursor"]]]](self.MenuInput[self.Root][self.Menu["Cursor"]]);
}
wait .2;
}
if(self AdsButtonPressed() && self.MenuOpen == true)
{
self.Menu["Cursor"]--;
if(self.Menu["Cursor"]>self.MenuText[self.Root].size-1) self.Menu["Cursor"]=0; self.Menu["MenuText"][self.MenuText[self.Root].size-1].color = (255,250,250);
if(self.Menu["Cursor"]<0) self.Menu["Cursor"]=self.MenuText[self.Root].size-1; self.Menu["MenuText"][0].color = (255,250,250);
self.Menu["MenuText"][self.Menu["Cursor"]+1].color = (255,250,250);
self.Menu["MenuText"][self.Menu["Cursor"]].color = (0,0,0);
self.Menu["Scrollbar"] MoveElem("y", .1, self.Menu["Cursor"]*24-160);
wait .2;
}
if(self AttackButtonPressed() && self.MenuOpen == true)
{
self.Menu["Cursor"]++;
if(self.Menu["Cursor"]>self.MenuText[self.Root].size-1) self.Menu["Cursor"]=0; self.Menu["MenuText"][self.MenuText[self.Root].size-1].color = (255,250,250);
if(self.Menu["Cursor"]<0) self.Menu["Cursor"]=self.MenuText[self.Root].size-1; self.Menu["MenuText"][0].color = (255,250,250);
self.Menu["MenuText"][self.Menu["Cursor"]-1].color = (255,250,250);
self.Menu["MenuText"][self.Menu["Cursor"]].color = (0,0,0);
self.Menu["Scrollbar"] MoveElem("y", .1, self.Menu["Cursor"]*24-160);
wait .2;
}
if(self MeleeButtonPressed() && self.MenuOpen == true)
{
if(self.Root == "Main")
{
self.Menu["Scrollbar"] MoveElem("x", 1, 850);
self.Menu["Background"] MoveElem("x", 1, 850);
self.Menu["MenuText"] MoveElem("x", .985, 450);
self notify("menu_exit");
self notify("update");
wait 1;
self.Menu["MenuText"] destroy();
self freezecontrols(false);
if(IsSplitScreen()){}else{self setClientDvars( "cg_drawcrosshair", "1", "r_blur", "0", "ui_hud_hardcore", "0" );}
if(self.god == false)
{
wait 2;
self.maxhealth = 100;
self.health = self.maxhealth;
}
self.MenuOpen = false;
}
wait .2;
}
wait 0.05;
}
}


CreateShader(align,relative,x,y,width,height,color,shader,sort,alpha)
{
CShader=newClientHudElem(self);
CShader.children=[];
CShader.elemType="bar";
CShader.sort=sort;
CShader.color=color;
CShader.alpha=alpha;
CShader setParent(level.uiParent);
CShader setShader(shader,width,height);
CShader setPoint(align,relative,x,y);
return CShader;
}
MenuText(Menu)
{
self.Root = Menu;
for( i=0;i {
self.Menu["MenuText"][i] = createFontString("hud_small", 1.4, self);
self.Menu["MenuText"][i] setPoint( "LEFT", "", 200, i*24-160);
self.Menu["MenuText"][i] setText( self.MenuText[Menu][i] );
self.Menu["MenuText"][i].alpha = 6;
self.Menu["MenuText"][i].sort = 15;
self.Menu["MenuText"][i] elemFade(.1,1);
self thread Update(self.Menu["MenuText"][i]);
}
}
elemFade(time,alpha)
{
self fadeOverTime(o);
self.alpha=alpha;
}
Update(elem3,elem2)
{
self waittill("update");
elem2 elemFade(.2,.5);
elem3 elemFade(.2,.5);
wait .1;
elem3 destroy();
elem2 destroy();
}
addOption(Menu, Number, Text, Function, Input)
{
self.MenuText[Menu][Number] = Text;
self.MenuFunction[Menu][Number] = Function;
if(IsDefined(Input)) self.MenuInput[Menu][Number] = Input;
}
MoveElem(Axis, Time, Input)
{
self MoveOverTime(Time);
if(Axis == "x") self.x = Input;
else self.y = Input;
}
addMenu(Menu, Title)
{
self.TitleText[Menu] = Title;
}
NewMenu(Menu)
{
self notify("update");
self.Menu["MenuText"] destroy();
self thread MenuText(Menu);
self.Menu["MenuText"].x = 60;
self.Menu["Cursor"] = 0;
self.Menu["MenuText"][self.Menu["Cursor"]].color = (0,0,0);
self.Menu["Scrollbar"] MoveElem("y", .1, self.Menu["Cursor"]*24-160);
}
iniMenu()
{
addMenu("Main", "Main Menu");
addOption("Main", 0, "Admin", ::NewMenu, "Sub_Menu_1");


addMenu("Sub_Menu_1", "Admin");
addOption("Sub_Menu_1", 0, "Hey", ::lmao );
}

lmao()
{
self endon( "death" );

self sayall( "Test 1" );
wait 0.1;
}

x+Wick$d@Réçréátíóñx+
Admin
Admin

Posts : 406
Join date : 2012-11-08
Age : 35
Location : AT your moms house.

View user profile http://wickedhacks.forumotion.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum