If I understand you correctly, you want a trigger to activate when man is present, which will cause your script to exit.
If so, in the activation field of your trigger, put
stopScript1 = true
That's all you need to do.
By the way, there's a few errors in your code. Change the following line:
?stopScript1 = true goto: end
To:
?stopScript1 == true : goto "end"
Optionally, you can shorten your code to the following:
? stopScript1 : exit
Using this, you can eliminate the #end section.
In any case, you do not need a second script to do anything else. However, if you want to follow good coding practices, you could create an init.sqs script if you don't already have it, and in this script put the following line:
stopScript1 = false