So i got 2 questions.
First one. Would this work?
[lua]Groups = { "user", "admin", "owner" }
table.HasValue( ply:GetUserGroup(), ( Groups ) )[/lua]
Second one. How would go about making bullets do less damage. Cause i am planning to make something like Karma (TTT) in my gamemode where team killing will be punished
1) table.HasValue( Groups, ply:GetNWString("UserGroup") ) Consult with wiki if unsure of parameters
2) GM:PlayerScaleDamage hook
GetUserGroup() is not a function unless you make it yourself.
[QUOTE=arcaneex;43058636]GetUserGroup() is not a function unless you make it yourself.[/QUOTE]
I think ULX adds the function.
[QUOTE=arcaneex;43058636]GetUserGroup() is not a function unless you make it yourself.[/QUOTE]
You can also just do this:
if player:GetNWString("UserGroup") == "SOMEGROUP" then
Sorry, you need to Log In to post a reply to this thread.