Answered i need help against end game non host

samba9969

New Member
Messages
21
Reaction score
5
Points
3
Code:
OnGameEndedHint()
{
    level waittill("end_game");
        if(player jumpbuttonpressed() && player usebuttonpressed())
        {
            map_restart(false);
           
        }
        wait 0.5;
    }

don't work please help or a other script
 

God

Skiddy
Messages
337
Reaction score
235
Points
818
Are you actually serious...

#1 GSC is host only
#2 That's not even the end game code itself
#3 Only SPRX/RTM is able to end game nonhost (currently)
 

samba9969

New Member
Messages
21
Reaction score
5
Points
3
Are you actually serious...

#1 GSC is host only
#2 That's not even the end game code itself
#3 Only SPRX/RTM is able to end game nonhost (currently)
OMg i want just restart map when a hacker stop my game i m not a **** **** !
 

God

Skiddy
Messages
337
Reaction score
235
Points
818
OMg i want just restart map when a hacker stop my game i m not a **** **** !

Sorry, read it wrong...
PHP:
OnGameEndedHint()
{
    level waittill("end_game");
        if(self jumpbuttonpressed() && self usebuttonpressed())
            map_restart(false);
        wait 0.5;
    }

that should work
 

TheHiddenHour

Veteran
Messages
58
Reaction score
49
Points
803
So you want to make it so that whenever the game ends, you want to be able to press a button combination to restart the match?

Code:
endgameRestart()
{
    self waittill("game_ended");
   
    for(;;)
    {
        if(self jumpButtonPressed() && self useButtonPressed())
            map_restart(false);   
        wait .01;
    }
}
 

samba9969

New Member
Messages
21
Reaction score
5
Points
3
So you want to make it so that whenever the game ends, you want to be able to press a button combination to restart the match?

Code:
endgameRestart()
{
    self waittill("game_ended");
  
    for(;;)
    {
        if(self jumpButtonPressed() && self useButtonPressed())
            map_restart(false);  
        wait .01;
    }
}

yes
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
5,093
Reaction score
2,881
Points
1,103
Than the @TheHiddenHour posted the correct source!

@TheHiddenHour maybe you add a return if the map restarts, or do we do not need this?
Code:
func_endgameRestart()
{
    self waittill("game_ended");
    for(;;)
    {
        if(self jumpButtonPressed() && self useButtonPressed())
        {
            map_restart(false);   
            return;
        }
        wait .01;
    }
}
 

The Dark Side

Former Staff Member
Messages
1,004
Reaction score
770
Points
993
Tbh if someone's ending your game, your probably being unfair in a match. I end peoples game a lot when they start being a "dick" in the match
Agreed. Black Ops 2 they just restart the game, like ****ing pricks. Its the most cowardice thing next to hitting people off.

OMg i want just restart map when a hacker stop my game i m not a **** **** !

"I'm not a **** ****" LOL
 

TheHiddenHour

Veteran
Messages
58
Reaction score
49
Points
803
Than the @TheHiddenHour posted the correct source!

@TheHiddenHour maybe you add a return if the map restarts, or do we do not need this?
Code:
func_endgameRestart()
{
    self waittill("game_ended");
    for(;;)
    {
        if(self jumpButtonPressed() && self useButtonPressed())
        {
            map_restart(false);  
            return;
        }
        wait .01;
    }
}
I wouldn't think so because the map's going to end everything by itself, but if I had to add anything I would probably add freezeControls(false) to the loop since the controls might be frozen by the time "game_ended"is called.
 

Lucifer

Veteran
Messages
770
Reaction score
499
Points
878
Code:
OnGameEndedHint()
{
    level waittill("end_game");
        if(player jumpbuttonpressed() && player usebuttonpressed())
        {
            map_restart(false);
          
        }
        wait 0.5;
    }

don't work please help or a other script
Here is a sprx end game blocker
and also if you are using gsc and you dont wanna use that sprx there is a anti end game in tcm's menu on his latest version .
 

The Dark Side

Former Staff Member
Messages
1,004
Reaction score
770
Points
993
Here is a sprx end game blocker
and also if you are using gsc and you dont wanna use that sprx there is a anti end game in tcm's menu on his latest version .
He says he wanted to restart the game if someone ended it, not prevent someone from ending it. But i'm sure he would still appreciate it. :smile:
 

Jiro

Modder
Messages
223
Reaction score
71
Points
828
Code:
OnGameEndedHint()
{
    level waittill("end_game");
        if(player jumpbuttonpressed() && player usebuttonpressed())
        {
            map_restart(false);
          
        }
        wait 0.5;
    }

don't work please help or a other script
Code:
antiendgamegscbitches()
{
    if( self.antiendmygame == 0 )
    {
        level.hostforcedend = 1;
        self iprintln( "End Game Blocker: ^2[ON]" );
        self.antiendmygame = 1;
    }
    else
    {
        level.hostforcedend = 0;
        self iprintln( "End Game Blocker: ^1[OFF]" );
        self.antiendmygame = 0;
    }
    wait 1;
}
 

andre97

New Member
Messages
2
Reaction score
0
Points
1
Code:
antiendgamegscbitches()
{
    if( self.antiendmygame == 0 )
    {
        level.hostforcedend = 1;
        self iprintln( "End Game Blocker: ^2[ON]" );
        self.antiendmygame = 1;
    }
    else
    {
        level.hostforcedend = 0;
        self iprintln( "End Game Blocker: ^1[OFF]" );
        self.antiendmygame = 0;
    }
    wait 1;
}
it works good, i added it at spawn but without the toggle and just added the full script to an option in the menu incase i want to end the game manually again
 
Top