500 is tough. Maybe you should try to get a used Ryzen system or parts. Saving 20$ here and there on some parts could go a long way in that budget range.
The system tennis2 submitted is more or less the max you can get with new parts, but it is a 4 core system with an igpu. It will play Lol and csgo no problem, but after you add a gpu you are stuck with a relatively weak cpu.
Optimal would be a system containing a 6 core cpu like a R5 1600 AF or 2600 and an dedicated gpu like a RX 570. I think if you could stretch you budget to that level or get used parts the system will serve you better for a longer period.
PCPartPicker Part List:
https://ca.pcpartpicker.com/list/zyL26R
CPU: AMD Ryzen 5 2600 3.4 GHz 6-Core Processor ($159.00 @ Canada Computers)
Motherboard: MSI B450M GAMING PLUS Micro ATX AM4 Motherboard ($119.99 @ Newegg Canada)
Memory: Corsair Vengeance LPX 8 GB (2 x 4 GB) DDR4-3000 Memory ($62.99 @ Newegg Canada)
Storage: Seagate BarraCuda 1 TB 3.5" 7200RPM Internal Hard Drive ($52.75 @ Vuugo)
Video Card: Sapphire Radeon RX 570 4 GB PULSE Video Card ($209.99 @ Newegg Canada)
Case: Cooler Master MasterBox Q300L MicroATX Mini Tower Case ($52.95 @ Mike's Computer Shop)
Power Supply: EVGA SuperNOVA G3 550 W 80+ Gold Certified Fully Modular ATX Power Supply ($119.75 @ Vuugo)
Total: $777.42
Prices include shipping, taxes, and discounts when available
Generated by PCPartPicker 2020-02-17 13:27 EST-0500