insert a wait(1); before your c_trace
note that you must save your my and you pointer!
Code:
function detected()
{
ENTITY* playerAvatar = you;
ENTITY* cameraAvatar = me;
while (event_type == EVENT_DETECT)
{
wait(1);
c_trace(my.x,you.x,IGNORE_ME|IGNORE_PASSABLE|ACTIVATE_SHOOT|IGNORE_CONTENT);
if (you == player)
{
alarm_mode = ON;
alarming();
wait(1);
}

}
if (event_type != EVENT_DETECT)
{
alarm_mode =OFF;
alarming();
}
}




Visit my site: www.masterq32.de