Jump to content

Help


xeon17

Recommended Posts

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) 

Link to comment

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) 
  

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...