• Good's Super Simple Beta List System [LightWeight]
    3 replies, posted
I was bored so I just made a simple beta list system people who have 0 knowledge of glua this would probably be useful for. The only problem is that it runs of the "PlayerSpawn" hook instead of "PlayerConnect" hook. [CODE] Download Link! https://mega.co.nz/#!5N4UTJID!RovZLtlYk3G2MG4w2xBeA6RyOioa4OAHxMad4IovVmI[/CODE] All you have to do is drag and drop it into the your addons folder and configure it took your likings. Directory: betasystem/lua/autorun/sv_sysbeta.lua
I really had no idea what you meant by 'beta list' but after looking at the code it makes a bit more sense: it's a whitelist for players who can join. EDIT: ARGH MY EYES, WHY IS BetaList GLOBAL? AND THE FUNCTION TOO! ARRRRGH
Use the CheckPassword hook instead, no point in a player going through all the downloads just to be rejected.
[QUOTE=code_gs;46568883]Use the CheckPassword hook instead, no point in a player going through all the downloads just to be rejected.[/QUOTE] [CODE] local AllowedPlayers = { [ "bob" ] = 76561198071193163, [ "joe" ] = 76561198027712965 } local function CheckAllowed( id, ip, svpw, clpw, name ) local tabn = AllowedPlayers[ id ] if ( tabn ) then print( name .. ' has been authorized under "' .. tabn .. '" (' .. id .. ')' ) else print( 'Rejected "' .. name .. '" (' .. ip .. ')' ) end end hook.Add( "CheckPassword", "CheckAllowed", CheckAllowed ) [/CODE] wait i just realized tabn is the 64, so it will print the 64 twice but i am to lazy
Sorry, you need to Log In to post a reply to this thread.