Post: Anti Join?
02-23-2016, 02:06 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I have seen some people ask around about this and there was the password method on MW2 but for Bo2 it does not work, Anyone know a method of locking the lobby or making it so no one can join?
(adsbygoogle = window.adsbygoogle || []).push({});
02-23-2016, 02:15 AM #2
SC58
Former Staff
the dvar/function is removed, if u wanted to do it just waittil the string "begin" and have it kick anyone trying to join in once u enabled the bool value of locking the game as that notify only notifys when a client is joining in so once u get whoever u want it enable that and kick clients on begin :p

as that is pretty much doing the same thing as the function would be doing if it was in the game

The following user thanked SC58 for this useful post:

Im_YouViolateMe
02-23-2016, 04:39 AM #3
Im_YouViolateMe
NextGenUpdate Elite
Originally posted by SC58 View Post
the dvar/function is removed, if u wanted to do it just waittil the string "begin" and have it kick anyone trying to join in once u enabled the bool value of locking the game as that notify only notifys when a client is joining in so once u get whoever u want it enable that and kick clients on begin :p

as that is pretty much doing the same thing as the function would be doing if it was in the game


In Dynamic v3, this is how I had it set up. I would just instantly kick anyone if Anti-Join was on. Really simple workaround.
02-23-2016, 04:56 AM #4
SC58
Former Staff
Originally posted by YouViolateMe View Post
In Dynamic v3, this is how I had it set up. I would just instantly kick anyone if Anti-Join was on. Really simple workaround.


or if u know ppc/c/c++ the main function is called SV_DirectConnect that g_password links to. u could hook into the function where it could check at or remake the whole function and add the line of code in there if u wanted it the proper way the dvar works but it just doing what i said u can do/ like u where doing
02-23-2016, 04:59 AM #5
Im_YouViolateMe
NextGenUpdate Elite
Originally posted by SC58 View Post
or if u know ppc/c/c++ the main function is called SV_DirectConnect that g_password links to. u could hook into the function where it could check at or remake the whole function and add the line of code in there if u wanted it the proper way the dvar works but it just doing what i said u can do/ like u where doing


Lol I'm not that advanced. The only languages I know are GSC, C#, Lua, and PHP. I'm just starting to get into memory and reverse engineering.
02-23-2016, 05:03 AM #6
SC58
Former Staff
Originally posted by YouViolateMe View Post
Lol I'm not that advanced. The only languages I know are GSC, C#, Lua, and PHP. I'm just starting to get into memory and reverse engineering.


u can do more if u memory edit like game functions u can't call with gsc u can call with gsc like adding a new gsc function into the game or getting a pointless/removed gsc function and making it like callfunction(type, ....) type would be a enum like 1 = iprintln for example u can already call that but if u couldn't u could make you own gsc function to call any function in the game elf :p i thought bout making a sprx for that but im not to bother tbh i don't use gsc but if i did this would be sick to have but u would have to use the sprx for the function to exec

The following user thanked SC58 for this useful post:

Im_YouViolateMe
03-04-2016, 06:28 AM #7
function call "Real Anti-Join" :: anti join);
add this code in:
onPlayerConnect()
{
for(;Winky Winky
{
if (isDefined(level.antijoin))
{
if (level.antijoin) kick(player GetEntityNumber());
else player thread onPlayerSpawned();
}
else player thread onPlayerSpawned();
}
}
03-05-2016, 11:57 PM #8
BullyWiiPlaza
Climbing up the ladder
The idea is to kick everyone that joins when the mod is on. It should be an easy script to write

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo