• Making player admin through LUA
    4 replies, posted
So, I want to make it so that a player will be set to admin if the player variable ._AdminLevel > 0... so... if (player._AdminLevel > 0) then What to insert here? end
[QUOTE=superdodo12;39732590]So, I want to make it so that a player will be set to admin if the player variable ._AdminLevel > 0... so... if (player._AdminLevel > 0) then What to insert here? end[/QUOTE] Why not just add them to the users.txt file?
ply:SetUserGroup( "superadmin" )
[lua] RunConsoleCommand("ulx", "adduserid" , ply:SteamID(), "usergroup")[/lua] This is the way I do it, I'm sure there's better ways of going about it.
Thank You McDunkable!
Sorry, you need to Log In to post a reply to this thread.