Do you know about assembly
I dont use Tsearch to trainermaking but the code should be same
so you should do an assembly script on the first opcode which is
mov [eax+0x30],ecx
and change it to
mov [eax+0x30],3B9AC9FF
This may give you 999999999 ammo
but it has other instruction before and after this code, so if you write any of them incorrectly the game will crash.
you can do this by CoSMOS it is more powerful than Tsearch in assembly
To make things further clear:-
Zirkhaki is giving an example of a standard code injection. The code differs in the game.
3B9AC9FF is the hexadecimal form of 999999999 in decimal 4 bytes!!! If the value is in float, double, 2 bytes, etc - The value may differ.