#meS Posted September 16, 2015 Share Posted September 16, 2015 (edited) hello i have problem! when i log out when i'm jumping or when i'm flying with superman and then connecting it doesn't set the camera target me but when i'm in ground it works well code: function savesystem() local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local playermoney = getAccountData ( playeraccount, "s.HandMoney" ) if ( playermoney ) then setPlayerMoney ( source, playermoney ) local playerInt = getAccountData (playeraccount, "s.int") local playerDim = getAccountData (playeraccount, "s.dim") --local playerSkin = getAccountData (playeraccount, "s.skin") local playerX = getAccountData (playeraccount, "s.x") local playerY = getAccountData (playeraccount, "s.y") local playerZ = getAccountData (playeraccount, "s.z") local playerRot = getAccountData (playeraccount, "s.rot") spawnPlayer(source, playerX, playerY, playerZ, playerRot, 0, playerInt, playerDim) setCameraTarget(source,source) for slot = 1, 12 do local wep = getAccountData ( account, "save-wep".. slot ) local ammo = getAccountData ( account, "save-ammo".. slot ) giveWeapon ( source, wep, ammo ) end end end end addEventHandler("onPlayerLogin", root,savesystem) Edited September 17, 2015 by Guest Link to comment
#meS Posted September 17, 2015 Author Share Posted September 17, 2015 nvm fixed it some how Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now