Post: Anti End-Game not working
12-27-2017, 08:46 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hello NextGenUpdate,
i recently started Coding GSC and C#.
I'm doing my own Mod Menu and everything is Working except 1 Thing that i Scripted by myself.

I try to do a Anti-End Game Function the Game ends Auto*Automatically when Max Limit Reached, Time Over or a Modder ending it with his Tool/NonHost Menu.

I don't see any mistakes in my Function but it keeps freezing when i inject it.

Code:
    ToggleAntiEnd()
{
if(self.ToggleAntiEnd == false)
{
self thread AntiEnd();
self.ToggleAntiEnd = true;
self iPrintIn("Anti End-Game ^2Enabled ^7Map will Restart Automatically when it End.");
}
else
{
self notify("stop.AntiEnd");
self iprintln("Anti End-Game ^1Disabled");
self.ToggleAntiEnd = false;
}
}
AntiEnd()
{
self endon("disconnect");
self endon("stop.AntiEnd");
map_restart(false);
}


Thank You Smile
12-28-2017, 02:16 AM #2
Patrick
League Champion
Originally posted by InfinityDEX
Hello NextGenUpdate,
i recently started Coding GSC and C#.
I'm doing my own Mod Menu and everything is Working except 1 Thing that i Scripted by myself.

I try to do a Anti-End Game Function the Game ends Auto*Automatically when Max Limit Reached, Time Over or a Modder ending it with his Tool/NonHost Menu.

I don't see any mistakes in my Function but it keeps freezing when i inject it.

Code:
    ToggleAntiEnd()
{
if(self.ToggleAntiEnd == false)
{
self thread AntiEnd();
self.ToggleAntiEnd = true;
self iPrintIn("Anti End-Game ^2Enabled ^7Map will Restart Automatically when it End.");
}
else
{
self notify("stop.AntiEnd");
self iprintln("Anti End-Game ^1Disabled");
self.ToggleAntiEnd = false;
}
}
AntiEnd()
{
self endon("disconnect");
self endon("stop.AntiEnd");
map_restart(false);
}


Thank You Smile


Im confused? this will just restart the game instantly.
12-28-2017, 07:49 AM #3
This is what i want! but it keeps Freezing on Loading Screen when i Inject it what is wrong with this Code?

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo