General > Developers Corner

Name Checker/Kick

<< < (3/6) > >>

MrPresident:
He's right. You're not allowed to change a client's name anymore.

As for printing a message to admins, why don't you just use ULX's built in asay? It would automatically send the message to all admins.

I just installed windows on this laptop so I don't have my copies of ULib/ULX on here yet to reference. I believe it's ulx.asay but I don't remember the arguements off the top of my head.

you can find it in chat.lua in your ULX directory.

Decicus:
I'll take a look at it, MrPresident. Thanks for the tip.

Storm:
Mr President, this is exactly what I need!! But I am not too good at lua. Do I just create a lua file and copy what is in your pastebin or do I put it in with another existing lua file? Thanks!

Decicus:
Hey Storm. I have a download for this, here: https://www.dropbox.com/s/sr91sp1nx8jhhs5/bnk.lua
Just add the Lua file into <GMod server directory>\lua\autorun\server\
Edit: Now also includes the function to kick if someone changes their name to something else that includes one of the words inside "kickstrings".

Add words in the "kickstrings" table. Be careful if you're adding new words though. Let's say you add the word "low" (even though that word is not bad itself, just an example) to the list of "kickstrings". Then players with the names "slow", "slower", "lower" and so on will also be kicked.

Storm:
Wow thanks so much! It works perfectly. You should make this an official addon!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version