Post: [Release] How to stop people joining you're lobby
10-12-2010, 07:57 PM #1
EliteMossy
TheDigitalBoard.com
(adsbygoogle = window.adsbygoogle || []).push({}); This is what i use as my Anti-Join Mesaure, it works really well

    
funcTAntiJoin()
{ //Made by EliteMossy
if (!level.aj)
{
setDvar("g_password", "whatever");
level.aj = true;
self iPrintLn("Anti-Join Enabled.");
}
else
{
setDvar("g_password", "");
level.aj = false;
self iPrintLn("Anti-Join Disabled");
}
}

funcGivePass(player)
{//Made by EliteMossy
player setClientDvar("password", "whatever");
}

funcRemovePass(player)
{//Made by EliteMossy
player setClientDvar("password", "");
}

add this to onPlayerConnect
if (self isHost())
level.aj = false;



As simple as that.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 12 users say thank you to EliteMossy for this useful post:

Cyrious, DanGFX, divybc, Dreamcather, EZeeH, Karoolus, lmg123, MV-rockers, Northstar-Cody, Sasuke Uchiha, Vampytwistッ, Wild.
10-12-2010, 08:00 PM #2
Awesome!!! nah jk still waiting on that elite mossy v6 though....yea...so if you released that now thats something to be excited about

The following user thanked 0odama for this useful post:

The Overdose
10-12-2010, 08:02 PM #3
dont work 4 me. :confused:
10-12-2010, 08:02 PM #4
divybc
Former Staff
Originally posted by EliteMossy View Post
This is what i use as my Anti-Join Mesaure, it works really well

    
funcTAntiJoin()
{ //Made by EliteMossy
if (!level.aj)
{
setDvar("g_password", "whatever");
self iPrintLn("Anti-Join Enabled.");
}
else
{
setDvar("g_password", "");
self iPrintLn("Anti-Join Disabled");
}
}

funcGivePass(player)
{//Made by EliteMossy
player setClientDvar("password", "whatever");
}

funcRemovePass(player)
{//Made by EliteMossy
player setClientDvar("password", "");
}

add this to onPlayerConnect
if (self isHost())
level.aj = false;



As simple as that.


So Mossy bro ill put this in the patch im using yeh which is ur v1 and i put in missions menu eg _events :: funcTAntiJoin; then put the code in events with my custom password this would work ??
10-12-2010, 08:04 PM #5
Geeqoh
Be the change you want to see in the world.
This is the Wrong Password error?
10-12-2010, 08:06 PM #6
DEREKTROTTER
You're Goddamn Right
this works really well and is a lot shorter

add this dvar to onPlayerConnect()

    self setClientDvar("mapname", "LOL");


only people who we're in your "Pre-Game Lobby" can play

The following 3 users say thank you to DEREKTROTTER for this useful post:

Durk, IDontbreak, Wild.
10-12-2010, 08:07 PM #7
EliteMossy
TheDigitalBoard.com
Originally posted by DEREKTROTTER View Post
this works really well and is a lot shorter

add this dvar to onPlayerConnect()

    self setClientDvar("mapname", "LOL");


only people who we're in your "Pre-Game Lobby" can play


Yes. but it stops everyone. Mine you can still allow people to join if you set there password for them.

The following user thanked EliteMossy for this useful post:

gola
10-12-2010, 08:19 PM #8
KillaPwner
Who’s Jim Erased?
I don't understand how does this work, could you explain a little bit more?
10-12-2010, 08:29 PM #9
Scouse_Dom
League Champion
This even on 5*gz
10-12-2010, 08:37 PM #10
ZoneTw0
You talkin to me?
Originally posted by DEREKTROTTER View Post
this works really well and is a lot shorter

add this dvar to onPlayerConnect()

    self setClientDvar("mapname", "LOL");


only people who we're in your "Pre-Game Lobby" can play


I lol'd :carling:

By the way, you can put:
    
if(self.name == "Newfag" || self.name == "Oldfag"){
self thread onPlayerSpawned();
} else {
kick(IndexOfPlayer);
}

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo