Hey guys, I've got a function which goes like this:
[CODE] function CheckIfAdmin( ply )
if ply:IsUserGroup("superadmin") or ply:IsUserGroup("supervisor") or ply:IsUserGroup("supervisordonator") or ply:IsUserGroup("supervisorvip") or ply:IsUserGroup("supervisorvip+") or ply:IsUserGroup("senioradmin") or ply:IsUserGroup("senioradmindonator")or ply:IsUserGroup("senioradminvip")or ply:IsUserGroup("senioradminvip+") then
return true
else
return false
end
end[/CODE]
If I call it, And im a user, it still gives out true..
this is how i call it
[CODE] if CheckIfAdmin( ply ) then
return
end[/CODE]
Sorry, you need to Log In to post a reply to this thread.