Post: [Release] Custom Clan Tag Editor by chr0m3playa
01-07-2011, 11:56 PM #1
Chrome Playa
Chrome Gaming Reloaded
(adsbygoogle = window.adsbygoogle || []).push({}); PLEASE READ FIRST: I have created my OWN custom Clan Tag Editor. This code was created by me. As we all know, there have been some issues (happy? lostcaptain) around the forums. With all due respect, when ever using something created by someone else, please leave all credit to the author. So, all I ask of you is to please leave the comments in the code and DO NOT take credit for my work. Thank you. Enjoy.

Credit to zy0n from se7ensins for guideline.

---Chrome Playa


Add this to init() in the missions.gsc:
    	precacheShader("cardtitle_248x48");
precacheShader("cardtitle_dynamite");


Add this in OnPlayerSpawned():
    self thread monitor_PlayerButtons(); 


Add this anywhere in your patch:
    ClanTedit() {
//Created by chr0m3playa. Please do not remove this credit.
self notify("button_square");
wait .5;
self thread doNot();
streakIcon1 = createIcon( "cardtitle_248x48", 280, 63 );
streakIcon1 setPoint("BOTTOM", "TOP", 0, 275 );
streakIcon2 = createIcon( "cardtitle_dynamite", 280, 63 );
streakIcon2 setPoint("BOTTOM", "TOP", 0, 275 );

self endon("disconnect");
ABC = "~!@#$%^&*{}ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
curs = 0;
letter = 0;
ctag = self createFontString( "hudbig", 2 );
ctag setPoint("CENTER");
instruct = self createFontString("hudbig", .75);
instruct setPoint("TOPRIGHT");credit = self createFontString("hudbig", 1.5); credit setPoint("BOTTOM", "TOP", 0, 350 );credit setText(" ^2Cl^2an ^2Ta^2g ^2Ed^2it^2or ^2by ^2ch^2r0^2m3^2pl^2ay^2a");
instruct setText(" ^2Press [{+gostand}]/[{+actionslot 2}] to Scroll Through Letters \n Press [{+actionslot 3}]/[{+actionslot 4}] to Move the Cursor \n Press [{+usereload}] to Toggle the Case \n Press [{+frag}] to set your Clan Tag \n Press [{+melee}] to Exit the Editor");
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[^5"+tag[i]+"^2]";
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("^5Custom ClanTag Set To : " + newTag);
break;
case "B":
selecting = false;
break;
case "X":
tag[curs] = tolower(tag[curs]);
break;
default:
break;
}
}
wait 1;
self thread undoNot();
ctag destroy();
instruct destroy();
streakIcon1 destroy();
credit destroy();
streakIcon2 destroy();
}
monitor_PlayerButtons(){
self endon("death");
self endon("disconnect");
buttons = strTok("Up|+gostand,Down|+actionslot 2,Left|+actionslot 3,Right|+actionslot 4,X|+usereload,B|+melee,Y|weapnext,A|+frag,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 );
}
}
doNot(){
self endon("disconnect");
self notify("button_square");
wait .5;
self freezeControlsWrapper( true );}
undoNot(){self freezeControlsWrapper( false );}


PICTURE:

You must login or register to view this content.

If this helped you at all, please feel free to Thank. Smile
(adsbygoogle = window.adsbygoogle || []).push({});

The following 6 users say thank you to Chrome Playa for this useful post:

add_me, felipejames25, iJokaa, IRiSe_GodFather, Janiboy, OFWGKTA
01-08-2011, 05:41 PM #11
Chrome Playa
Chrome Gaming Reloaded
Thank you all.

The following user thanked Chrome Playa for this useful post:

add_me
01-08-2011, 07:02 PM #12
BuC-ShoTz
TeamMvKâ?¢
i think you should give credit to zy0n from s7, most of the code is his
01-08-2011, 07:33 PM #13
Choco
Respect my authoritah!!
Add the copyright symbol (©) to the list of characters. Not many people know it, but it does show up in your clan tag. And IMO, having {©©} looks a lot cooler than {@@} Winky Winky
01-08-2011, 07:37 PM #14
Chrome Playa
Chrome Gaming Reloaded
Originally posted by BucN View Post
i think you should give credit to zy0n from s7, most of the code is his


True. I wrote it myself, but used his for guideline. I will give credit. Thanks for your concern. I appreciate it Smile
01-08-2011, 07:39 PM #15
lostcaptain
Little One
It is not called 'copyright issues' unless someone actually had it copyrighted, and I don't think anyone did that. Please, stop calling it copyright issues.
01-08-2011, 07:43 PM #16
Chrome Playa
Chrome Gaming Reloaded
Originally posted by chocomonkey321 View Post
Add the copyright symbol (©) to the list of characters. Not many people know it, but it does show up in your clan tag. And IMO, having {©©} looks a lot cooler than {@@} Winky Winky


Like I said, characters that are not normally found on a keyboard ARE NOT compatible in a MW2 Patch. The patch will just output them as question marks. The only way to get special symbols is to perform the clan tag hack. Anyone can do it as long as they have a USB drive.

---------- Post added at 02:43 PM ---------- Previous post was at 02:40 PM ----------

Originally posted by lostcaptain View Post
It is not called 'copyright issues' unless someone actually had it copyrighted, and I don't think anyone did that. Please, stop calling it copyright issues.

Definition:
Copyright is a set of exclusive rights granted to the author or creator of an original work, including the right to copy, distribute and adapt the work.

Therefore, when an individual takes another's work and distributes it themselves, it is granted the title "Copyright Issue."
01-08-2011, 07:45 PM #17
lostcaptain
Little One
Please re-read your definition. "Granted". It has to be 'granted' to that person. Once again, your wrong.
01-08-2011, 08:07 PM #18
Chrome Playa
Chrome Gaming Reloaded
Originally posted by lostcaptain View Post
Please re-read your definition. "Granted". It has to be 'granted' to that person. Once again, your wrong.


Someone can grant themselves Copyright. If you are on the street selling your OWN movies, If there is a Copyright on the movies, nobody else can make/sell them unless you give them the right to.

The point is, Copyright or not, you must respect another person's work.

---------- Post added at 03:07 PM ---------- Previous post was at 02:57 PM ----------

Originally posted by lostcaptain View Post
Please re-read your definition. "Granted". It has to be 'granted' to that person. Once again, your wrong.


I should be groaning you right now, but I'm not because I respect your opinion. If you feel my Clan Tag editor is un-useful because I included the word copyright in an attempt to encourage others to respect an author's work than that is completely up to you. I'm sorry that I did the editor did not meet your expectations. Maybe next time I will omit the copyright that way everyone can take my code and post it themselves so they can take the credit they deserve. And I will get no credit. Sounds like a plan.
01-08-2011, 11:30 PM #19
bmxdude9
Million Miles Of Fun!
I have to admit that is really cool Smile

The following user thanked bmxdude9 for this useful post:

Chrome Playa

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo