Any person suggesting and obtaining a writ of garnishment upon a judgment against any person who is an officer or employee of the state shall advance and pay the sum of two dollars which shall be paid by the officer serving the writ of garnishment to the state officer upon whom such writ is directed to be served and such payment shall be retained by such officer as compensation for the additional duty imposed upon him by Sections 11-35-1 and 11-35-11 through 11-35-21, in the capacity of such officer as special agent of the state for service of garnishment writs.