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-09-2011, 12:15 AM #20
Chrome Playa
Chrome Gaming Reloaded
Originally posted by bmxdude9 View Post
I have to admit that is really cool Smile


Thank you.

The following user thanked Chrome Playa for this useful post:

bmxdude9
01-09-2011, 02:07 AM #21
lostcaptain
Little One
Originally posted by Chrome
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 ----------



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.


You are still so clueless. First of all, let me ask you a question. Anywhere in my original post did you see me say your editor was pointless? No, you did not. Don't say I did say that, if I did not.

Secondly, for the third time, you are wrong. PLEASE, do not take this offensively when I say that you need to reeducate yourself on the matter of copyrighting. Please read more about it, and stop trying to argue with me. You are wrong, and if you continue to want to argue about it, you will find yourself on the losing end.

Thank you, and enjoy your day.

The following user thanked lostcaptain for this useful post:

Chrome Playa
01-09-2011, 02:23 AM #22
Chrome Playa
Chrome Gaming Reloaded
Originally posted by lostcaptain View Post
You are still so clueless. First of all, let me ask you a question. Anywhere in my original post did you see me say your editor was pointless? No, you did not. Don't say I did say that, if I did not.

Secondly, for the third time, you are wrong. PLEASE, do not take this offensively when I say that you need to reeducate yourself on the matter of copyrighting. Please read more about it, and stop trying to argue with me. You are wrong, and if you continue to want to argue about it, you will find yourself on the losing end.

Thank you, and enjoy your day.

First of all, let me ask you a question. Anywhere in my last post did I quote you saying hat my editor was useless? No. You simply disliked my post implying that it was as NGU calls it "Un-useful."

Secondly, If I'm not mistaken, I am not the one creating an altercation over a single word. If you would like to debate the meaning of the word "copyright" please, by all means, engage in the conversation formed by this wonderful website.

You must login or register to view this content.

Thank you, and enjoy your evening.
01-09-2011, 02:28 AM #23
lostcaptain
Little One
Originally posted by Chrome
First of all, let me ask you a question. Anywhere in my last post did I quote you saying hat my editor was useless? No. You simply disliked my post implying that it was as NGU calls it "Un-useful."

Secondly, If I'm not mistaken, I am not the one creating an altercation over a single word. If you would like to debate the meaning of the word "copyright" please, by all means, engage in the conversation formed by this wonderful website.

You must login or register to view this content.

Thank you, and enjoy your evening.


My oh my. Someone gets angry when a hard one gets stuck up their ass. If you would like to "copyright" this whole thread of yours, please do so here: You must login or register to view this content.

Also, let me update your definition, which is incorrect if I may add. "Copyright is a set of exclusive rights granted by the law of a jurisdiction to the author or creator of an original work, including the right to copy, distribute and adapt the work."

Please, I insist you stop now to prevent yourself from further embarrassment.

And buy a dictionary. Maybe a copyrighted one.

The following user thanked lostcaptain for this useful post:

Chrome Playa
01-09-2011, 02:31 AM #24
Chrome Playa
Chrome Gaming Reloaded
Ok well I'm going to be the man here. Sorry, man. I am completely wrong. I give up. I will stop. Thank you for setting me straight. I don't know what I was thinking putting the word copyright. I appreciate your concern. Again, enjoy your evening.
01-09-2011, 04:14 AM #25
lostcaptain
Little One
What a man.

Enjoy yours too. Winky Winky

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo