Jump to content

[HELP]


MaRcell

Recommended Posts

This property created To buy and receive money from the profit equal Akelas samp but I can not receive profit :redhotevil:

local marker=createMarker(2366.2221679688,1982.6693115234,10.8203125,"cylinder",2,0,0,255,255) 
createBlip(2366.2221679688,1982.6693115234,10.8203125,31) 
function Prop (player) 
if(isElementWithinMarker(player,marker)) then 
    outputChatBox ( "#FF0000 [PROPRIEDADE]#FF8C00Para Comprar Esta propriedade Digite /comprar (Custa:25.000)", player, 0, 0, 0, true) 
else 
    return 
end 
local money = getPlayerMoney(player) 
if (money >= 25000) then 
    takePlayerMoney(player, 25000) 
    outputChatBox ( "#FF0000[PROPRIEDADE]#FF8C00Vc Compro A Propiedade Deposito Lv!", player, 0, 0, 0, true) 
end 
end 
addCommandHandler("comprar",Prop) 
setTimer(function(theplayer) 
givePlayerMoney(source,2500) 
end 
,5000,0) 
  

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