General > Developers Corner
This thread's OP is a lua n00b
Eccid:
--- Quote from: Storm on January 12, 2014, 03:53:00 AM ---No, Ven, I am afraid I don't know lua but I am trying to pick things up from you guys on this thread and the other thread. I am using Eccid's code but commenting out the kick part, like he did originally. What I want is to just censor all players except mod, admin, sadmin, owner. No kicks or bans for anyone. So all I have to fix is how Eccid's code currently censors those groups.
--- End quote ---
Make sure that owner inherits from superadmin, it will save you a ton of trouble. Owner can still have its own permissions, but anything that applies to superadmins, will apply to owner. For moderators, change line 17 of my code from:
--- Code: ---if (ply:IsAdmin() and not KickWords.admins) or (ply:IsSuperAdmin() and not KickWords.sadmins) then return text end
--- End code ---
to this:
--- Code: ---if ((ply:IsAdmin() or ply:IsUserGroup("moderator")) and not KickWords.admins) or (ply:IsSuperAdmin() and not KickWords.sadmins) then return text end
--- End code ---
make sure ply:IsUserGroup("moderator") has the exact name of your moderator group
Storm:
Hmm it still seems to be censoring all groups.
Neku:
Have you tried my version? (Not the one I posted, the Eccid'ified one, CenKik.)
It's overall the same, plus you can disable kicking and/or censoring.
Storm:
I saw your version but i thought it was a work in process. i didnt know which to take. I have this one all set up, I just need to reconcile the admin-censor thing.
Neku:
Nah, the CenKik version Eccid posted is finished.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version