Help with revive!

Hey, when I die and waiting for medic, they cant see me where I am, where can I find the script that make me move/standing up when i spam a specific bottom? so medic can see me.

Thanks for help!