Of course, pulling up the command console will only get you so far – you'll also need to know a few codes to enter in the dialogue box. With the command console open, all you'll need to do is type in your cheat code and the game will take care of the rest. If you're playing on another server, try pulling up the command console menu – this varies by platform, but can be performed on PC using the '/' key. If you're the one creating the server, you can simply enable this option during setup.
Before you can start zipping around the map and giving all your friends free diamonds, you'll need to make sure you're playing on a server that allows console commands.