player message via trigger

Nagash

New Member
hi. sorry if this has been discussed before, i've searched the forum and the net and i can't find anything to tell me whats what... maybe i'm using the wrong phrases/keywords, i only started out with addons for arma/dayz a couple days ago, so maybe it's me being a n00b... so yeah, if the below is obvious and explained already, please do me a favour and link me in the right direction :D

ok, the issue.

I have an Origins server, but now we've gone with a Epoch one as well, and what we do is no PvP servers, but with PvP areas, and I'm adding in PvP zones on the map to our server.

So far i have used Markers to mark out the pvp area and location tags to label these areas, and thats all working fine with me linking to my own .sqf files.

Now what i am setting up is a trigger that is the same size as the marker. When a player enters the marker it says something like "Entering PVP Zone" and similarly, when you leave it says "Leaving PVP Zone".

I have it all working like 99% but i'm missing something or doing something wrong because when someone triggers the message, that message appears on everyones screen.

The code i'm using is...
Code:
_trg = createTrigger ["EmptyDetector", [5358.8242, 8579.9707, -336.42502]];
_trg setTriggerArea [500, 500, 0, false];
_trg setTriggerActivation ["ANY", "PRESENT", true];
_trg setTriggerType "SWITCH";
_trg setTriggerText "pvpzone1";
_trg setTriggerStatements ["this", "titleText [""!!! !!! PVP Zone !!! !!!"",""PLAIN DOWN""]", "titleText [""You have left the PVP Zone (*Phew*)"",""PLAIN DOWN""]"];
pvp1 = _this;
_trigger_1 = _this;

this is in it's own sqf file and called up via the init.sqf with the code
Code:
[] execVM "nags\nagsensor.sqf";

After a few days experimenting with various ways of doing that i can find here and elsewhere i'm starting to go insane :D, so all i really need is someone to complete the above code for me or tell me how to make it so that an onscreen message appears to the player only and isn't team or server based.
 
Back
Top