• More Users in one line (SteamID())
    3 replies, posted
[CODE] Users = {"STEAM_0:1:18835937", "STEAM_0:1:1783121"} function Core.UserCheck(ply) //if(ply:IsAdmin() or ply:IsSuperAdmin()) then if ply:SteamID() == Users then return true end return false end [/CODE] Someone know how to fix this. I know it's probably a little problem..
[lua] Users = {"STEAM_0:1:18835937", "STEAM_0:1:1783121"} function Core.UserCheck(ply) return table.HasValue(Users,ply:SteamID()) end[/lua]
[lua] Users = {"STEAM_0:1:18835937", "STEAM_0:1:1783121"} function Core.UserCheck(ply) //if(ply:IsAdmin() or ply:IsSuperAdmin()) then if table.HasValue(Users, ply:SteamID() ) then return true end return false end [/lua]
Thankyou techtuts0 for your fast reaction, Thanyou Lead4u, For resloving my whole code, it's fixed now.
Sorry, you need to Log In to post a reply to this thread.