Jump to content

Question


FuriouZ

Recommended Posts

Hey all!

I have problem, when player respawns, then only his money is saved, skin, weapon all other stuff is gone..

How to fix it ?

Save-system

  Reveal hidden contents

respawn

server:

addEventHandler ( "onPlayerWasted", root, 
    function ( ) 
        local playeraccount = getPlayerAccount ( source )        
        local playerSkin = getAccountData (playeraccount, "save.skin")   
            spawnPlayer( source, 1182.04358, -2223.13159, 43.62173, playerSkin ) 
         
    end 
) 

Link to comment
  kidvnet said:
outputChatBox("playerAccount is:"..tostring(playeraccount).."Skin is"..tostring(playerSkin),source,0,255,0,true) 

put this on line 6, and see what will happen

playerAccount is:userdata: 02000039Skin is285 

As i understant, save system doesn't work or what ?

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...