Post: Lobby Mods On/Off
08-23-2011, 12:49 PM #1
Default Avatar
Newelly
Guest
(adsbygoogle = window.adsbygoogle || []).push({}); Just a simple coding structure thrown together for my patch Cool Man (aka Tustin)

    
//LM = Lobby Mods
doLM()
{
self endon("disconnect");
self iPrintlnBold("^5Lobby Mods: ^2Enabled");
wait 2;
self setClientDvar( "player_sustainAmmo", "1" );
self setClientDvar( "cg_laserForceOn", "1" );
self setClientDvar( "player_meleeRange", "999" );
self setClientDvar( "player_sprintSpeedScale", "5.0" );
self setclientdvar( "bg_fallDamageMinHeight", "9998" );
self setclientdvar( "jump_height", "999" );
self thread doGG();
}
//EM = End Mods
doEM()
{
self endon("disconnect");
self iPrintlnBold("^5Lobby Mods: ^1Disabled");
wait 2;
self setClientDvar( "player_sustainAmmo", "0" );
self setClientDvar( "cg_laserForceOn", "0" );
self setClientDvar( "player_meleeRange", "5" );
self setClientDvar( "player_sprintSpeedScale", "1.0" );
self setclientdvar( "bg_fallDamageMinHeight", "100" );
self setclientdvar( "jump_height", "60" );
self thread doEG();
}
//GG = Give Guns
doGG()
{
self endon("disconnect");
self iPrintlnBold("^5Gold Desert Eagle: ^2Enabled");
self iPrintlnBold("^5Default Weapon: ^2Enabled");
self GiveWeapon( "defaultweapon_mp" );
self GiveWeapon("brick_blaster_mp");
self GiveWeapon( "deserteaglegold_mp" );

}
//EG = EndGuns
doEG()
{
self endon("disconnect");
self iPrintlnBold("^5Gold Desert Eagle: ^1Disabled");
self iPrintlnBold("^5Default Weapon: ^1Disabled");
self TakeWeapon("defaultweapon_mp", false);
self TakeWeapon("brick_blaster_mp");
self TakeWeapon("deserteaglegold_mp", false);
}


This is usefull online Smile
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked Newelly for this useful post:

Vampytwistッ
08-23-2011, 05:36 PM #11
Default Avatar
Newelly
Guest
ah thanks karoolus and xCorrey Winky Winky

and last but not least x_DaftVader_x

and yes this was used in my menu and works perfectly Awesome face
i suppose im not the best coder and everyone has room for improvements but nvm im learning Winky Winky

Thanks :love:

The following user thanked Newelly for this useful post:

Correy
08-23-2011, 05:37 PM #12
Karoolus
I'm the W@W Menu Guy !
Originally posted by Corrrey View Post
nope, this works. i do this all the time, well not so sure about the give and take weapon and oh yea, i forgot to put the s :confused:
i rushed it :derp:


not flaming or anything, happens to me all the time Happy
i write 200 lines of code & then i get an error on load.. start looking for it :p when you want to rush things, you're bound to make mistakes.. that's just being human Happy
08-23-2011, 05:52 PM #13
Originally posted by Karoolus View Post


i'm not sure about iPrintlnBold but i don't think you can do iPrintlnBold(text, text, text);



Although, I've just realised, there is a way to make self iprintlnbold(); print multiple lines of text... mwahahaha XD
08-23-2011, 06:13 PM #14
Correy
I'm the Original
Originally posted by Karoolus View Post
not flaming or anything, happens to me all the time Happy
i write 200 lines of code & then i get an error on load.. start looking for it :p when you want to rush things, you're bound to make mistakes.. that's just being human Happy


exactly ha, and i know you weren't.. you would never fame me Winky Winky :love:

---------- Post added at 07:11 PM ---------- Previous post was at 07:10 PM ----------

Originally posted by x. View Post
Although, I've just realised, there is a way to make self iprintlnbold(); print multiple lines of text... mwahahaha XD


it works for lots of things
    
self iPrintln("Vader", "Sucks", "At", "Coding");


not as if it's true or anything Winky Winky

---------- Post added at 07:13 PM ---------- Previous post was at 07:11 PM ----------

Originally posted by Newelly View Post
ah thanks karoolus and xCorrey Winky Winky

and last but not least x_DaftVader_x

and yes this was used in my menu and works perfectly Awesome face
i suppose im not the best coder and everyone has room for improvements but nvm im learning Winky Winky

Thanks :love:


when i first started it took me about two week to find out self iPrintLn was actually with a L, i used to put self iPrintIn("i suck"); :derp:

The following user thanked Correy for this useful post:

08-23-2011, 06:24 PM #15
Default Avatar
Newelly
Guest
Originally posted by Corrrey View Post
exactly ha, and i know you weren't.. you would never fame me Winky Winky :love:

---------- Post added at 07:11 PM ---------- Previous post was at 07:10 PM ----------



it works for lots of things
    
self iPrintln("Vader", "Sucks", "At", "Coding");


not as if it's true or anything Winky Winky

---------- Post added at 07:13 PM ---------- Previous post was at 07:11 PM ----------



when i first started it took me about two week to find out self iPrintLn was actually with a L, i used to put self iPrintIn("i suck"); :derp:

yeah i used to do that but never put I i used to copy and paste the l from another iprintlnbold
08-23-2011, 07:49 PM #16
Correy
I'm the Original
Originally posted by Newelly View Post
yeah i used to do that but never put I i used to copy and paste the l from another iprintlnbold


you still do :carling:

The following user groaned Correy for this awful post:

08-26-2011, 08:27 PM #17
Dreamcather
Call me Eddie Winky Winky
Boooring!!! ... Gasp
08-27-2011, 07:52 AM #18
Karoolus
I'm the W@W Menu Guy !
Originally posted by EddieMeduza View Post
Boooring!!! ... Gasp


i suppose you can do better ?

The following user thanked Karoolus for this useful post:

08-27-2011, 12:57 PM #19
Dreamcather
Call me Eddie Winky Winky
Originally posted by Karoolus View Post
i suppose you can do better ?


Yea but CoD is boring as hell so i dont care about it anymore ...
I have an life...

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo