The element is the source, not a parameter. The first parameter is the old model.
function admskin(old)
if (getElementType(source) ~= 'player') then return end
local account = getPlayerAccount(source)
local accountName = getAccountName(account)
if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) ) then
if ( getElementModel ( source ) == 188 ) then
outputChatBox("Skin de admin correcto.",source,0,255,0)
else
outputChatBox("ADMIN SIN SKIN.",source,255,0,0)
end
else
if ( getElementModel ( source ) == 188 ) then
outputChatBox("No puedes usar skin de ADMIN.",source,255,0,0)
setElementModel(source,14)
end
end
end
addEventHandler("onElementModelChange",root,admskin)