It is not possible to kill T. Rexes when you are a human. The only exception is the smaller version of a Rex in The Cave mission. Other than that, all your guns and spears can do is distract the T. Rex to come after you instead of your comrades. In most missions you must have the T. Rex come after you so that your comrades can open a door or complete an objective of some sort. Do not waste all your ammunition on a T. Rex. A few rounds of fire should be enough to distract it.