Hallo
Ich habe Heute ein script gemacht wo mann sieht wer Admin ist.Er funzt leider nicht.Könnt ihr mier helfen
SQL
function admins ( thePlayer, command )
local playeracc = getPlayerAccount( thePlayer )
outputChatBox( "Online Admins:", thePlayer )
for index,v in ipairs( getElementsByType( "player" ) ) do
local Adminlevel = getAccountData(playeracc, "Adminlevel" )
if Adminlevel >= 1 and Adminlevel <= 4 then
outputChatBox( getPlayerName( v )..": "..Adminlevel, thePlayer )
end
end
end
addCommandHandler( "admins", admins, false,false )
Alles anzeigen