Post: Normal Restart CODE
08-19-2012, 05:31 PM #1
homeedog
I am error
(adsbygoogle = window.adsbygoogle || []).push({}); Thankyou Cmd-x For revising the codeJust thread this code with the game type and if you lay down and press MELEE MELEE SPRINT SPRINT the game should restart to normal without going to the main menus.
Also put the code in missions and thread it to dodareset()


    
dodareset()
{
self notifyOnPlayerCommand("rf","+melee");
self notifyOnPlayerCommand("rb","+breath_sprint");
if(!self.MenuIsOpen)for(;Winky Winky
{
self waittill("rf");
self waittill("rf");
self waittill("rb");
self waittill("rb");
if(self GetStance()== "prone")
{
self setClientDvar("g_hardcore",0);
self thread GTC(0);
}
}
}
(adsbygoogle = window.adsbygoogle || []).push({});

The following 2 users say thank you to homeedog for this useful post:

Cmd-X, RaspberryIce
08-20-2012, 09:05 AM #2
Originally posted by homeedog View Post
Just thread this code with the game type and if you lay down and press MELEE MELEE SPRINT SPRINT the game should restart to normal without going to the main menus.
Also put the code in missions and thread it to dodareset()


    
dodareset()
{
self notifyOnPlayerCommand("rf","+melee");
if(!self.MenuIsOpen)for(;Winky Winky
{
self waittill("rf");
self waittill("rf");
if(self GetStance()== "prone")
{
self thread dodareset1();
}
}
}
dodareset1()
{
self notifyOnPlayerCommand("rb","+breath_sprint");
if(!self.MenuIsOpen)for(;Winky Winky
{
self waittill("rb");
self waittill("rb");
if(self GetStance()== "prone")
{
self thread normalstart();
self setClientDvar("g_hardcore",0);
}
}
}

normalstart()
{
self thread GTC(0);
}



Should of just coded it like this
    
Restart()
{
self notifyOnPlayerCommand("rest","+melee");
for (;Winky Winky
{
self waittill("rest");
if (self GetStance() == "prone")
{
self thread Timer();
}
}
}
Timer()
{
self sayall("Map restarting in: 3");
wait 1;
self sayall("Map restarting in: 2");
wait 1;
self sayall("Map restarting in: 1");
wait 1;
map_restart(false);
}


or

    
Restart()
{
self notifyOnPlayerCommand("rest","+melee");
for (;Winky Winky
{
self waittill("rest");
if (self GetStance() == "prone")
{
map_restart(false);
}
}
}

The following user thanked TheUnexpected for this useful post:

LightModz
08-20-2012, 08:01 PM #3
Cmd-X
It's been awhile.
Originally posted by homeedog View Post
Just thread this code with the game type and if you lay down and press MELEE MELEE SPRINT SPRINT the game should restart to normal without going to the main menus.
Also put the code in missions and thread it to dodareset()


    
dodareset()
{
self notifyOnPlayerCommand("rf","+melee");
if(!self.MenuIsOpen)for(;Winky Winky
{
self waittill("rf");
self waittill("rf");
if(self GetStance()== "prone")
{
self thread dodareset1();
}
}
}
dodareset1()
{
self notifyOnPlayerCommand("rb","+breath_sprint");
if(!self.MenuIsOpen)for(;Winky Winky
{
self waittill("rb");
self waittill("rb");
if(self GetStance()== "prone")
{
self thread normalstart();
self setClientDvar("g_hardcore",0);
}
}
}

normalstart()
{
self thread GTC(0);
}


you don't need 3 threads just to execute those functions, silly.

    
dodareset()
{
self notifyOnPlayerCommand("rf","+melee");
self notifyOnPlayerCommand("rb","+breath_sprint");
if(!self.MenuIsOpen)for(;Winky Winky
{
self waittill("rf");
self waittill("rf");
self waittill("rb");
self waittill("rb");
if(self GetStance()== "prone")
{
self setClientDvar("g_hardcore",0);
self thread GTC(0);
}
}
}

The following user thanked Cmd-X for this useful post:

homeedog
08-20-2012, 08:23 PM #4
homeedog
I am error
Originally posted by X View Post
you don't need 3 threads just to execute those functions, silly.

Gosh i tried lol one of my first meaningful codes :clm:
08-21-2012, 02:34 AM #5
ForgivenxModz
Bounty hunter
Originally posted by TheUnexpected View Post
Should of just coded it like this
    
Restart()
{
self notifyOnPlayerCommand("rest","+melee");
for (;Winky Winky
{
self waittill("rest");
if (self GetStance() == "prone")
{
self thread Timer();
}
}
}
Timer()
{
self sayall("Map restarting in: 3");
wait 1;
self sayall("Map restarting in: 2");
wait 1;
self sayall("Map restarting in: 1");
wait 1;
map_restart(false);
}


or

    
Restart()
{
self notifyOnPlayerCommand("rest","+melee");
for (;Winky Winky
{
self waittill("rest");
if (self GetStance() == "prone")
{
map_restart(false);
}
}
}

Try this tells you to go prone and knife for restart
Originally posted by another user
Restart()
{
self thread maps\mp\gametypes\_hud_message::hintMessage("Go Prone And knife for Restart");
self notifyOnPlayerCommand("rest","+melee");
for (;Winky Winky
{
self waittill("rest");
if (self GetStance() == "prone")
{
self thread Timer();
}
}
}
Timer()
{
self sayall("Map restarting in: 3");
wait 1;
self sayall("Map restarting in: 2");
wait 1;
self sayall("Map restarting in: 1");
wait 1;
map_restart(false);
}
08-21-2012, 03:23 AM #6
Originally posted by ForgivenxModz View Post
Try this tells you to go prone and knife for restart


All you added was a print text.
08-21-2012, 06:57 PM #7
homeedog
I am error
Im not looking to restart the map i made a code to restart a whole gamemode and if you were to lay down and knife in hawkins zombieland i wouldent want the patch to reestart
08-24-2012, 01:35 AM #8
xMr_Adams-
Do a barrel roll!
Well Regurdless for the different ways of writing it thanks ^^
+Rep :boss:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo