#How to detect if a player is an admin
1 messages · Page 1 of 1 (latest)
_G.Adonis.CheckAdmin(playerObject)
-> true if level > 0
-> false if non-admin (level <= 0)
Or to get a specific admin level use _G.Adonis.GetLevel(playerObject) -> the admin level of a player (number)
its not a boolean
do i put in inside the plugin thing?
@deft stratus
if inside of a plug-in just do server.Admin.CheckAdmin
If external script use the _G variant
This only works on the server btw
dw
task.wait()
if _G.Adonis.CheckAdmin(player) == 1 then
print("Admin")
else
print("No admin")
end
end)```
v
_G.Adonis has yet to be set yet
🤔
you may have to repeat task.wait() until _G and _G.Adonis
so it will detect all of these rank?
Yes