Hello community members I need help in /bet player amount ,I created a duel system its works fine but problem is I need to make it has
When player 1 to duel to player 2
If player 2 accept it now both players need to place bet so that they will enter the duel arena ,
I used take money code but it not works anyone can help ?
function takeCash ( thePlayer, command, amount ) -- when the takecash command is called
takePlayerMoney ( thePlayer, tonumber(amount) ) -- take the amount of money from the player
end
addCommandHandler ( "takecash", takeCash ) -- add a handler function for the command "takecash"