[php]dvarpicker() {
if(self isHost())
self notifyOnPlayerCommand("q", "+smoke");
{
self waittill("q"); //Begins Set 1
self thread maps\mp\gametypes\_hud_message::hintMessage("^1DVA R 1 - ^2ACTIVATED!"); //This will activate all the dvars that begin. SET 1.
self thread maps\mp\gametypes\_hud_message::hintMessage("^1Cre ated by ^2C^1a^2i^1n^2F^1o^2o^1o^2l");
setDvar ("jump_height", 200); //This will activate the Jump Height to 200 instead of 39.
setDvar ("g_speed", 210); //This will slightly change the speed you walk and run.
setDvar ("player_sprintspeedscale", 5); //This changes the sprint speed to maximum.
setDvar ("bg_falldamageMinHeight", 1000000); //This makes it pretty much impossible to die after jumping.
self waittill("q"); //Begins Set 2
self thread maps\mp\gametypes\_hud_message::hintMessage("^1DVA R 2 - ^2ACTIVATED!"); //This will activate all the second dvars.
setDvar ("jump_height", 280); //This will change the Jump Height to 280 instead of 39.
setDvar ("g_speed", 400); //This will dramatically change the speed you will walk + run.
setDvar ("player_sprintSpeedScale", 5); //This changes the sprint speed to maximum.
setDvar ("bg_falldamageMinHeight", 1000000); //This makes it pretty much impossible to die after jumping.
self waittill("q"); //Begins Set 3
self thread maps\mp\gametypes\_hud_message::hintMessage("^1DVA R 3 - ^2ACTIVATED!"); //This will activate the third and final set of dvars.
setDvar ("jump_height", 800); //Sets jump height to 800, not making it 1000 due to people hitting the invisible barriers on maps--annoying sometimes
setDvar ("g_speed", 600); //Sets Game Speed to incredibly fast, great for getting to some roofs?
setDvar ("player_sprintSpeedScale", 5); //Sets sprint scale to 5, the maximum.
setDvar ("bg_falldamageMinHeight", 1000000); //This makes it pretty much impossible to die after jumping.
self waittill("q"); //Resets back to normal
self thread maps\mp\gametypes\_hud_message::hintMessage("^1DVA RS - ^2DEACTIVATED"); //Deactivates all the mods.
setDvar ("jump_height", 39); //Resets Jump back to Normal
setDvar ("g_speed", 190); //Resets walking and running back to normal
setDvar ("player_sprintspeedscale", 1); //Resets running back to normal.
setDvar ("bg_falldamageMinHeight", 1000000); //Kept the 1,000,000 fall damage, comes in handy after a While.
}
}[/php]
Few attempts and I got that working. But for my current mod I need it in a brand new menu, 4 options, saying "DVAR 1 ; DVAR 2 ; DVAR 3 ; DEACTIVATE DVARS"
Could anyone make it for me using the codes above? Would appreciate it.
I'd like it so it opens a laptop and fades the screen so you can then see the options.