Yeni kod yazmaya başladım. Büyük ihtimalle çok basit bir hata yaptım ama fark etmedim. Umarım çözülür.
alan = createColSphere (1080.84155, -2047.14001, 53.60585, 2)
para = 50
function Üzüm(plr,cmd,state)
if isElementWithinColShape (plr,alan) then
if not state then
setpedAnimation(plr, "bomber", "bom_plant_loop")
setTimer ( function ()
setpedAnimation(plr)
givePlayerMoney(plr, para)
outputChatBox("
- Üzüm topladın!",plr, 0, 255, 0, true)
1000,1)
return end
else
outputChatBox("#FFFFFFBelirtilen alanda değilsiniz!",plr, 255, 0, 0, true)
end
end
end
end
addCommandHandler("üzümtopla", Üzüm)