xeon17 Posted December 31, 2013 Posted December 31, 2013 Whats wrong with this script '-' function Prop ( ) createMarker(2087.9260253906, 1448.8768310547, 10.8203125,"cylinder",2,0,0,255,255) createBlip ( (2087.9260253906, 1448.8768310547, 10.8203125, 31 ) f(isElementWithinMarker(thePlayer,marker)) then outputChatBox ( "#00FFFF [PROP] To buy the prop write /prop1 (Cost:10.000$)", player, 0, 0, 0, true) end local money = getPlayerMoney(player) if (money >= 10000) then takePlayerMoney(player, 10000) outputChatBox("outputChatBox ( "#00FFFF [PROP] You buyed the PROP !"", player, 0, 0, 0, true) addCommandHandler("prop1",Prop) setTimer ( Prop, 1000, ) givePlayerMoney ( thePlayer, 1000000 ) outputChatBox("outputChatBox ( "#00FFFF [PROP] You got 100.000$ from your Props !!"", player, 0, 0, 0, true) A unique GangWar gamemode waiting for you!Click here for more information.
DNL291 Posted December 31, 2013 Posted December 31, 2013 Try this: local marker = createMarker(2087.9260253906, 1448.8768310547, 10.8203125,"cylinder",2,0,0,255,255) createBlip ( 2087.9260253906, 1448.8768310547, 10.8203125, 31 ) function Prop (player) if(isElementWithinMarker(player,marker)) then outputChatBox ( "#00FFFF [PROP] To buy the prop write /prop1 (Cost:10.000$)", player, 0, 0, 0, true) else return end local money = getPlayerMoney(player) if (money >= 10000) then takePlayerMoney(player, 10000) outputChatBox ( "#00FFFF [PROP] You buyed the PROP !", player, 0, 0, 0, true) end end addCommandHandler("prop1",Prop) Please do not PM me with scripting related question nor support, use the forums instead.
xeon17 Posted December 31, 2013 Author Posted December 31, 2013 Thanks , is working perfect now maybe i'll need a little help later becouse i no understand much about setTimer A unique GangWar gamemode waiting for you!Click here for more information.
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