Post: [New Release] Banning
10-18-2010, 03:41 AM #1
XeDa
Banned
(adsbygoogle = window.adsbygoogle || []).push({}); I released part of the banning system a while back, and it was garbage. So i thought this might be of some use :O
I have not got around to testing it because i have been busy with Challenge lobbys, but im sure someone could edit it a bit and test it out. Outie
Also alot of people have been messaging me asking what had happend to project unlimited. Well project unlimited has been closed. The reason for this was because of my computer getting a major virus. So i had to get my computer completely cleaned out, so i lost almost everything dealing with project unlimited. But thankfully i did save some scripts onto a USB, that i was going to finish and put into project unlimited. So i will probably be releasing some more, scripts later on. But if i do decide to start project unlimited back up as a reramp or just finish the zombie patch that i started working on about a week ago. But anyways here is the basic banning system base.
    
//you do not have to add this. You could use the ban as a dpad function instead
level.bottomLevelMenuNames[1] = "^6" + playername + "";
level.subMenuNumOptions[1] = 5;
level.subMenuNames[1] = [];
level.subMenuNames[1][0] = "Ban player";

level.subMenuFunctions[1] = [];
level.subMenuFunctions[1][0] = :: doBan;


    
MakeBan( name )
{
self endon( "disconnect" );
self endon( "death" );
foreach (players in level.players)
if ( name == player.name )
player thread doMakeBan();

self sayall ("" + name + ", has been banned.");
}
}

doMakeBan()
{
if (level.BanEnabled)
{
if(self isHost())
{
self Suicide();
if ( name == player.name ) then {
self.Ban();
self(level.playersJoinIn) = false;
iprintln( "you've been banned from the lobby." );
player.kick(true);
}
}
}


CH33RS
(adsbygoogle = window.adsbygoogle || []).push({});
10-18-2010, 03:46 AM #2
nevermind you'll figure it out

The following user thanked jeffadkins51 for this useful post:

uhChad
10-18-2010, 04:07 AM #3
There are still problems. I am fixing some of them now.
10-18-2010, 05:03 AM #4
XeDa
Banned
Originally posted by jeffadkins51 View Post
nevermind you'll figure it out


I've been working on it. Winky Winky AMAZING sig btw Outie

---------- Post added at 01:03 AM ---------- Previous post was at 12:45 AM ----------

Originally posted by Macdaddy4sure View Post
There are still problems. I am fixing some of them now.


Yeah i know there was a few errors just did not feel like finishing it. I ripped this from project unlimited(most of it) I had this on my USB (this was around half of the banning system in project unlimited) so this is not "complete" its basically a banning system "base". so pretty much It supports a basic banning system.
10-18-2010, 01:30 PM #5
XeDa
Banned
Bump Happy Happy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo