I did something like this
[lua]
MySteamIDTable = {
"STEAM_0:1:0000000",
"STEAM_0:1:0000000",
"STEAM_0:1:0000000",
}
function CheckSteamID( steamid )
if( table.HasValue( MySteamIDTable, steamid ) ) then
return true;
else
return false;
end
end
– Example function
function CanIDie( ply, cmd, arg )
local succ = CheckSteamID( ply:SteamID() );
if( succ ) then
ply:Slay()
end
end
concommand.Add( “canidie”, CanIDie ) [/lua]
That’s if you want a system that only certain SteamIDs can use, but you can use any of the other code above. Pointless though when you can just do a simple if statement.