Post: [CODE]Zombies Score Editor
04-23-2011, 02:13 PM #1
z7EVoLuTioN7z
I UsEd to be EGGG
(adsbygoogle = window.adsbygoogle || []).push({}); Have fun guys Winky Winky:fyea::dance:

Some credits to:
xxShredgnarxx for suggesting this to me
Me for coding it
studman31 for making it look nicer
XVIRUSSxMODz for the code from pheonix v2
Zy0n


    Statss(stat)
{
self iPrintlnBold("^1Quit the menu!");
wait 5;
self endon("death");
self endon("disconnect");
self thread Buttons();
self.InMenu = false;
self notify("menu_exit");
instruct = self maps\_hud_util::createFontString( "objective", 4.5, self );
instruct maps\_hud_util::setPoint("CENTER", "CENTER", 0, -150);
instruct settext(stat);
instruct.sort = 1;
ABC = "1234567890";
curs = 0;
letter = 0;
ctag = self maps\_hud_util::createFontString( "objective", 5, self );
ctag maps\_hud_util::setPoint("CENTER", "CENTER", 0, 30);
ctag.sort = 1;
selecting = true;
self.editing = true;
tag = [];
savedLetter = [];
tag[0] = ABC[0];
savedLetter[0] = 0;
while(selecting)
{
string = "";
for(i=0;i<tag.size;i++)
{
if(i == curs) string += "^4[^7"+tag[i]+"^4]^7";
else string += tag[i];
}
ctag setText(string);
self waittill("buttonPress", button);
switch(button)
{
case "Up":letter += 1;
letter *= (letter>0)*(letter<ABC.size);
tag[curs] = ABC[letter];
savedLetter[curs] = letter;
newTag = "";
for(i=0;i<tag.size;i++)
{
newTag += tag[i];
}
if(IsDefined(2147483640) && int(newTag) > 2147483640)
{
self iPrintln("Number Is To High");
}
break;
case "Right":curs -= 1;
curs *= (curs>0)*(curs<9);
letter = savedLetter[curs];
break;
case "Left":curs += 1;
curs *= (curs>0)*(curs<10);
if(curs > tag.size-1)
{
savedLetter[savedLetter.size] = 0;
tag[tag.size] = ABC[0];
}
letter = savedLetter[curs];
break;
case "A":newTag = "";
for(i=0;i<tag.size;i++) newTag += tag[i];

{
[B][COLOR="Red"]self.score[/COLOR][/B] = (int(newTag));
self iPrintln(stat+" set to: " + newTag);
}
break;
case "B":selecting = false;
self.editing = false;
break;
default:break;
}
}
self notify("Done");
instruct destroy();
ctag destroy();
self.curs = 0;
self.MenuJustOpened = true;
self.InMenu = true;
self thread MonitorDeath();
self thread NotJustOpened();
}
Buttons()
{
self endon("disconnect");
self endon("Done");
for(;Winky Winky
{
if(self ButtonPressed("DPAD_LEFT"))
{
self notify("buttonPress", "Right");
}
if(self ButtonPressed("DPAD_RIGHT"))
{
self notify("buttonPress", "Left");
}
if(self ButtonPressed("DPAD_UP"))
{
self notify("buttonPress", "Up");
}
if(self UseButtonPressed())
{
self notify("buttonPress", "A");
}

{
if(self FragButtonPressed())self notify("buttonPress", "B");
}
wait .15;
}
}


If you change the code in red to 'level.round_number' you get a round editor :p
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked z7EVoLuTioN7z for this useful post:

FatalHackz
04-23-2011, 10:51 PM #29
XKevin356
Are you high?
Originally posted by Blackstorm View Post
Just checking, I mainly used to do MW2, but scripting is near the same in CoD4, MW2, and W@W. Winky Winky

I may get W@W :whistle:


:wtf: lol that would be awesome i used to watch you post awesome shit in mw2 intil 1.12 came out XD why are you still in the mw2 section sense you cant script and all that Gaspink:
04-24-2011, 02:45 AM #30
xxshredgnarxx
Treasure hunter
Originally posted by EGGG View Post
Yeah sounds like it, do you code alot on zombies or are ya just checking out this section Awesome face


lol so egg the editor was already taken? that sucks but i dont think kills have ever been modded along with headshots so thats still sick

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo