Jump to content

Help


xeon17

Recommended Posts

Posted

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.

560x95_FFFFFF_FF9900_000000_000000.png

Posted

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.

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...