Right, paste this into a file and save it as alarmScript.sqs
_object = _this select 0
_duration = _this select 1
_sound = _this select 2
_object say _sound
@(_time >= _duration)
deleteVehicle _object
exit
Now place an object on the map (can be anything, just name it)
And when you want to start your alarm, you use:
[objectname,20,"Alarm"] exec "alarmScript.sqs"objectname is the name of the object where the alarm will originate, 20 is the time in seconds it will last, and "Alarm" is the sound you want to use, alarm in this case.
Viel glück
EDITChanged a bug in the script, now it shoul work.