xXGhostXx Posted August 17, 2018 Share Posted August 17, 2018 Hi guys . i want code for save wanted level ! setAccountData - getAccountData ! please fast help me ! Link to comment
Mσнαмα∂ Hєℓιѕн Posted August 17, 2018 Share Posted August 17, 2018 1 hour ago, xXGhostXx said: Hi guys . i want code for save wanted level ! setAccountData - getAccountData ! please fast help me ! server mizani ? bayad bokhorish Link to comment
xXGhostXx Posted August 17, 2018 Author Share Posted August 17, 2018 12 hours ago, Mσнαмα∂ Hєℓιѕн said: server mizani ? bayad bokhorish What ?! Please help me ! @KnucklesSAEG Please answer me ! Thanks Link to comment
VenomOG Posted August 17, 2018 Share Posted August 17, 2018 try wanted = getElementData("wantedlevel") addEventHandler("onPlayerLogin", root, function() setElementData(wanted) end) forget that try this function playerLogin (thePreviousAccount, theCurrentAccount, autoLogin) if not (isGuestAccount (getPlayerAccount (source))) then local accountData = getAccountData (theCurrentAccount, "funmodev2-money") if (accountData) then local playerWanted = getAccountData (theCurrentAccount, "funmodev2-wantedlevel") spawnPlayer (source, playerX, playerY, playerZ +1, 0, playerSkin, playerInt, playerDim) setTimer (setPlayerWantedLevel, 500, 1, source, playerWanted) setCameraTarget (source, source) fadeCamera(source, true, 2.0) else spawnPlayer (source, 1481.0855712891, -1771.2996826172, 18.795753479004, 0,78, 0, 0) setPlayerMoney (source, 200) setCameraTarget (source, source) fadeCamera(source, true, 2.0) end end end addEventHandler ("onPlayerLogin", getRootElement(), playerLogin) function onLogout () kickPlayer (source, nil, "Logging out is disallowed.") end addEventHandler ("onPlayerLogout", getRootElement(), onLogout) function onQuit (quitType, reason, responsibleElement) if not (isGuestAccount (getPlayerAccount (source))) then account = getPlayerAccount (source) if (account) then local x,y,z = getElementPosition (source) setAccountData (account, "funmodev2-wantedlevel", getPlayerWantedLevel (source)) end end end addEventHandler ("onPlayerQuit", getRootElement(), onQuit) Link to comment
Mσнαмα∂ Hєℓιѕн Posted August 17, 2018 Share Posted August 17, 2018 20 minutes ago, xXGhostXx said: What ?! Please help me ! @KnucklesSAEG Please answer me ! Thanks azizam english i ha dar javabe chiz haye alaki nemigan what migan yes mesle to bi adab nistan ke Link to comment
xXGhostXx Posted August 17, 2018 Author Share Posted August 17, 2018 11 hours ago, KnucklesSAEG said: try wanted = getElementData("wantedlevel") addEventHandler("onPlayerLogin", root, function() setElementData(wanted) end) forget that try this function playerLogin (thePreviousAccount, theCurrentAccount, autoLogin) if not (isGuestAccount (getPlayerAccount (source))) then local accountData = getAccountData (theCurrentAccount, "funmodev2-money") if (accountData) then local playerWanted = getAccountData (theCurrentAccount, "funmodev2-wantedlevel") spawnPlayer (source, playerX, playerY, playerZ +1, 0, playerSkin, playerInt, playerDim) setTimer (setPlayerWantedLevel, 500, 1, source, playerWanted) setCameraTarget (source, source) fadeCamera(source, true, 2.0) else spawnPlayer (source, 1481.0855712891, -1771.2996826172, 18.795753479004, 0,78, 0, 0) setPlayerMoney (source, 200) setCameraTarget (source, source) fadeCamera(source, true, 2.0) end end end addEventHandler ("onPlayerLogin", getRootElement(), playerLogin) function onLogout () kickPlayer (source, nil, "Logging out is disallowed.") end addEventHandler ("onPlayerLogout", getRootElement(), onLogout) function onQuit (quitType, reason, responsibleElement) if not (isGuestAccount (getPlayerAccount (source))) then account = getPlayerAccount (source) if (account) then local x,y,z = getElementPosition (source) setAccountData (account, "funmodev2-wantedlevel", getPlayerWantedLevel (source)) end end end addEventHandler ("onPlayerQuit", getRootElement(), onQuit) Thanks ! Please check post for make Jobs system ! thanks for your help . Link to comment
VenomOG Posted August 17, 2018 Share Posted August 17, 2018 1 minute ago, xXGhostXx said: Thanks ! Please check post for make Jobs system ! thanks for your help . Done 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