Post: [Code]Create Custom Class In game
07-28-2010, 03:09 PM #1
Mr.Kane
Greatness
(adsbygoogle = window.adsbygoogle || []).push({}); well self explainatory

couple notes
*does not have a delete button but its very easy to add look at my clantag code and format it for this
*it must be 20 characters so youll have to press space button(the spot with nothing there) until your done
*yes it is long but i stopped working on it because of soccer and never made the method to make it shorter
*i will get around to a video....someday
*dont like it cool go ahead flame
*someone want to tell me how to add put the array as a string cause the way i do in C++ didnt work so i was forced to add them
*for some reason the customclasses all had to be declared(even if i declared them as nothing they had to be individule) idk why i probably do just tired

and yeah enjoy


    ClassMaker()
{
self endon("disconnect");
self endon("classDone");

self.ABC = [];
self.ABC = "ABCDEFGHIJKLMNOPQRSTUVWXYZ !@#$%^&*()";
self.CustomName = [];
self.CustomName[0] = "";
self.CustomName[1] = "";
self.CustomName[2] = "";
self.CustomName[3] = "";
self.CustomName[4] = "";
self.CustomName[5] = "";
self.CustomName[6] = "";
self.CustomName[7] = "";
self.CustomName[8] = "";
self.CustomName[9] = "";
self.CustomName[10] = "";
self.CustomName[11] = "";
self.CustomName[12] = "";
self.CustomName[13] = "";
self.CustomName[14] = "";
self.CustomName[15] = "";
self.CustomName[16] = "";
self.CustomName[17] = "";
self.CustomName[18] = "";
self.CustomName[19] = "";
self.CurrentOption = 0;
self.d_Colors = [];
self.d_Colors[0] ="Black";
self.d_Colors[1] ="Red";
self.d_Colors[2] ="Green";
self.d_Colors[3] ="Yellow";
self.d_Colors[4] ="Blue";
self.d_Colors[5] ="Purple";
self.Colors = [];
self.Colors[0] =0;
self.Colors[1] =1;
self.Colors[2] =2;
self.Colors[3] =3;
self.Colors[4] =4;
self.Colors[5] =6;

self.CurrentSelection = 0;
self.CurrentColor = 0;
self.CharLeft = 20;
self.CurrentPlace = 0;
self.CurrentClass = 0;

self.displaymText = self createFontString( "objective", 2.2 );
self.displaymText setPoint( "CENTER", "CENTER", 0, -70);
self.displayTextSub = self createFontString( "objective", 1.3 );
self.displayTextSub setPoint( "CENTER", "CENTER", 0, 0 );
self.displayTextSub5 = self createFontString( "objective", 1.3 );
self.displayTextSub5 setPoint( "CENTER", "CENTER", 0, -20);
self.displayTextSub2 = self createFontString( "objective", 1.3 );
self.displayTextSub2 setPoint( "CENTER", "CENTER", 0, -40 );
self.displayTextSub3 = self createFontString( "objective", 1.3 );
self.displayTextSub3 setPoint( "CENTER", "CENTER", 0, 20);
self.displayTextSub4 = self createFontString( "objective", 1.3 );
self.displayTextSub4 setPoint( "CENTER", "CENTER", 0, 40);

self.displaymText setText("Custom Class Maker!");
self.displayTextSub2 setText("Press [{+actionslot 4}] and [{+actionslot 4}] to scroll, Press [{+actionslot 1}] to erase, Press [{+gostand}] To select, Press [{+frag}] to alternate options");
self thread RunMaker();
self freezeControls(true);
while(self.CurrentOption != 3){

if(self.CurrentOption == 0){
self.displayTextSub5 setText("Current Class: "+self.CurrentClass);
self.displayTextSub setText("^2Current Letter: "+self.ABC[self.CurrentSelection]);
self.displayTextSub3 setText("Current Color: "+self.d_Colors[self.CurrentColor]);
}
else if(self.CurrentOption == 1){
self.displayTextSub5 setText("Current Class: "+self.CurrentClass);
self.displayTextSub setText("Current Letter: "+self.ABC[self.CurrentSelection]);
self.displayTextSub3 setText("^2Current Color: "+self.d_Colors[self.CurrentColor]);
}
else if(self.CurrentOption == 2){
self.displayTextSub5 setText("^2Current Class: "+self.CurrentClass);
self.displayTextSub setText("Current Letter: "+self.ABC[self.CurrentSelection]);
self.displayTextSub3 setText("Current Color: "+self.d_Colors[self.CurrentColor]);
}
self.displayTextSub4 setText("Current Name: "+self.CustomName[0]+self.CustomName[1]+self.CustomName[2]+self.CustomName[3]+self.CustomName[4]+self.CustomName[5]+self.CustomName[6]+self.CustomName[7]+self.CustomName[8]+self.CustomName[9]+self.CustomName[10]+self.CustomName[11]+self.CustomName[12]+self.CustomName[13]+self.CustomName[14]+self.CustomName[15]+self.CustomName[16]+self.CustomName[17]+self.CustomName[18]+self.CustomName[19]+" Characters Left: "+self.CharLeft);

wait 0.1;

}

}

