Wisam Posted May 12, 2014 Share Posted May 12, 2014 (edited) Hey, i needed some help in this turret script.. i added a price for the turret (20000) first and it kinda worked but when the player have 0$ money he can buy a turret but his money become negative and he can keep buying, so i added: RESOLVED AND DELETED Edited May 15, 2014 by Guest Link to comment
-.Paradox.- Posted May 12, 2014 Share Posted May 12, 2014 Use if (getPlayerMoney(source)>=20000) then And tell me the errors. Link to comment
Wisam Posted May 12, 2014 Author Share Posted May 12, 2014 (edited) Deleted Edited May 15, 2014 by Guest Link to comment
Wisam Posted May 12, 2014 Author Share Posted May 12, 2014 (edited) Post the client side code. Deleted Edited May 15, 2014 by Guest Link to comment
Snow-Man Posted May 12, 2014 Share Posted May 12, 2014 @Wisam someone else has stolen your script Link to comment
xXMADEXx Posted May 12, 2014 Share Posted May 12, 2014 (edited) @Wisam someone else has stolen your script We're here to help people with their scripts, not steal them. Change your code to this: addCommandHandler("turret", function (player) local x,y,z = getElementPosition(player) if (getPlayerMoney(player)>= 10) then triggerClientEvent(root, "turret", root,player, x, y, z) takePlayerMoney(player,10) outputChatBox("You Bought a Turret for $20.000", source, 0,190,50) else outputChatBox("You Don't have enough money to buy a Turret", source, 190,0,50) end end ) addCommandHandler("dturret", function (player) triggerClientEvent(root, "destroy", root, player) outputChatBox("You Destroyed you're turret", getRootElement(), 190,0,50) end ) Edited May 12, 2014 by Guest Link to comment
Snow-Man Posted May 12, 2014 Share Posted May 12, 2014 @Wisam someone else has stolen your script We're here to help people with their scripts, not steal them. @Wisam, can you please activate /debugscript 3, take a screenshot of it and post it here? Thanks. his name is emmanuel has uploaded his script check community.multitheftauto.com iam not stolen it Link to comment
xXMADEXx Posted May 12, 2014 Share Posted May 12, 2014 @Wisam someone else has stolen your script We're here to help people with their scripts, not steal them. @Wisam, can you please activate /debugscript 3, take a screenshot of it and post it here? Thanks. his name is emmanuel has uploaded his script check community.multitheftauto.com iam not stolen it Ah right, sorry. I didn't see that, I'll go head and ask SolidSnake14 to remove it. Link to comment
Castillo Posted May 12, 2014 Share Posted May 12, 2014 I took care of it, next time report it here: viewtopic.php?f=31&t=45807&start=735 Link to comment
Wisam Posted May 15, 2014 Author Share Posted May 15, 2014 Thanks alot all for your help, and Castillo :3, i should have deleted the scripts 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