Hi. I’m trying to create a meta function to detect the following ranks I put in there. Such as superadmin, or admin. And well, it’s not turning out the way I want. I put k,v pairs to test and see if it does detect the players and there groups properly.
But it just isn’t working. Any help would be greatly appreciated. Here’s what I got so far. Both shared and server side file in code quote below.
local meta = FindMetaTable( "Player" ) function meta:IsAdminP() self:IsUserGroup("admin") self:IsUserGroup("doubleadmin") self:IsUserGroup("superadmin") end
Using k v to test and see if it’s working.
Which it’s not. >.>
for k,v in pairs(player.GetAll()) do if v:IsAdminP() then v:Kill() end end