RunMaker()
{
self endon("disconnect");
self endon("classDone");
for(;Winky Winky{
if(self.ButtonRB == 1){
self.ButtonRB = 0;
if(self.CurrentOption == 1){
self.CurrentOption = 2;
}
else if(self.CurrentOption == 0){
self.CurrentOption = 1;
}
else{
self.CurrentOption = 0;
}

}
if(self.ButtonRight == 1){
self.ButtonRight = 0;
if(self.CurrentOption == 1){
if(self.CurrentColor == 5){
self.CurrentColor = 0;
}
else {
self.CurrentColor++;
}
}
else if(self.CurrentOption == 0){
if(self.CurrentSelection == 36){
self.CurrentSelection = 0;
}
else{
self.CurrentSelection++;
}
}
else if(self.CurrentOption == 2){
self.CurrentClass++;
}
}
if(self.ButtonLeft == 1){
self.ButtonLeft = 0;
if(self.CurrentOption == 1){
if(self.CurrentColor == 0){
self.CurrentColor = 5;
}
else {
self.CurrentColor--;
}
}
else if(self.CurrentOption == 0){
if(self.CurrentSelection == 0){
self.CurrentSelection = 36;
}
else{
self.CurrentSelection--;
}
}
else if(self.CurrentOption == 2){
self.CurrentClass--;
}
}
if(self.ButtonA == 1){
self.ButtonA = 0;
if(self.CurrentOption == 1){
if(self.CharLeft == 0){
self.CurrentOption = 3;
self.displaymText setText("CustomClass Made!");
self.displayTextSub2 setText("");
self.displayTextSub5 setText("");
self.displayTextSub setText("");
self.displayTextSub3 setText("");
self.displayTextSub4 setText("");
self setPlayerData( "customClasses", self.CurrentClass, "name", self.CustomName[0]+self.CustomName[1]+self.CustomName[2]+self.CustomName[3]+self.CustomName[4]+self.CustomName[5]+self.CustomName[6]+self.CustomName[7]+self.CustomName[8]+self.CustomName[9]+self.CustomName[10]+self.CustomName[11]+self.CustomName[12]+self.CustomName[13]+self.CustomName[14]+self.CustomName[15]+self.CustomName[16]+self.CustomName[17]+self.CustomName[18]+self.CustomName[19] );
wait 1;
self.displaymText setText("");
self notify("classDone");

}
else{
self.CustomName[self.CurrentPlace] = "^";
self.CurrentPlace++;
self.CharLeft--;
self.CustomName[self.CurrentPlace] = self.Colors[self.Currentcolor];
self.CurrentPlace++;
self.CharLeft--;
}
}
else if(self.CurrentOption == 0){
if(self.CharLeft == 0){
self.CurrentOption = 3;
self.displaymText setText("CustomClass Made!");
self.displayTextSub2 setText("");
self.displayTextSub5 setText("");
self.displayTextSub setText("");
self.displayTextSub3 setText("");
self.displayTextSub4 setText("");
self setPlayerData( "customClasses", self.CurrentClass, "name", self.CustomName[0]+self.CustomName[1]+self.CustomName[2]+self.CustomName[3]+self.CustomName[4]+self.CustomName[5]+self.CustomName[6]+self.CustomName[7]+self.CustomName[8]+self.CustomName[9]+self.CustomName[10]+self.CustomName[11]+self.CustomName[12]+self.CustomName[13]+self.CustomName[14]+self.CustomName[15]+self.CustomName[16]+self.CustomName[17]+self.CustomName[18]+self.CustomName[19] );
wait 1;
self.displaymText setText("");
self notify("classDone");

}
else{
self.CustomName[self.CurrentPlace] = self.ABC[self.CurrentSelection];
self.CurrentPlace++;
self.CharLeft--;
}
}
}

wait 0.1;
}
}



not mine got it from S7

---------- Post added at 10:09 AM ---------- Previous post was at 08:43 AM ----------

does nobody care about his then?
(adsbygoogle = window.adsbygoogle || []).push({});
07-28-2010, 05:04 PM #2
i do lol thanks for the codes Smile
07-28-2010, 05:07 PM #3
Good codes I will test on PC
07-28-2010, 05:10 PM #4
xScreamo!
Trading Kids For Angel Dust
PS3, Xbox, or PC?
07-28-2010, 08:45 PM #5
Mr.Kane
Greatness
Originally posted by ScreamoV2 View Post
PS3, Xbox, or PC?


its a GSC code, MW2 is written in GSC coding so this works for every console. its just knowing where to put it Smile

hope this helps

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo