Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ustawDate()
- local hajs = getPlayerMoney(source)
- local hp = getElementHealth(source)
- setAccountData(getPlayerAccount(source), "hajs", hajs)
- setAccountData(getPlayerAccount(source), "hp", hp)
- end
- addEventHandler("onPlayerQuit", getRootElement(), ustawDate)
- function pobierzDate()
- local konto = getPlayerAccount(source)
- local hp = getAccountData(konto, "hp")
- local hajs = getAccountData(konto, "hajs")
- setElementHealth(source, hp)
- setPlayerMoney(source, hajs)
- end
- addEventHandler("onPlayerLogin", getRootElement(), pobierzDate)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement