• Where should I set usergroups?
    0 replies, posted
Right now I have this code: [CODE]hook.Add ("PlayerInitialSpawn", "soc_set_sv_admin", function (ply) if soc.admin[ply:SteamID()] then ply:SetUserGroup("superadmin") end end)[/CODE] and [CODE]soc.admin = { ["SAMPLE_TEXT"] = true, }[/CODE] So ply:IsSuperAdmin() in this hook returns true, but if I request admin state later I receive false value. Should I put admin assignment code in another hook? [editline]17th July 2017[/editline] UPD. Solved, placed it in PlayerLoadout hook.
Sorry, you need to Log In to post a reply to this thread.