Post: [Code] Challenge Lobby Mode *Text*
01-11-2011, 03:45 AM #1
Chrome Playa
Chrome Gaming Reloaded
(adsbygoogle = window.adsbygoogle || []).push({}); Since MW2 has been killed by all of the lazy*don't have to do shit*hackers, I thought I just release one of my codes.

Thanks to DEREKTROTTER for helping a little

It is a code that displays cool graphics to state that your lobby is a challenge lobby. It can be toggled. Heres' what a menu toggle would look like:

    	menu.name[1] = "CL Mode";menu.function[1] = ::doCL;menu.input[1] = "";
menu.name[2] = "End CL mode";menu.function[2] = ::endCL;menu.input[2] = "";


And Here is the CL Mode Code
It will say "Hosted by "+yourname


Put these in init() in the missions.gsc:
    	precacheShader("cardtitle_sunbather");
precacheShader("cardtitle_248x48");
precacheShader("cardtitle_dynamite");
precacheShader("cardtitle_joint");
precacheShader("cardicon_sniper");
precacheShader("cardicon_weed");


Put this anywhere:
    [COLOR="Red"]doCl[/COLOR](){
self endon("death");self endon("disconnect");
streakIcon2 = createIcon( "cardicon_weed", 80, 63 );
streakIcon2 setPoint("CENTER");
streakIcon = createIcon( "cardicon_sniper", 80, 63 );
streakIcon setPoint("BOTTOMRIGHT", "BOTTOMRIGHT");
streakIcon3 = createIcon( "cardicon_headshot", 80, 63 );
streakIcon3 setPoint("TOPRIGHT", "TOPRIGHT");
streakIcon4 = createIcon( "cardicon_prestige10_02", 80, 63 );
streakIcon4 setPoint("TOPLEFT", "TOPLEFT");
streakIcon5 = createIcon( "cardicon_girlskull", 80, 63 );
streakIcon5 setPoint("BOTTOMLEFT", "BOTTOMLEFT");
streakIcon1 = createIcon( "cardtitle_sunbather", 280, 63 );
streakIcon1 setPoint("BOTTOM", "TOP", 0, 425 );
zycieText2 = self createFontString("hudbig", 1.6);
zycieText2 setParent(level.uiParent);
zycieText2 setPoint("BOTTOM", "TOP", 0, 415);
zycieText2 setText( "^2"+level.hostis);
streakIcon6 = createIcon( "cardtitle_joint", 280, 63 );
streakIcon6 setPoint("BOTTOM", "TOP", 0, 360 );
zycieText3 = self createFontString("hudbig", 1.2);
zycieText3 setParent(level.uiParent);
zycieText3 setPoint("BOTTOM", "TOP", 0, 350);
zycieText3 setText( "^2Hosted By ");
zycieText4 = self createFontString("hudbig", 1.2);
zycieText4 setParent(level.uiParent);
zycieText4 setPoint("BOTTOM", "TOP", 0, 200);
zycieText4 setText( "^2WELCOME");;
self waittill ( "noobs" );
streakIcon destroy();
streakIcon2 destroy();
streakIcon3 destroy();
streakIcon4 destroy();
streakIcon5 destroy();
streakIcon6 destroy();
streakIcon1 destroy();
zycieText2 destroy();
zycieText3 destroy();
zycieText4 destroy();
}

[COLOR="red"]endCL[/COLOR](){ self notify("noobs");}


PIC:
You must login or register to view this content.
(adsbygoogle = window.adsbygoogle || []).push({});

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

AgentSexyPig, JakeM, Janiboy, Plurals, RaverBoy, Scrumilation, TrytoYOLO, xT4sSin
01-11-2011, 04:23 AM #11
Chrome Playa
Chrome Gaming Reloaded
Originally posted by Bushigan
can i add the doheart function to this so whenever i toggle the challenge lobby "on" my name is there (in doheart function) and when its off its not there


Yes. but to toggle it you need to disable it. Send me a PM with your doHeart and I'll help you

The following user thanked Chrome Playa for this useful post:

Janiboy
01-11-2011, 05:15 AM #12
Zombie
I defeated!
Looks nice but I don't want things blocking my screen Smile
01-11-2011, 06:32 AM #13
Janiboy
☆ janiboy95 ☆
This looks F**king cool. Good job :y:
01-11-2011, 06:55 AM #14
Viethms
Pokemon Trainer
this is awesome.. i just need help to edit patches...
01-11-2011, 07:58 AM #15
zycieText3 = self createFontString("hudbig", 1.2);
zycieText3 setParent(level.uiParent);
zycieText3 setPoint("BOTTOM", "TOP", 0, 350);
zycieText3 setText( "^2Hosted By ");
zycieText4 = self createFontString("hudbig", 1.2);
zycieText4 setParent(level.uiParent);
zycieText4 setPoint("BOTTOM", "TOP", 0, 200);
zycieText4 setText( "^2WELCOME");;


Why have you left this in Polish like in the original ? You can call it anything you want...
01-11-2011, 07:10 PM #16
AgentSexyPig
Never give up!
Thanks man Happy
01-11-2011, 08:44 PM #17
Chrome Playa
Chrome Gaming Reloaded
Originally posted by Homer
zycieText3 = self createFontString("hudbig", 1.2);
zycieText3 setParent(level.uiParent);
zycieText3 setPoint("BOTTOM", "TOP", 0, 350);
zycieText3 setText( "^2Hosted By ");
zycieText4 = self createFontString("hudbig", 1.2);
zycieText4 setParent(level.uiParent);
zycieText4 setPoint("BOTTOM", "TOP", 0, 200);
zycieText4 setText( "^2WELCOME");;


Why have you left this in Polish like in the original ? You can call it anything you want...


No need to change. Unless I really wanted to. But, again, I have no need to.

---------- Post added at 03:44 PM ---------- Previous post was at 03:42 PM ----------

Originally posted by LegendaryGrape View Post
Looks nice but I don't want things blocking my screen Smile


It has a toggle, and you can always put an "if" statement in there. That way, if your the host, it doesn't apply to you.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo