Castillo Posted February 21, 2010 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! San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
dzek (varez) Posted February 21, 2010 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 Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
Gamesnert Posted February 21, 2010 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 Projects: Slothbot | Maximap
Asi.Eren Posted April 12, 2010 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.
50p Posted April 12, 2010 Posted April 12, 2010 (...)Where is copy it. Extend your question (if that is a question) or explain more about what you mean. - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
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