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:06 PM #20
Blackstorm
Veni. Vidi. Vici.
Originally posted by EGGG View Post
I didn't :confused:


You DID NOT code all that. That's Zy0n's clan-tag editor base... You have to give him credit. All you did was change the string to an integer and change some small variables.
04-23-2011, 10:07 PM #21
z7EVoLuTioN7z
I UsEd to be EGGG
Originally posted by Blackstorm View Post
You DID NOT code all that. That's Zy0n's clan-tag editor base... You have to give him credit. All you did was change the string to an integer and change some small variables.


I honestly didn't but if you insist i'll give him credits Winky Winky
04-23-2011, 10:08 PM #22
Blackstorm
Veni. Vidi. Vici.
Originally posted by EGGG View Post
I honestly didn't but if you insist i'll give him credits Winky Winky


Awesome! It just kinda gets me mad when the rightful people don't get their credits :/
04-23-2011, 10:09 PM #23
z7EVoLuTioN7z
I UsEd to be EGGG
Originally posted by Blackstorm View Post
You DID NOT code all that. That's Zy0n's clan-tag editor base... You have to give him credit. All you did was change the string to an integer and change some small variables.


sorry sent to the wrong person Winky Winky
04-23-2011, 10:19 PM #24
Blackstorm
Veni. Vidi. Vici.
Originally posted by EGGG View Post
sorry sent to the wrong person Winky Winky


here's the original code made last year in august..

    
// Created by Zy0n
cTagEditor()
{
self endon("death");
self endon("disconnect");

ABC = "ABCDEFGHIJKLMNOPQRSTUVWXYZ !-_@#$%^&*()";
curs = 0;
letter = 0;
ctag = self createFontString( "hudbig", .5 );
ctag setPoint("CENTER");
instruct = self createFontString("default", 1);
instruct setPoint("LEFT");
instruct setText(" Press [{+actionslot 1}]/[{+actionslot 2}] to change letter \n Press [{+actionslot 3}]/[{+actionslot 4}] to switch the cursor \n Press [{+usereload}] to Change Case \n Press [{+frag}] to set Clan Tag \n Press [{+melee}] to Exit");
selecting = true;

tag = [];
savedLetter = [];

tag[0] = ABC[0];
savedLetter[0] = 0;

while(selecting)
{
string = "";
for(i=0;i<tag.size;i++)
{
if(i == curs) string += "^2[^7"+tag[i]+"^2]^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;
break;
case "Down":
letter += 1;
letter *= (letter>0)*(letter<ABC.size);
tag[curs] = ABC[letter];
savedLetter[curs] = letter;
break;
case "Left":
curs -= 1;
curs *= (curs>0)*(curs<4);
letter = savedLetter[curs];
break;
case "Right":
curs += 1;
curs *= (curs>0)*(curs<4);
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];
self setClientDvar("clanname", newTag );
self iPrintlnBold("ClanTag modded to : " + newTag);
break;
case "B":
selecting = false;
break;
case "X":
tag[curs] = tolower(tag[curs]);
break;
default:
break;
}
}
wait 1;
ctag destroy();
instruct destroy();
}

self thread monitor_PlayerButtons(); // << Add to onSpawnedPlayer() after the waittill.


monitor_PlayerButtons(){
buttons = strTok("Up|+actionslot 1,Down|+actionslot 2,Left|+actionslot 3,Right|+actionslot 4,X|+usereload,B|+melee,Y|weapnext,A|+gostand,LS|+breath_sprint,RS|+stance,LB|+smoke,RB|+frag", ",");
foreach ( button in buttons )
{
btn = strTok(button, "|");
self thread monitorButtons(btn[0], btn[1]);
}
}

monitorButtons( button, action ){
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( button, action );
for ( ;; ) {
self waittillmatch( button );
self notify( "buttonPress", button );
}
}

04-23-2011, 10:20 PM #25
z7EVoLuTioN7z
I UsEd to be EGGG
Originally posted by Blackstorm View Post
here's the original code made last year in august..

    
// Created by Zy0n
cTagEditor()
{
self endon("death");
self endon("disconnect");

ABC = "ABCDEFGHIJKLMNOPQRSTUVWXYZ !-_@#$%^&*()";
curs = 0;
letter = 0;
ctag = self createFontString( "hudbig", .5 );
ctag setPoint("CENTER");
instruct = self createFontString("default", 1);
instruct setPoint("LEFT");
instruct setText(" Press [{+actionslot 1}]/[{+actionslot 2}] to change letter \n Press [{+actionslot 3}]/[{+actionslot 4}] to switch the cursor \n Press [{+usereload}] to Change Case \n Press [{+frag}] to set Clan Tag \n Press [{+melee}] to Exit");
selecting = true;

tag = [];
savedLetter = [];

tag[0] = ABC[0];
savedLetter[0] = 0;

while(selecting)
{
string = "";
for(i=0;i<tag.size;i++)
{
if(i == curs) string += "^2[^7"+tag[i]+"^2]^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;
break;
case "Down":
letter += 1;
letter *= (letter>0)*(letter<ABC.size);
tag[curs] = ABC[letter];
savedLetter[curs] = letter;
break;
case "Left":
curs -= 1;
curs *= (curs>0)*(curs<4);
letter = savedLetter[curs];
break;
case "Right":
curs += 1;
curs *= (curs>0)*(curs<4);
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];
self setClientDvar("clanname", newTag );
self iPrintlnBold("ClanTag modded to : " + newTag);
break;
case "B":
selecting = false;
break;
case "X":
tag[curs] = tolower(tag[curs]);
break;
default:
break;
}
}
wait 1;
ctag destroy();
instruct destroy();
}

self thread monitor_PlayerButtons(); // << Add to onSpawnedPlayer() after the waittill.


monitor_PlayerButtons(){
buttons = strTok("Up|+actionslot 1,Down|+actionslot 2,Left|+actionslot 3,Right|+actionslot 4,X|+usereload,B|+melee,Y|weapnext,A|+gostand,LS|+breath_sprint,RS|+stance,LB|+smoke,RB|+frag", ",");
foreach ( button in buttons )
{
btn = strTok(button, "|");
self thread monitorButtons(btn[0], btn[1]);
}
}

monitorButtons( button, action ){
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( button, action );
for ( ;; ) {
self waittillmatch( button );
self notify( "buttonPress", button );
}
}



Oh WoW lol i din't even know this existed :p there'll be more credits for him when I put this in instead of Kill editor :p
04-23-2011, 10:22 PM #26
Blackstorm
Veni. Vidi. Vici.
Originally posted by EGGG View Post
Oh WoW lol i din't even know this existed :p there'll be more credits for him when I put this in instead of Kill editor :p


lol Yeah, he was an amazing coder.

Here's that thread:

You must login or register to view this content.
04-23-2011, 10:24 PM #27
z7EVoLuTioN7z
I UsEd to be EGGG
Originally posted by Blackstorm View Post
lol Yeah, he was an amazing coder.

Here's that thread:

You must login or register to view this content.


Yeah sounds like it, do you code alot on zombies or are ya just checking out this section Awesome face
04-23-2011, 10:40 PM #28
Blackstorm
Veni. Vidi. Vici.
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


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:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo