What could probably be used to solve the brick planting problem:
- Before placing, check if they have enough money to place it
- If they do not, do not plant the brick and show an error
- Plant the brick and schedule a 'check' function 10-100ms after for the brick
- If the brick does not exist due a planting error or trust, do nothing - don't charge them
- Check if they still have enough money to place it (e.g. they used a script to try and break it by buying something in that 10-100ms)
- If they do not, kill the brick and show an error
- If they do, charge them that amount of money and show some sort of indicator that it cost you that amount of money
This method would make "running out of money" appear in the same way as other brick planting errors such as "Overlap" and "Float".What could probably be used to solve the brick planting problem:
- Before placing, check if they have enough money to place it
- If they do not, do not plant the brick and show an error
- Plant the brick and schedule a 'check' function 10-100ms after for the brick
- If the brick does not exist due a planting error or trust, do nothing - don't charge them
- Check if they still have enough money to place it (e.g. they used a script to try and break it by buying something in that 10-100ms)
- If they do not, kill the brick and show an error
- If they do, charge them that amount of money and show some sort of indicator that it cost you that amount of money
This method would make "running out of money" appear in the same way as other brick planting errors such as "Overlap" and "Float". You could actually use the "Limit" brick plant error which usually only appears in Demo mode to make it look nicer. (as well as a message "You don't have enough money...")
(By the way, why is the "Team" plant error gone? For some reason, the image is still under "small" plant errors but it's gone for the normal size)