Ulysses

General => Developers Corner => Topic started by: Livaco on April 04, 2015, 07:28:20 AM

Title: PermaBan v1.0
Post by: Livaco on April 04, 2015, 07:28:20 AM
PermaBan v1.0
PermaBan Is A Command I Created That Bans A Target Forvever. This Is A Useless Command Because Of The Infinate Time In Regular Ban.

Commands
ulx permaban
ulx.permaban
!permaban

How To Install
1. Download The Attachment At The Bottom
2. Extract The Folder To The Addon Folder (NOT THE .ZIP)
3. Close The File And Play With It Installed

Helpers

ZMaster
Aaron113
syst3M4TiK
MrPresident

Name Decider
syst3M4TiK

Thanks And Please Report Anay Errors That You Get

Do Not Under Anay Sercumstances Repost This And Claim It Yours
Livaco Products©


EDIT: You Can Use This Command In Singleplayer If You Want

v1.1 Is Out And Please Note That The Attachment Is Linked To That
Title: Re: Ban-IP v1.0
Post by: Caustic Soda-Senpai on April 04, 2015, 07:35:35 AM
I'm confused.... why is it called BanIP if the IP of the player is never used, called..or banned?
Title: Re: Ban-IP v1.0
Post by: Livaco on April 04, 2015, 08:06:43 AM
I'm confused.... why is it called BanIP if the IP of the player is never used, called..or banned?
Theirs No Other Name I Could Think Of
Title: Re: Ban-IP v1.0
Post by: XxLMM13xX on April 04, 2015, 09:52:30 AM
So there is no way to ban a ip you get? Only bans a player?
Title: Re: Ban-IP v1.0
Post by: Livaco on April 04, 2015, 10:07:37 AM
So there is no way to ban a ip you get? Only bans a player?
Basicley Yes.
Title: Re: Ban-IP v1.0
Post by: Caustic Soda-Senpai on April 04, 2015, 10:17:49 AM
So it's a misleading name. Should be called permban
Title: Re: Ban-IP v1.0
Post by: Livaco on April 04, 2015, 10:27:09 AM
So it's a misleading name. Should be called permban
And That's The New Name, Il Update It Thx
Title: Re: Ban-IP v1.0
Post by: Buzzkill on April 04, 2015, 10:46:47 AM
No offense, but this is exceptionally confusing.

"ulx banip" is already used by the ban by IP functionality of Cobalt77's fairly popular "Custom Commands" module, so you're running into the potential for collision here.

Beyond that, if this has nothing to do with banning by IP, how is this any different than "ulx ban <target name> 0"   ?

You listed the ULX folder structure incorrectly.  It should be garrysmod/addons/ULX/lua/ulx/modules/sh  (you missed the lua).  You should also avoid installing your modules directly into the ULX folder structure.  You should create the required ULX folder structure in your own addon folder (ie, /addons/permaban/lua/ulx/modules/sh), otherwise you create an unnecessary and potentially problematic dependency on the ULX addon folders.  What if someone clears out and re-installs ULX without remembering that he/she had to deploy your addon directly to the ULX folder?





Title: Re: Ban-IP v1.0
Post by: Livaco on April 04, 2015, 11:01:59 AM
No offense, but this is exceptionally confusing.

"ulx banip" is already used by the ban by IP functionality of Cobalt77's fairly popular "Custom Commands" module, so you're running into the potential for collision here.

Beyond that, if this has nothing to do with banning by IP, how is this any different than "ulx ban <target name> 0"   ?
Oh Your Right. Its Permaban Anayway Now So Lets Hope That It Will Not Colide With It. Plus I Said its A Useless Command

EDIT: The Reson I Didn't Create A Folder As Its Own Addon Is Because 1. No Idea How 2. I Doint Know How To Add A Attachment Download
Title: Re: Ban-IP v1.0
Post by: Buzzkill on April 04, 2015, 11:02:34 AM
Oh Your Right. Its Permaban Anayway Now So Lets Hope That It Will Not Colide With It. Plus I Said its A Useless Command

Then.... why?
Title: Re: Ban-IP v1.0
Post by: Livaco on April 04, 2015, 11:06:00 AM
Then.... why?
What The Command Creatage. I Wanted To Get Into Lua And Post A Addon For ULX And I Had No Idea Of LUA At The Time So I Decided To Create A Useless Command That Bans Players Forever
Title: Re: PermaBan v1.0
Post by: Buzzkill on April 04, 2015, 01:08:23 PM
Got it.  Just making sure I understood the intent.
Title: Re: PermaBan v1.0
Post by: MrPresident on April 04, 2015, 03:40:26 PM
I'm glad you got into lua, but I'm a little confused as to why you felt the need to release something that can already be done with stock lua commands? Either way, I hope you continue to learn.
Title: Re: PermaBan v1.0
Post by: XxLMM13xX on April 04, 2015, 04:25:05 PM
I'm glad you got into lua, but I'm a little confused as to why you felt the need to release something that can already be done with stock lua commands? Either way, I hope you continue to learn.

I think i get it now! He made a command that we can now type !permaban <player> BECAUSE

Instead of doing !ban <player> 0 BECAUSE

THis is because typing a who 0 can be a lot of work... Just messing with ya cool command
Title: Re: PermaBan v1.0
Post by: Livaco on April 12, 2015, 03:46:50 AM
Ive Added A Attachment So That You Allredy Have The Files Sorted Out