0 Üye ve 1 Ziyaretçi konuyu incelemekte.
function timer( ) setTimer( function() local denemefyt = math.random(40000, 60000) end, 50000, 0)endlocal denemefiyat = denemefytfunction fiyat( thePlayer ) outputChatBox("#ff0000 ------------------------Deneme--------------------------",thePlayer,0,255,0,true) outputChatBox("#00ff00[!] #ffffffalım fiyatı : ["..denemefiyat.."]",thePlayer,255,255,255,true) outputChatBox("#ff0000 --------------------------------------------------",thePlayer,0,255,0,true)endaddCommandHandler("deneme", fiyat)
local denemefiyat = 100setTimer(function() denemefiyat = math.random(40000, 60000)end, 1000, 0)function fiyat( thePlayer ) outputChatBox("#ff0000 ------------------------Deneme--------------------------",thePlayer,0,255,0,true) outputChatBox("#00ff00[!] #ffffffalım fiyatı : ["..denemefiyat.."]",thePlayer,255,255,255,true) outputChatBox("#ff0000 --------------------------------------------------",thePlayer,0,255,0,true)endaddCommandHandler("deneme", fiyat)
local denemefyt = 0setTimer(function() denemefyt = math.random(40000, 60000)end, 50000, 0)function fiyat(thePlayer) outputChatBox("#ff0000 ------------------------Deneme--------------------------",thePlayer,0,255,0,true) outputChatBox("#00ff00[!] #ffffffalım fiyatı : [".. format(denemefyt) .."]",thePlayer,255,255,255,true) outputChatBox("#ff0000 --------------------------------------------------",thePlayer,0,255,0,true)endaddCommandHandler("deneme", fiyat)function format(n) local left,num,right = string.match(n,'^([^%d]*%d)(%d*)(.-)$') return left..(num:reverse():gsub('(%d%d%d)','%1,'):reverse())..right end