YAP,When ya load up the game, relationships will be all reset and turrets will attack ya.
Create new cfg file using notepad in folder :/your hl2 dir/hl2/cfg/.name it turret. now open the valve.rc with notepad and you'll see something loke this
// load the base configuration //exec default.cfg
// Setup custom controller exec joystick.cfg
// run a user script file if present exec autoexec.cfg // // stuff command line statements // stuffcmds
// display the startup level startupmenu
Now replace this
// run a user script file if present exec autoexec.cfg exec turret.cfg
You have to put your setrelationship command in turret.cfg like mine.