Jump to content

Wins dont count


Recommended Posts

function DestructionWin( ) 
  local account = getPlayerAccount( source ) 
    if account then 
    local alivePlayers = getAlivePlayers( ) 
    if #alivePlayers == 1 then 
        local account = getPlayerAccount( alivePlayers[1] ) 
        if account then 
            if isGuestAccount( account ) then return end 
            setAccountData( account,"Wins",tostring( getAccountData( account,"Wins" ) or 0 )+1 ) 
            setAccountData( account,"Cash",tostring( getAccountData( account,"Cash" ) or 0 )+ 250 ) 
            setAccountData( account,"EXP",tostring( getAccountData( account,"EXP" ) or 0 )+math.random(3,5) ) 
            outputChatBox("#000000* #ffffffYou won! $#11dd11250 #FFFFFF", source, 255, 255, 255, true) 
        end 
    end 
end 
end 

I dont know why it doesnt work..

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