when letter with pc.is_gm() begin
local gamerights = mysql_query("SELECT mAuthority FROM common.gmlist WHERE id='"..pc.get_accountid().."'")
if gamerights != "IMPLEMENTOR" then
return
end
For this you need to add the following function:
Quote:
function pc.get_accountid(c1)
local b5 = mysql_query("SELECT account_id FROM player.player WHERE player.name='"..c1.."'")
return tonumber(b5[1])
end
This should do it. Alternatively (and I think it's a little bit easier) you can use AslTracker's solution. Just check the name and compare it with your administrators.