[HELP] Anti Camp Script

Hello everyone,

So i'm pretty new to the whole scripting part, and i'm looking for something that i haven't been able to find on the big interwebs. Well atleast not a new, working and up to date version of it.

So the thing i'm looking for is a script to prevent players from camping, so if a player hasn't moved for 5 minutes then make something happen (like a lot of smoke, screams whatever).

Does anyone have any clue how to do this?

Greatings, FrankNLD
 
here is an idea.

script starts up with server and for each player it create trigger with circular radius of 100m or whatever distance you want to call 'camping'


the trigger activation is if player is present and starts a countdown for 5 minutes . at 5 min it means if the player is still within the trigger area and you can play a sound like "HEY, OVER HERE !" not sure whats included but you can use some default arma sounds i am sure.
if the player is outside the trigger area it moves the trigger location to players new pos and restarts countdown.

the deactivation event could trigger the countdown stop and new trigger location
 
Back
Top