ARK ID for Longneck Rifle is WeaponOneShotRifle.
To use the command provided by this constructor, make sure that you had previously executed enablecheats YourServerPassword.