Restricting game objects? - 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: Restricting game objects? (
/showthread.php?tid=605698)
Restricting game objects? -
GunZsmd - 23.04.2016
Hi guys.
I'm having a problem here: theres an object that appears in some house ints that is creating errors and then some furniture just vanish. The object is the id 2854 (
http://dev.prineside.com/en/gtasa_sa...-gb_bedmags04/) and i would like to remove the object from all locations on the game. Is that possible? if it is could you tell me how to do it?
I would apreciate if u guys could help me
cumpz,
Vasco
Re: Restricting game objects? -
NaS - 23.04.2016
Use RemoveBuildingForPlayer in OnPlayerConnect. Set the coordinates to 0.0, 0.0, 0.0 and the radius to at least 4250. That will remove that model ID everywhere on the map.
Re: Restricting game objects? -
Vince - 23.04.2016
You can try using RemoveBuildingForPlayer from the center of the map with radius 4243 (Pythagorean theorem to include the whole map).
Edit: ^ faster.
Re: Restricting game objects? -
GunZsmd - 23.04.2016
Thanks guys. +REP u both