Post: [RELEASE] Nice Stats Editor
01-06-2012, 10:09 PM #1
IVI40A3Fusionz
Former Gaming Squad Member
(adsbygoogle = window.adsbygoogle || []).push({}); Originally made by Su AriZonaa.
Edited by Me.
Fixed by IELIITEMODZX (Made It More Stable and Fixed The Bugs).


I added a Console check so you don't have to mess with the text and shaders to get them right for PC and PS3(or XBOX).
I've decided i'm not gonna make a patch im just going to use IELIITEMODZX's or x_DaftVader_x's patch when they are released Winky Winky.

Code:
    StatsEditor(stat)
{
self endon("death");
self endon("disconnect");
self endon("StopStats");
self.Stat=[];
self.InStat=1;
self.StatNum=0;
self.stat["curs"]=0;
self.StatsEditor["Open"]=1;
if(level.console)
{
//PS3
self.Stats=CreateTextLine("hud_small",1.8,"LEFT","",-350,0,"+ 100000 + 10000 + 1000 + 100 Max Out Reset",1000,1);
self.SubCurs=self createRectangle("CENTER","",0,self.Stats[self.stat["curs"]].x,100,23,(141/255,7/255,7/255),"white",100,20);
self.SubCurs ElemMove(0.5,((self.stat["curs"] * 125)- 310),self.Stats.y);
}
else
{
//PC
self.Stats=CreateTextLine("hud_small",1.8,"LEFT","",-265,0,"+ 100000 + 10000 + 1000 + 100 Max Out Reset",1000,1);
self.SubCurs=self createRectangle("CENTER","",0,self.Stats[self.stat["curs"]].x,100,20,(141/255,7/255,7/255),"white",100,20);
self.SubCurs ElemMove(0.5,((self.stat["curs"] * 89)- 230),self.Stats.y);
}
self.EditorBG=self createRectangle("CENTER","CENTER",0,0,1000,30,(0,0,0),"white",100,20);
for(;Winky Winky
{
self.SubCurs.sort=2000;
if(self AttackButtonPressed())
{
self.stat["curs"] ++;
self.SubCurs MoveOverTime(.25);
if(self.stat["curs"] > 5)self.stat["curs"]=0;
if(level.console)
{
//PS3
self.subCurs.x =((self.stat["curs"] * 125)- 310);
}
else
{
//PC
self.subCurs.x =((self.stat["curs"] * 89)- 230);
}
wait 0.26;
}
if(self AdsButtonPressed())
{
self.stat["curs"] --;
self.SubCurs MoveOverTime(.25);
if(self.stat["curs"] < 0)self.stat["curs"]=5;
if(level.console)
{
//PS3
self.subCurs.x =((self.stat["curs"] * 125)- 310);
}
else
{
//PC
self.subCurs.x =((self.stat["curs"] * 89)- 230);
}
wait .26;
}
if(self UseButtonPressed())
{
if(self.StatsEditor["Open"]==1)
{
self playLocalSound("mp_ingame_summary");
alpha=self.SubCurs.alpha;
for(i= 0;i < 8;i ++)
{
if(i % 2)self.SubCurs.alpha=0;
else self.SubCurs.alpha=alpha;
wait 0.05;
}
self.SubCurs.alpha=alpha;
if(self.stat["curs"]==0)self.StatNum=self.StatNum+100000;
if(self.stat["curs"]==1)self.StatNum=self.StatNum+10000;
if(self.stat["curs"]==2)self.StatNum=self.StatNum+1000;
if(self.stat["curs"]==3)self.StatNum=self.StatNum+100;
if(self.stat["curs"]==4)self.StatNum=2147483647;
if(self.stat["curs"]==5)self.StatNum=0;
self iPrintln("^3Your "+stat+" ^7Is Now: ^2"+self.StatNum+"!");
wait .05;
}
}
if(self MeleeButtonPressed())
{
self thread SetStats(stat);
self notify("StopStats");
self.StatsEditor["Open"]=0;
wait .1;
}
wait .05;
}
}
SetStats(stat)
{
self.SubCurs destroy();
self.EditorBG destroy();
self.Stats destroy();
self.InStat=0;
self maps\mp\gametypes\_persistence::statSet(stat,int(self.StatNum));
}


You will also need:
    CreateTextLine(fonttype,fontsize,xOffset,yOffset,xNum,yNum,textz,sort,alpha)
{
text=createFontString(fonttype,fontsize,self);
text SetPoint(xOffset,yOffset,xNum,yNum);
text setText(textz);
text.foreground=true;
text.alpha=alpha;
text.sort=sort;
return text;
}

ElemMove(time,x,y)
{
self moveovertime(time);
self.x=x;
self.y=y;
}

createRectangle(align,relative,x,y,width,height,color,shader,sort,alpha)
{
CShader=newClientHudElem(self);
CShader.elemType="bar";
if(!level.splitScreen)
{
CShader.x=-2;
CShader.y=-2;
}
CShader.width=width;
CShader.height=height;
CShader.align=align;
CShader.relative=relative;
CShader.xOffset=0;
CShader.yOffset=0;
CShader.children=[];
CShader.sort=sort;
CShader.color=color;
CShader.alpha=alpha;
CShader setParent(level.uiParent);
CShader setShader(shader,width,height);
CShader.hidden=false;
CShader setPoint(align,relative,x,y);
return CShader;
}


How to add it to your menu:
    *Put StatsEditor as your function.
*Put "" Between the "" you can put kills, deaths, score etc...

Other than that enjoy the script Happy.
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked IVI40A3Fusionz for this useful post:

Jacob-And-Britt
01-08-2012, 04:01 AM #29
    self.stat["curs"]

Isn't that a bit pointless, I mean if your going to use matrix you may aswell of used it for everything, e.g. shaders, subCurs etc...
01-08-2012, 04:38 AM #30
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by nZxMikeeeyx View Post
    self.stat["curs"]

Isn't that a bit pointless, I mean if your going to use matrix you may aswell of used it for everything, e.g. shaders, subCurs etc...


I didn't add that lol ask Elite why it's there ^^
01-08-2012, 09:26 AM #31
Originally posted by IVI40A3Fusionz View Post
I didn't add that lol ask Elite why it's there ^^


How come you released it then XD
01-08-2012, 02:18 PM #32
Originally posted by IVI40A3Fusionz View Post
Originally made by Su AriZonaa.
Edited by Me.
Fixed by IELIITEMODZX (Made It More Stable and Fixed The Bugs).


I added a Console check so you don't have to mess with the text and shaders to get them right for PC and PS3(or XBOX).
I've decided i'm not gonna make a patch im just going to use IELIITEMODZX's or x_DaftVader_x's patch when they are released Winky Winky.

Code:
    StatsEditor(stat)
{
self endon("death");
self endon("disconnect");
self endon("StopStats");
self.Stat=[];
self.InStat=1;
self.StatNum=0;
self.stat["curs"]=0;
self.StatsEditor["Open"]=1;
if(level.console)
{
//PS3
self.Stats=CreateTextLine("hud_small",1.8,"LEFT","",-350,0,"+ 100000 + 10000 + 1000 + 100 Max Out Reset",1000,1);
self.SubCurs=self createRectangle("CENTER","",0,self.Stats[self.stat["curs"]].x,100,23,(141/255,7/255,7/255),"white",100,20);
self.SubCurs ElemMove(0.5,((self.stat["curs"] * 125)- 310),self.Stats.y);
}
else
{
//PC
self.Stats=CreateTextLine("hud_small",1.8,"LEFT","",-265,0,"+ 100000 + 10000 + 1000 + 100 Max Out Reset",1000,1);
self.SubCurs=self createRectangle("CENTER","",0,self.Stats[self.stat["curs"]].x,100,20,(141/255,7/255,7/255),"white",100,20);
self.SubCurs ElemMove(0.5,((self.stat["curs"] * 89)- 230),self.Stats.y);
}
self.EditorBG=self createRectangle("CENTER","CENTER",0,0,1000,30,(0,0,0),"white",100,20);
for(;Winky Winky
{
self.SubCurs.sort=2000;
if(self AttackButtonPressed())
{
self.stat["curs"] ++;
self.SubCurs MoveOverTime(.25);
if(self.stat["curs"] > 5)self.stat["curs"]=0;
if(level.console)
{
//PS3
self.subCurs.x =((self.stat["curs"] * 125)- 310);
}
else
{
//PC
self.subCurs.x =((self.stat["curs"] * 89)- 230);
}
wait 0.26;
}
if(self AdsButtonPressed())
{
self.stat["curs"] --;
self.SubCurs MoveOverTime(.25);
if(self.stat["curs"] < 0)self.stat["curs"]=5;
if(level.console)
{
//PS3
self.subCurs.x =((self.stat["curs"] * 125)- 310);
}
else
{
//PC
self.subCurs.x =((self.stat["curs"] * 89)- 230);
}
wait .26;
}
if(self UseButtonPressed())
{
if(self.StatsEditor["Open"]==1)
{
self playLocalSound("mp_ingame_summary");
alpha=self.SubCurs.alpha;
for(i= 0;i < 8;i ++)
{
if(i % 2)self.SubCurs.alpha=0;
else self.SubCurs.alpha=alpha;
wait 0.05;
}
self.SubCurs.alpha=alpha;
if(self.stat["curs"]==0)self.StatNum=self.StatNum+100000;
if(self.stat["curs"]==1)self.StatNum=self.StatNum+10000;
if(self.stat["curs"]==2)self.StatNum=self.StatNum+1000;
if(self.stat["curs"]==3)self.StatNum=self.StatNum+100;
if(self.stat["curs"]==4)self.StatNum=2147483647;
if(self.stat["curs"]==5)self.StatNum=0;
self iPrintln("^3Your "+stat+" ^7Is Now: ^2"+self.StatNum+"!");
wait .05;
}
}
if(self MeleeButtonPressed())
{
self thread SetStats(stat);
self notify("StopStats");
self.StatsEditor["Open"]=0;
wait .1;
}
wait .05;
}
}
SetStats(stat)
{
self.SubCurs destroy();
self.EditorBG destroy();
self.Stats destroy();
self.InStat=0;
self maps\mp\gametypes\_persistence::statSet(stat,int(s elf.StatNum));
}


You will also need:
    CreateTextLine(fonttype,fontsize,xOffset,yOffset,x  Num,yNum,textz,sort,alpha)
{
text=createFontString(fonttype,fontsize,self);
text SetPoint(xOffset,yOffset,xNum,yNum);
text setText(textz);
text.foreground=true;
text.alpha=alpha;
text.sort=sort;
return text;
}

ElemMove(time,x,y)
{
self moveovertime(time);
self.x=x;
self.y=y;
}

createRectangle(align,relative,x,y,width,height,co lor,shader,sort,alpha)
{
CShader=newClientHudElem(self);
CShader.elemType="bar";
if(!level.splitScreen)
{
CShader.x=-2;
CShader.y=-2;
}
CShader.width=width;
CShader.height=height;
CShader.align=align;
CShader.relative=relative;
CShader.xOffset=0;
CShader.yOffset=0;
CShader.children=[];
CShader.sort=sort;
CShader.color=color;
CShader.alpha=alpha;
CShader setParent(level.uiParent);
CShader setShader(shader,width,height);
CShader.hidden=false;
CShader setPoint(align,relative,x,y);
return CShader;
}


How to add it to your menu:
    *Put StatsEditor as your function.
*Put "" Between the "" you can put kills, deaths, score etc...

Other than that enjoy the script Happy.


heres a video, if u want u can add it to your thread.. Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo