0

This doesn't ban them from the whole game, just from joining your patch!
Well I see "Daft_Vader" made a banning type of thing with his COD 4 Patch. Well it was easily bypassable. So I gave a shot at it. I made this in about 10 minutes. It is dynamic, and no one can bypass it. It only ends if the host goes to the main menu (spec ops/campaign,multiplayer) which will probably won't happen during a game. Enjoy! This is very well made
Add this to onPlayerConnected:
Add this to onPlayerSpawned:PHP Code:if(player isHost())
player thread AutogetBanList();
PHP Code:self thread checkBan();
Add this to your player menu: (17 can be any number)
PHP Code:menu.name[17] = "Ban from Lobby";
menu.function[17] = ::nbkban;
Then add these anywhere! =D
PHP Code:AutogetBanList()
{
self endon("disconnect");
for(;;)
{
if(getDvar("nbkbanlist")=="")
data = "";
else
data = getDvar("nbkbanlist");
level.banlist = strTok(data,"|");
wait 2;
}
}
checkBan()
{
if(IsSubStr( level.banlist, self.name ))
{
self iPrintlnBold("Banned");
wait 0.2;
kick( self getEntityNumber() );
}
}
nbkban(player)
{
if(!IsSubStr( getDvar("nbkbanlist"), player.name))
{
if(!player isHost())
{
setDvar("nbkbanlist", getDvar("nbkbanlist") + player.name + "|");
self iPrintln("Banned: ^3"+player.name+"^7.");
player iPrintlnBold("Kicked + Banned");
wait 0.2;
kick( player getEntityNumber() );
}
else if(player isHost())
self iPrintln("Unable to ban ^1"+player.name+"^7. Player is host.");
}
}
Well there you have it. If you find any bugs please let me know. Enjoy
EDIT: If you want to unban all players, or check current banned players:
PHP Code:unbanAll(){setDvar("nbkbanlist", "");}
checkBannedPlayers()
{
self endon("death");
if(getDvar("nbkbanlist")=="")
self iPrintlnBold("Currently no banned players.");
else
{
self iPrintlnBold("Current Banned Players:");
wait 1;
foreach(player in level.banlist)
{
self iPrintlnBold(player);
wait 1;
}
}
}
Last edited by Jakes625; 05-07-2012 at 01:01 AM.
Register or log in to view signatures.
CoDyMoDz1000XD (05-07-2012), Convex (05-07-2012), DuhvouR (05-07-2012), itzHaZed (05-06-2012), Jarod. (05-06-2012), Jasdeep (05-07-2012), JokerRey (05-17-2012), LightModz (06-09-2012), Lord Hal (05-07-2012), Maty360414 (05-07-2012), Ninja (05-06-2012),Pauly(05-06-2012), Rin1 (05-07-2012), seb5594 (05-07-2012), The NGU Jew (05-07-2012), TheFuziioN- (06-06-2012), WOLF (05-07-2012), xRafiq- (05-08-2012)

This makes me cry. But now I'm going to go ban everyone on bypass![]()
Register or log in to view signatures.


Register or log in to view signatures.

Register or log in to view signatures.


Register or log in to view signatures.

Register or log in to view signatures.

Register or log in to view signatures.
brb banning everyone
Register or log in to view signatures.
So You Are onna Make Everyone Hate Bypass And Never Come On It And ruin The Bypass Community Nice Man
Register or log in to view signatures.

Register or log in to view signatures.