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, 04:44 PM #11
z7EVoLuTioN7z
I UsEd to be EGGG
Originally posted by xxshredgnarxx View Post
hey egg you should find the codes for last round length i think i saw them in that patch i sent you.

oh ok cheers mate
04-23-2011, 05:26 PM #12
Dreamcather
Call me Eddie Winky Winky
That is from ViiRUSxModz Phoenix v2 .
Give credits to him.
04-23-2011, 05:28 PM #13
can u add how to put in karlous's patch plz
04-23-2011, 05:44 PM #14
z7EVoLuTioN7z
I UsEd to be EGGG
Originally posted by KingDeath360 View Post
can u add how to put in karlous's patch plz


Im releasing a mod menu of my own with an editor menu and then i'll reveal the secrets Winky Winky
04-23-2011, 08:50 PM #15
little_legz
SleepinIsCheatin
I never knew there was a self ButtonPressed(" DPAD_DOWN"); command.
I thought it was host only.

The following user thanked little_legz for this useful post:

Blackstorm
04-23-2011, 08:58 PM #16
z7EVoLuTioN7z
I UsEd to be EGGG
Originally posted by legz View Post
I never knew there was a self ButtonPressed(" DPAD_DOWN"); command.
I thought it was host only.


yeah it is, this is for a mod menu :L
04-23-2011, 09:26 PM #17
little_legz
SleepinIsCheatin
I wouldn't of put it for host only, I'd of given the default buttonPressed() commands a different notif and then put a waittill and a notify in the menu to stop it once you don't want it, If that makes sense haha.
04-23-2011, 09:48 PM #18
Blackstorm
Veni. Vidi. Vici.
You took Zy0n's clan-tag editor to make this.. Where's his credits?
04-23-2011, 10:04 PM #19
z7EVoLuTioN7z
I UsEd to be EGGG
Originally posted by Blackstorm View Post
You took Zy0n's clan-tag editor to make this.. Where's his credits?


I didn't :confused:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo