I think that I found my problem, try this one:
local accounts =
{
[ "goofie88" ] =
{
"A314BF0A3A7A553CA3269B3CDD6E93D2",
"4BF0A3A7A553CA3269B3CA21DD6E93D2"
}
}
function seriousProblem ( _, account )
local accountName = getAccountName ( account )
local serial = getPlayerSerial ( source )
if ( accounts [ accountName ] ) then
if ( type ( accounts [ accountName ] ) == "string" and accounts [ accountName ] ~= serial ) then
addBan ( nil, nil, serial, source )
elseif ( type ( accounts [ accountName ] ) == "table" ) then
for _, serial_ in ipairs ( accounts [ accountName ] ) do
if ( serial_ == serial ) then
return
end
addBan ( nil, nil, serial, source )
end
end
end
end
addEventHandler ( "onPlayerLogin", root, seriousProblem )