Posted April 29, 2017 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 namebansnamebans Download: Pastebin - nameban Krazychic, Takka, Kavawuvi and 1 other like this Share this post Link to post Share on other sites
Posted June 1, 2017 I Put the lua scrip and all well but when placing the command nameban tells me command unknown helpme please! thanks Share this post Link to post Share on other sites
Posted June 2, 2017 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) Takka likes this Share this post Link to post Share on other sites
Posted June 2, 2017 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