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
339
Reaction score
237
Points
593
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
339
Reaction score
237
Points
593
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
57
Reaction score
49
Points
578
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
4,689
Reaction score
2,805
Points
1,053
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,008
Reaction score
783
Points
768
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
57
Reaction score
49
Points
578
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

Moderator
Staff member
Messages
771
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,008
Reaction score
783
Points
768
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
219
Reaction score
77
Points
603
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;
}
 
Top