tnx, but it doesn't works too
i made something like you yesterday
function playerLogin (thePreviousAccount, theCurrentAccount, autoLogin)
if not (isGuestAccount (getPlayerAccount (source))) then
account = getPlayerAccount (source)
if (accountData) then
local playerTeam = getAccountData (theCurrentAccount, "Team")
spawnPlayer (source, playerteam)
end
end
end
addEventHandler ("onPlayerLogin", getRootElement(), playerLogin)
function onQuit (quitType, reason, responsibleElement)
if not (isGuestAccount (getPlayerAccount (source))) then
account = getPlayerAccount (source)
if (account) then
setAccountData (account, "Team", getPlayerTeam (source))
end
end
end
addEventHandler ("onPlayerQuit", getRootElement(), onQuit)