Welcome to Open Carnage

A resource for modders and technology enthusiasts; have a wander to see why we're worth the time! EST. 2012

Sign in to follow this  
Followers 0
Devieth

Nameban

This script will allow you to ban players via their names.  There is two ways you can ban them by their name, first is if they are in the server you can just enter their index number (1-16) and the second is buy manually typing in their name.  Players who are name banned with be given default hash bans lasting 1 minute (this is to prevent re-joing by spamming connect <ip:port> <password> which would allow them to rejoin with a default name.)

Commands:

Ban player index (1-16) or string (no spaces.)
nameban <index or string> <reason (only for index bans) >

 

Unbans the ban index of a player (found with namebans.)
nameunban <index>

 

Lists all current namebans
namebans

 


 

Share this post


Link to post
Share on other sites

Members of Open Carnage never see off-site ads.

8 hours ago, gabrielz69 said:

I Put the lua scrip and all well but when placing the command nameban tells me command unknown
helpme please!
thanks

In your SAPP init.txt file, you'll need to enable lua and use lua_load on the script.

lua 1
lua_load nameban

(make sure lua 1 is called first before you load any lua scripts)

 

Tucker933 likes this

Share this post


Link to post
Share on other sites
3 hours ago, 002 said:

In your SAPP init.txt file, you'll need to enable lua and use lua_load on the script.


lua 1
lua_load nameban

(make sure lua 1 is called first before you load any lua scripts)

 

I work thank you!!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0
  • Recently Browsing   0 members

    No registered users viewing this page.