Jump to content

x[طلب]x الببنق#


Recommended Posts

function convertNumber ( number )   
    local formatted = number   
    while true do       
        formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2')     
        if ( k==0 ) then       
            break    
        end   
    end   
    return formatted 
end 
  
function getTimeLeft(Timer) 
        ms = getTimerDetails(Timer) 
    local m = math.floor(ms/60000) 
    local s = math.floor((ms-m*60000)/1000) 
    if m < 10 then m = ""..m end 
    if s < 10 then s = ""..s end 
    return ""..m.." Minute and "..s.." Second" 
end 
  
function FunctionCommand_ ( Player, _, aWin_  ) 
Restart = setTimer( addCommandHandler, 300000 , 1, 'Flip' , FunctionCommand_ ) 
removeCommandHandler('Flip') 
    if ( math.random( 0  , 2 ) == 2 ) then 
        local WinMoney = aWin_ * 2 
            givePlayerMoney ( Player , WinMoney ) 
                outputChatBox("* #FFFFFF[Filp System] #F3FF00: #FF0000( #00FFFC"..getPlayerName(Player).." #FF0000) #007CFFWin #40FF00$"..convertNumber(WinMoney), root, 255, 0, 0, true ) 
        else 
            if ( getPlayerMoney ( Player ) >= tonumber(aWin_) ) then takePlayerMoney ( Player , aWin_ ) end 
                outputChatBox("* #FFFFFF[Filp System] #F3FF00: #FF0000 Your Failled "..getTimeLeft(Restart).." To Start", root, 255, 0, 0, true ) 
    end 
end  
addCommandHandler( 'Flip' , FunctionCommand_ ) 
  
addCommandHandler( 'TimeFlip' ,  
function ( Player ) 
    if ( isTimer(Restart) ) then 
        outputChatBox("* #FFFFFF[Filp System] #F3FF00: #FF0000"..getTimeLeft(Restart), Player, 255, 0, 0, true ) 
    else 
        outputChatBox("* #FFFFFF[Filp System] #F3FF00: #1AFF00The Command is Start", Player, 255, 0, 0, true ) 
    end 
end ) 

TimeFlip لمعرفة وقت رجوع الكلمه وهيك ض

Filp 200 دا مثال بسيط

مادري لو في خطاء مب مجرب

Link to comment
function convertNumber ( number )   
    local formatted = number   
    while true do       
        formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2')     
        if ( k==0 ) then       
            break    
        end   
    end   
    return formatted 
end 
  
function getTimeLeft(Timer) 
        ms = getTimerDetails(Timer) 
    local m = math.floor(ms/60000) 
    local s = math.floor((ms-m*60000)/1000) 
    if m < 10 then m = ""..m end 
    if s < 10 then s = ""..s end 
    return ""..m.." Minute and "..s.." Second" 
end 
  
function FunctionCommand_ ( Player, _, aWin_  ) 
Restart = setTimer( addCommandHandler, 300000 , 1, 'Flip' , FunctionCommand_ ) 
removeCommandHandler('Flip') 
    if ( math.random( 0  , 2 ) == 2 ) then 
        local WinMoney = aWin_ * 2 
            givePlayerMoney ( Player , WinMoney ) 
                outputChatBox("* #FFFFFF[Filp System] #F3FF00: #FF0000( #00FFFC"..getPlayerName(Player).." #FF0000) #007CFFWin #40FF00$"..convertNumber(WinMoney), root, 255, 0, 0, true ) 
        else 
            if ( getPlayerMoney ( Player ) >= tonumber(aWin_) ) then takePlayerMoney ( Player , aWin_ ) end 
                outputChatBox("* #FFFFFF[Filp System] #F3FF00: #FF0000 Your Failled "..getTimeLeft(Restart).." To Start", root, 255, 0, 0, true ) 
    end 
end  
addCommandHandler( 'Flip' , FunctionCommand_ ) 
  
addCommandHandler( 'TimeFlip' ,  
function ( Player ) 
    if ( isTimer(Restart) ) then 
        outputChatBox("* #FFFFFF[Filp System] #F3FF00: #FF0000"..getTimeLeft(Restart), Player, 255, 0, 0, true ) 
    else 
        outputChatBox("* #FFFFFF[Filp System] #F3FF00: #1AFF00The Command is Start", Player, 255, 0, 0, true ) 
    end 
end ) 

TimeFlip لمعرفة وقت رجوع الكلمه وهيك ض

Filp 200 دا مثال بسيط

مادري لو في خطاء مب مجرب

هو اشتغل

بس ما اقدر اخلي

يوم الواحد يخسر فلوسه يجي بالشات

انه خسر مثلا 200

ويوم يسوي فلب يظهر للكل

+ أبي اغير وقت الفلب

ويكون كل 30 ثانية .

Link to comment
function convertNumber ( number )   
    local formatted = number   
    while true do       
        formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2')     
        if ( k==0 ) then       
            break    
        end   
    end   
    return formatted 
end 
  
function getTimeLeft(Timer) 
        ms = getTimerDetails(Timer) 
    local m = math.floor(ms/60000) 
    local s = math.floor((ms-m*60000)/1000) 
    if m < 10 then m = ""..m end 
    if s < 10 then s = ""..s end 
    return ""..m.." Minute and "..s.." Second" 
end 
  
function FunctionCommand_ ( Player, _, aWin_  ) 
Restart = setTimer( addCommandHandler, 3000 , 1, 'Flip' , FunctionCommand_ ) 
removeCommandHandler('Flip') 
    if ( math.random( 0  , 2 ) == 2 ) then 
        local WinMoney = aWin_ * 2 
            givePlayerMoney ( Player , WinMoney ) 
                outputChatBox("* #FFFFFF[Filp System] #F3FF00: #FF0000( #00FFFC"..getPlayerName(Player).." #FF0000) #007CFFWin #40FF00$"..convertNumber(WinMoney), root, 255, 0, 0, true ) 
        else 
            if ( getPlayerMoney ( Player ) >= tonumber(aWin_) ) then takePlayerMoney ( Player , aWin_ ) end 
                                        outputChatBox("#00ff00* #ffffff"..getPlayerName(thePlayer).." #ffffffflip a coin and lost $#ff0000"..value.."#ffffff!",getRootElement(),255,255,255,true) 
    end 
end  
addCommandHandler( 'Flip' , FunctionCommand_ ) 
  
addCommandHandler( 'TimeFlip' ,  
function ( Player ) 
    if ( isTimer(Restart) ) then 
        outputChatBox("* #FFFFFF[Filp System] #F3FF00: #FF0000"..getTimeLeft(Restart), Player, 255, 0, 0, true ) 
    else 
        outputChatBox("* #FFFFFF[Filp System] #F3FF00: #1AFF00The Command is Start", Player, 255, 0, 0, true ) 
    end 
end ) 

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