1) attach a killed eventhandler to the Players
2) When killed have the eventhandler make a boolean true and publicvariable it
3) Have a trigger waiting on that boolean to become true
4) Have the activation field of the trigger run a script
5) For repeating purposes, have the trigger script reset the boolean to false
eg
INIT.SQStx_dead = false
player addEventHandler ["killed", {tx_dead = true; Publicvariable "tx_dead"}]
TRIGGERActivated by: Nobody
Set To: Repeatedly
Condition: tx_dead
On activation: [] exec "Alive.sqs"
Alive.sqstx_dead = false
add your own lines of code here
exit