!ammo, !health, etc are not SourceOP commands. The server probably had other plugins. Also, you need to type the buy commands in the console and not chat.