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), Dr. DevouR (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)

Do this to every trickshotter on bypass :carling:
Register or log in to view signatures.
Register or log in to view signatures.
Is it possible on 1.13 ??
Register or log in to view signatures.
Register or log in to view signatures.
omg this game is now fully destroyed
Register or log in to view signatures.
ive got jokerreys menu and when i ban people it dont bam them any ideas im assuming hes got the ban thing rihg tin his edit is there certain things i need to do?
Register or log in to view signatures.

Register or log in to view signatures.
goin to put this in my m8s patch xD Nice![]()
Register or log in to view signatures.

Register or log in to view signatures.
does putting my name on a patch but still leaving the credits part and other info about the patch maker make me a leecher ?
---------- Post added at 09:28 PM ---------- Previous post was at 09:26 PM ----------
sorry for quoting that wrong im still new to this -.-
Register or log in to view signatures.