Jump to content

Command won't save


TorNix~|nR

Recommended Posts

Posted

Hello everyone :D

I have an problem, I make a server zombie in my local server, my Zombie Kills are 4500

I have my command for give zombie kills

I go to 'P' [Admin Panel] > Resources and I make this command

setElementData(source,"Zombie kills",9999999)

It works, but when I reconnect, my zombie kills back to 4500, any solution please? :)

Posted
Hello everyone :D

I have an problem, I make a server zombie in my local server, my Zombie Kills are 4500

I have my command for give zombie kills

I go to 'P' [Admin Panel] > Resources and I make this command

setElementData(source,"Zombie kills",9999999)

It works, but when I reconnect, my zombie kills back to 4500, any solution please? :)

local account = getPlayerAccount(source) 
setAccountData(account, "Zombie kills", 9999999) 

And if you have save on MySQL dbConnect or MySQL Modules you can use "setElementData".

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