• User grouptable?
    4 replies, posted
[lua]if ply:GetUserGroup == "member" then[/lua] How would I make this so I could Allow: member, admin, superadmin, vip, vip+ ? [lua]AllowedUserGroups = { "Vip", "vip+", "admin", "member", "superadmin" }[/lua] Something like this?
table.HasValue
* Cue sarcastic comment about being a Dev * But uh, take your usergroups table and then do an in pairs loop which checks if the player is one of those UserGroups. That ought to do it
[QUOTE=Exho;46234195]* Cue sarcastic comment about being a Dev * But uh, take your usergroups table and then do an in pairs loop which checks if the player is one of those UserGroups. That ought to do it[/QUOTE] * Cue sarcastic comment about you selling huds on Script Fodder * Nice job man!
[QUOTE=SwikCoder;46234254]* Cue sarcastic comment about you selling huds on Script Fodder * Nice job man![/QUOTE] Ooh saucy. You got 2 examples of how to do what you want, enjoy
Sorry, you need to Log In to post a reply to this thread.