Hatte eben einen Treath der sich erledigt hat nun habe ich n größeres Problem ich habe es so:
Lua
function admins ( thePlayer, command )
outputChatBox( "Derzeit Admins Online:", thePlayer, 255,255,255 )
for index,v in ipairs( getElementsByType( "player" ) ) do
local adminlvl = getElementData( v, "adminlvl" )
if adminlvl == 1 then
outputChatBox ( getPlayerName( v ).." : ...::: Ticket Supporter :::...", thePlayer, 0, 255, 0 )
elseif adminlvl == 2 then
outputChatBox ( getPlayerName( v ).." : ...::: Moderator :::...", thePlayer, 0, 0, 255 )
elseif adminlvl == 3 then
outputChatBox ( getPlayerName( v ).." : ...::: Administrator :::...", thePlayer, 255, 255, 0 )
elseif adminlvl == 4 then
outputChatBox ( getPlayerName( v ).." : ...::: Projektleiter / Serverinhaber :::...", thePlayer, 255, 0, 0 )
elseif adminlvl == 5 then
outputChatBox ( getPlayerName( v ).." : ...::: Projektleiter :::...", thePlayer, 255, 0, 0 )
end
end
end
addCommandHandler( "admins", admins, false,false )
Alles anzeigen
Aber es wird kein Admin angezeigt wo ist der Fehler??? kein Error kommt