Castillo Posted February 21, 2010 Share Posted February 21, 2010 hi, i got a question, i have save skin and save position but now i need a save weapon script so players wont lose them, and i wanted to know if some can tell me the functions i should use or at least some of them. thanks! Link to comment
dzek (varez) Posted February 21, 2010 Share Posted February 21, 2010 https://wiki.multitheftauto.com/wiki/Server_Scrip ... _functions much of these.. if you got a saving/loading done, you will need no more i think Link to comment
Gamesnert Posted February 21, 2010 Share Posted February 21, 2010 There's a problem with saving weapons: The functions you'd need, are client-side. It appears that the server only stores the currently equipped weapon. To solve this, you need to get the list of weapons, and their ammo, client-side. Then send it to the server. Functions that might be useful: - getPlayerWeapon - getPlayerTotalAmmo - triggerServerEvent Link to comment
Asi.Eren Posted April 12, 2010 Share Posted April 12, 2010 https://wiki.multitheftauto.com/wiki/Server_Scripting_Functions#Weapon_functionsmuch of these.. if you got a saving/loading done, you will need no more i think Where is copy it. Link to comment
50p Posted April 12, 2010 Share Posted April 12, 2010 (...)Where is copy it. Extend your question (if that is a question) or explain more about what you mean. 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