Jump to content

Weapons


Drakath

Recommended Posts

Posted

Add this to your save system:

addEventHandler ( "onPlayerWasted", root, 
    function ( ) 
        local account = getPlayerAccount ( source ) 
        if ( account and not isGuestAccount ( account ) ) then 
            setAccountData ( account, "zmgm.weaponID0", 0 ) 
            setAccountData ( account, "zmgm.weaponID1", 0 ) 
            setAccountData ( account, "zmgm.weaponID2", 0 ) 
            setAccountData ( account, "zmgm.weaponID3", 0 ) 
            setAccountData ( account, "zmgm.weaponID4", 0 ) 
            setAccountData ( account, "zmgm.weaponID5", 0 ) 
            setAccountData ( account, "zmgm.weaponID6", 0 ) 
            setAccountData ( account, "zmgm.weaponID7", 0 ) 
            setAccountData ( account, "zmgm.weaponID8", 0 ) 
            setAccountData ( account, "zmgm.weaponID9", 0 ) 
            setAccountData ( account, "zmgm.weaponID10", 0 ) 
            setAccountData ( account, "zmgm.weaponID11", 0 ) 
            setAccountData ( account, "zmgm.weaponID12", 0 ) 
        end 
    end 
) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

I replaced:

setAccountData ( account, "zmgm.weaponID0", 0 ) 
            setAccountData ( account, "zmgm.weaponID1", 0 ) 
            setAccountData ( account, "zmgm.weaponID2", 0 ) 
            setAccountData ( account, "zmgm.weaponID3", 0 ) 
            setAccountData ( account, "zmgm.weaponID4", 0 ) 
            setAccountData ( account, "zmgm.weaponID5", 0 ) 
            setAccountData ( account, "zmgm.weaponID6", 0 ) 
            setAccountData ( account, "zmgm.weaponID7", 0 ) 
            setAccountData ( account, "zmgm.weaponID8", 0 ) 
            setAccountData ( account, "zmgm.weaponID9", 0 ) 
            setAccountData ( account, "zmgm.weaponID10", 0 ) 
            setAccountData ( account, "zmgm.weaponID11", 0 ) 
            setAccountData ( account, "zmgm.weaponID12", 0 ) 

To this, but it did not work. Maybe I did replace it wrong?

s.epicrow.com:22003.png

Posted

I don't understand what do you mean, the script I posted should reset all saved weapons when get killed, no need to edit it.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Did I said replace something? no, I said add it on your save system script.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

You posted a script earlier, just copy my code and paste it down of that script.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

What do you mean? when he dies he won't have any weapon, and all the saved ones are reseted.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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...