Cops shouldn't be able to place Road blocks close to doors

ProfessorLive wrote:
let Mike do it like this:
road blocks can only be placed on ROADS
He must first define ROADS, then assign functions


Would be much easier to just do a radius check for interior entrances and deny if too close
Played SA-MP for longer than I care to admit. Previously developer of now-defunct SACNR.

Personal website - https://markski.ar
SAMonitor - https://sam.markski.ar
ProfessorLive wrote:
let Mike do it like this:
road blocks can only be placed on ROADS
He must first define ROADS, then assign functions

I could actually do this, as you can find the closest road to the player, but it won't be at all accurate. But there are probably situations where cops might want to place those objects in other places, and I don't want to prevent that.

But I will definitely add a door check..