SA-MP Forums Archive
Prevent explosion of a gas stand - gas stations - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Prevent explosion of a gas stand - gas stations (/showthread.php?tid=661013)



Prevent explosion of a gas stand - gas stations - TheRohlikar - 19.11.2018

Sup guys,

Im wondering, how to prevent an explosion when drive into a gas stand (or how it's called in ENG)...

My idea was to put an invisible object in the middle/next to it (depends on a size of that invisible object) and try to prevent with that.

Any other ideas?

The point I want to make is, that nobody could actually harm anybody close to the explosion... If one idiot would drive into gas stand, it's his problem.... but the rest in the area?

Thanks, hope u understand.


Re: Prevent explosion of a gas stand - gas stations - Mike861 - 19.11.2018

You could freeze the player OnPlayerUpdate if he gets too close to gas stations position.


Re: Prevent explosion of a gas stand - gas stations - TheRohlikar - 19.11.2018

Quote:
Originally Posted by Mike861
Посмотреть сообщение
You could freeze the player OnPlayerUpdate if he gets too close to gas stations position.
Nope, that's not what I want to do...


Re: Prevent explosion of a gas stand - gas stations - DIRTYBYT3 - 19.11.2018

GameTextForPlayer "WARNING BLA BLA"...


Re: Prevent explosion of a gas stand - gas stations - TheRohlikar - 19.11.2018

Nope.

I need to save people "around the explosion"... That's what I need...


Re: Prevent explosion of a gas stand - gas stations - TheToretto - 19.11.2018

Put some invisible objects to prevent the player from reaching the critical point.


Re: Prevent explosion of a gas stand - gas stations - NaS - 19.11.2018

Remove it via RemoveBuildingForPlayer and replace it with a static one that doesn't explode. There are a few ones.

Even blocking it off would not suffice, as an exploding car would also blow it up and cause an even bigger explosion (except you don't care about this case).


Re: Prevent explosion of a gas stand - gas stations - TheRohlikar - 19.11.2018

There are some static? Great news! Didn't know that, thanks.