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, 12:23 AM #2
angel_of_deth
Climbing up the ladder
Originally posted by chr0m3playa View Post
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 copyright issues 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.

---chr0m3playa


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


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


im not here to complain but heres an idea make it so it has a color switcher added to a full list of characters that can work on clan tags now that would be nice clan tag editor if its possible would like to know if it can be done/and if possible on ps3 if not would a custom class editor like that be possible?
01-08-2011, 01:03 AM #3
jkry_2_1_
Call Me The CodFather
Really ****ing cool very nice
01-08-2011, 01:12 AM #4
IRiSe_GodFather
Was GodFatherIV
Wow that is sick looking
01-08-2011, 01:24 AM #5
Chrome Playa
Chrome Gaming Reloaded
Originally posted by deth View Post
im not here to complain but heres an idea make it so it has a color switcher added to a full list of characters that can work on clan tags now that would be nice clan tag editor if its possible would like to know if it can be done/and if possible on ps3 if not would a custom class editor like that be possible?


Colors are not possible, I wish. And any other symbols that aren't on the keyboard will just show up as question marks because they are not supported in-game.
01-08-2011, 05:07 AM #6
angel_of_deth
Climbing up the ladder
Originally posted by chr0m3playa View Post
Colors are not possible, I wish. And any other symbols that aren't on the keyboard will just show up as question marks because they are not supported in-game.


oh yea ok thanks anyway it sounded like good idea at first lol
01-08-2011, 05:14 AM #7
Chrome Playa
Chrome Gaming Reloaded
Originally posted by deth View Post
oh yea ok thanks anyway it sounded like good idea at first lol


Yea I wanted to do that too. But the only way to get special symbols is by hex editing youtself. And I guess colors are not supported by the game when it comes to clan tags.
01-08-2011, 07:24 AM #8
Janiboy
☆ janiboy95 ☆
Editor looks nice! Clantag looks nice!... :y:
GOOD WORK!
01-08-2011, 07:40 AM #9
RayJ_chugs
[move] No Founder [/move]
looks cool nice work.
01-08-2011, 09:09 AM #10
Tyga.
Who’s Jim Erased?
Nice release man, keep going

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo