NotAvailable Posted June 18, 2010 Posted June 18, 2010 Hi, There is a horrible bug in my weapon shop: Ex. You have 1000$ & you buyed a M4 for 1000$... Then you kill a zombie & you get the 1000$ back + the zombie kill reward.. Someone knows how to fix it?
Castillo Posted June 18, 2010 Posted June 18, 2010 Hi, There is a horrible bug in my weapon shop:Ex. You have 1000$ & you buyed a M4 for 1000$... Then you kill a zombie & you get the 1000$ back + the zombie kill reward.. Someone knows how to fix it? edit your zombie reward script San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Dark Dragon Posted June 19, 2010 Posted June 19, 2010 make sure both scripts use serverside money functions to avoid that Loads of fun for free! Also a lot of fun for free!
TheRealCow Posted June 19, 2010 Posted June 19, 2010 maybe are you functions names same ? so he can trigger the events or something ? Server Name: mR|Team Clan Race Server Server IP: 84.82.81.225:22004
dzek (varez) Posted June 19, 2010 Posted June 19, 2010 your weapon shop is using client-side money taking. ITS WRONG. Use server-side example: -- instead of using something like (client side): takePlayerMoney(playerElement, price) -- use: (client side) triggerServerEvent('takeMoneyFromMe', playerElement, price) -- (server side part) addEvent('takeMoneyFromMe', getRootElement(), function(price) takePlayerMoney(source, price) end) -- you should add server side money checking too, to prevent money hacking and/or getting NEGATIVE money after buying 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)!
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