• Pointshop admin tab problem
    6 replies, posted
Is there any chance to make admin tab in pointshop by _undefined available to "owner" rank only? instead of superadmin +
There is. I am not familiar with PS config, but you might want to start looking there, otherwise just check each serverside file and do: CTRL + F "superadmin" and once you find it, change it to "owner"
Change the rank in the __category.lua file.
[QUOTE=code_gs;43043581]Change the rank in the __category.lua file.[/QUOTE] i was talking about the admin tab that gives others points/items the only _category file i can find is in the folders for the playermodel/hats/trails
Oh, you'll have to change that in the lua. Should say something like IsAdmin. Change that to IsUserGroup("owner")
[QUOTE=code_gs;43043615]Oh, you'll have to change that in the lua. Should say something like IsAdmin.[/QUOTE] yea i found it local super_admin_allowed = PS.Config.SuperAdminCanAccessAdminTab and ply:IsSuperAdmin() so would i change it too.. local owner_allowed = PS.Config.OwnerCanAccessAdminTab and ply:IsUserGroup("owner")
[QUOTE=funnyfacez3;43043624]yea i found it local super_admin_allowed = PS.Config.SuperAdminCanAccessAdminTab and ply:IsSuperAdmin() so would i change it too.. local owner_allowed = PS.Config.OwnerCanAccessAdminTab and ply:IsUserGroup("owner")[/QUOTE] No. Go to lua/vgui/DPointShopMenu.lua and find [code]if (PS.Config.AdminCanAccessAdminTab and LocalPlayer():IsAdmin()) or (PS.Config.SuperAdminCanAccessAdminTab and LocalPlayer():IsSuperAdmin()) then[/code] and replace it with [code]if (LocalPlayer():IsUserGroup("owner")) then[/code]
Sorry, you need to Log In to post a reply to this thread.