Virus xD Posted May 10, 2010 Share Posted May 10, 2010 Hello-world Here it is finally I also made some scripts to the public. I hope you will like. Description: The script works on a way to save things in my profile player who has logged into the server now give registered when a player leaves the game server load things Skin Weapon Position Dimension Money and when the players come back and login to his account of these things will be recovered Download: https://community.multitheftauto.com/index.php?p=resources&s=details&id=732 Sorry about my poor language and writing in English I've never enter. Link to comment
youpit Posted September 12, 2010 Share Posted September 12, 2010 Can you reupload pls? Link to comment
dzek (varez) Posted September 12, 2010 Share Posted September 12, 2010 @youpit: You are asking for reupload this and J-RPG. Notice one thing written in J-RPG topic: WARNING: Don't runs with other save-systems Just a warning if you want to use them both. Link to comment
basel-ksa Posted September 12, 2010 Share Posted September 12, 2010 Plz can you Upload to mediafire.com Link to comment
dzek (varez) Posted September 12, 2010 Share Posted September 12, 2010 @basel-ksa: Same thing as post above. You asked to reupload both this and J-RPG - but remember not to use them both! Link to comment
basel-ksa Posted September 13, 2010 Share Posted September 13, 2010 plz i want this script Plz Plz : ( I dont want "J-RPG" i want yor script reupload pls? Link to comment
Virus xD Posted September 13, 2010 Author Share Posted September 13, 2010 ok Maybe i have on my usb, I will seek it. I think I've been deleted: ( EDIT: i finde it http://www.mediafire.com/?cm475w4iykt6fc9 tip and uses the Login register script from x4 ( If is confusion sorry | I do not remember who create it ) http://www.mediafire.com/?btza1557vl78831 Link to comment
basel-ksa Posted September 14, 2010 Share Posted September 14, 2010 Thx man i love you ^^ but Last Thing : can you Make ti Just save Money Because i want it In BaseMode function onPlayerQuit ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local x,y,z = getElementPosition (source) setAccountData ( playeraccount, "s.HandMoney", getPlayerMoney ( source ) ) setAccountData (playeraccount, "s.skin", tostring (getPedSkin (source))) setAccountData (playeraccount, "s.x", x) setAccountData (playeraccount, "s.y", y) setAccountData (playeraccount, "s.z", z) setAccountData (playeraccount, "s.int", getElementInterior (source)) setAccountData (playeraccount, "s.dim", getElementDimension (source)) setAccountData (playeraccount, "s.rot", getPedRotation (source)) setAccountData (playeraccount, "s.weap0", getPedWeapon ( source, 0 )) setAccountData (playeraccount, "s.weap1", getPedWeapon ( source, 1 )) setAccountData (playeraccount, "s.weap2", getPedWeapon ( source, 2 )) setAccountData (playeraccount, "s.ammo2", getPedTotalAmmo ( source, 2 )) setAccountData (playeraccount, "s.weap3", getPedWeapon ( source, 3 )) setAccountData (playeraccount, "s.ammo3", getPedTotalAmmo ( source, 3 )) setAccountData (playeraccount, "s.weap4", getPedWeapon ( source, 4 )) setAccountData (playeraccount, "s.ammo4", getPedTotalAmmo ( source, 4 )) setAccountData (playeraccount, "s.weap5", getPedWeapon ( source, 5 )) setAccountData (playeraccount, "s.ammo5", getPedTotalAmmo ( source, 5 )) setAccountData (playeraccount, "s.weap6", getPedWeapon ( source, 6 )) setAccountData (playeraccount, "s.ammo6", getPedTotalAmmo ( source, 6 )) setAccountData (playeraccount, "s.weap7", getPedWeapon ( source, 7 )) setAccountData (playeraccount, "s.ammo7", getPedTotalAmmo ( source, 7 )) setAccountData (playeraccount, "s.weap8", getPedWeapon ( source, 8 )) setAccountData (playeraccount, "s.ammo8", getPedTotalAmmo ( source, 8 )) setAccountData (playeraccount, "s.weap9", getPedWeapon ( source, 9 )) setAccountData (playeraccount, "s.ammo9", getPedTotalAmmo ( source, 9 )) setAccountData (playeraccount, "s.weap10", getPedWeapon ( source, 10 )) setAccountData (playeraccount, "s.weap11", getPedWeapon ( source, 11 )) setAccountData (playeraccount, "s.weap12", getPedWeapon ( source, 12 )) end end addEventHandler ( "onPlayerQuit", getRootElement ( ), onPlayerQuit ) local root = getRootElement() addEventHandler("onPlayerLogin", root, function() local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local playermoney = getAccountData ( playeraccount, "s.HandMoney" ) if ( playermoney ) then setPlayerMoney ( source, playermoney ) end 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, playerSkin, playerInt, playerDim) fadeCamera (source, true) setCameraTarget (source, source) local weap0 = getAccountData(playeraccount, "s.weap0") local weap1 = getAccountData(playeraccount, "s.weap1") local weap2 = getAccountData(playeraccount, "s.weap2") local ammo2 = getAccountData(playeraccount, "s.ammo2") local weap3 = getAccountData(playeraccount, "s.weap3") local ammo3 = getAccountData(playeraccount, "s.ammo3") local weap4 = getAccountData(playeraccount, "s.weap4") local ammo4 = getAccountData(playeraccount, "s.ammo4") local weap5 = getAccountData(playeraccount, "s.weap5") local ammo5 = getAccountData(playeraccount, "s.ammo5") local weap6 = getAccountData(playeraccount, "s.weap6") local ammo6 = getAccountData(playeraccount, "s.ammo6") local weap7 = getAccountData(playeraccount, "s.weap7") local ammo7 = getAccountData(playeraccount, "s.ammo7") local weap8 = getAccountData(playeraccount, "s.weap8") local ammo8 = getAccountData(playeraccount, "s.ammo8") local weap9 = getAccountData(playeraccount, "s.weap9") local ammo9 = getAccountData(playeraccount, "s.ammo9") local weap10 = getAccountData(playeraccount, "s.weap10") local weap11 = getAccountData(playeraccount, "s.weap11") local weap12 = getAccountData(playeraccount, "s.weap12") giveWeapon ( source, weap0, 1 ) giveWeapon ( source, weap1, 1 ) giveWeapon ( source, weap2, ammo2 ) giveWeapon ( source, weap3, ammo3 ) giveWeapon ( source, weap4, ammo4 ) giveWeapon ( source, weap5, ammo5 ) giveWeapon ( source, weap6, ammo6 ) giveWeapon ( source, weap7, ammo7 ) giveWeapon ( source, weap8, ammo8 ) giveWeapon ( source, weap9, ammo9 ) giveWeapon ( source, weap10, 1 ) giveWeapon ( source, weap11, 1 ) giveWeapon ( source, weap12, 1 ) end end ) Plz Plz I want JustThat Link to comment
Virus xD Posted September 14, 2010 Author Share Posted September 14, 2010 function onPlayerQuit ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then setAccountData ( playeraccount, "s.HandMoney", getPlayerMoney ( source ) ) end end addEventHandler ( "onPlayerQuit", getRootElement ( ), onPlayerQuit ) local root = getRootElement() addEventHandler("onPlayerLogin", root, function() local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local playermoney = getAccountData ( playeraccount, "s.HandMoney" ) if ( playermoney ) then setPlayerMoney ( source, playermoney ) end end end ) hear next time ask on PM : P or in scripting board https://forum.multitheftauto.com/viewforum.php?f=91 Link to comment
basel-ksa Posted September 14, 2010 Share Posted September 14, 2010 Thx ^^ edit by varez: Dudes! Are you always have to quote LAST message, even if it's 10 miles high? Link to comment
Pistolebob Posted September 19, 2010 Share Posted September 19, 2010 Nice but this doesn't save weapons and skin when a player dies. Could you add that? Link to comment
1Azooz# Posted September 19, 2010 Share Posted September 19, 2010 Thanks man I was looking for this mode But if you're still on the conservation and Maud have money in the chub And shut down the server to put maps, for example, then ran the server Mode has been done and I can not find any money to me And that the type of server is a race Are there solutions? 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