How do I setup a server so that pistols are the only guns allowed on maps?

If you're looking for a deathmatch server with pistols only, you could try this plugin (requires SourceMod and MetaMod).

Else, you could try using this plugin to restrict weapons (also requires SourceMod and MetaMod).