SA-MP Forums Archive
RemoveBuildingForPlayer - 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: RemoveBuildingForPlayer (/showthread.php?tid=458963)



RemoveBuildingForPlayer - AfikAtashga - 19.08.2013

First, Sorry about my English level.

Hi.
When i using RemoveBuildingForPlayer function, it's work. but working bad.
When i'm enter to the removed object, and i looking to the ground, i can see the object (see - but it doesn't exists of cours)

I tried to play with the Distance, but it isn't work,
Someone can help me? Remove This Object FOREVER!.

My codes if it help:
Код:
	RemoveBuildingForPlayer(playerid, 3980, 1481.1875, -1785.0703125, 22.3828125, 500.0);
	RemoveBuildingForPlayer(playerid, 4002, 1479.8671875, -1790.3984375, 56.0234375, 500.0);
	RemoveBuildingForPlayer(playerid, 1231, 1479.88269, -1832.85364, 13.75042, 500.0);
	RemoveBuildingForPlayer(playerid, 1231, 1529.32288, -1832.76868, 13.72629, 500.0);
	RemoveBuildingForPlayer(playerid, 1231, 1432.20056, -1832.91565, 14.33422, 500.0);
	RemoveBuildingForPlayer(playerid, 1372, 1468.392211, -1847.381469, 13.257949, 500.0);
	RemoveBuildingForPlayer(playerid, 1372, 1485.845092, -1847.959350, 13.659350, 500.0);
	RemoveBuildingForPlayer(playerid, 1357, 1487.695312, -1848.109375, 12.812500, 500.0);
	RemoveBuildingForPlayer(playerid, 1230, 1488.953369, -1847.858764, 13.020190, 500.0);
	RemoveBuildingForPlayer(playerid, 1265, 1465.621093, -1847.909545, 12.970800, 500.0);
	RemoveBuildingForPlayer(playerid, 4171, 1503.398437, -1848.335937, 21.460939, 500.0);
	RemoveBuildingForPlayer(playerid, 4170, 1433.953125, -1844.406250, 21.421880, 500.0);
The real distance:
Код:
	RemoveBuildingForPlayer(playerid, 3980, 1481.1875, -1785.0703125, 22.3828125, 77.6380081);
	RemoveBuildingForPlayer(playerid, 4002, 1479.8671875, -1790.3984375, 56.0234375, 96.1105117);
	RemoveBuildingForPlayer(playerid, 1231, 1479.88269, -1832.85364, 13.75042, 4.9518890380859);
	RemoveBuildingForPlayer(playerid, 1231, 1529.32288, -1832.76868, 13.72629, 4.9518890380859);
	RemoveBuildingForPlayer(playerid, 1231, 1432.20056, -1832.91565, 14.33422, 4.9518890380859);
	RemoveBuildingForPlayer(playerid, 1372, 1468.392211, -1847.381469, 13.257949, 3.142135);
	RemoveBuildingForPlayer(playerid, 1372, 1485.845092, -1847.959350, 13.659350, 3.142135);
	RemoveBuildingForPlayer(playerid, 1357, 1487.695312, -1848.109375, 12.812500, 2.783954);
	RemoveBuildingForPlayer(playerid, 1230, 1488.953369, -1847.858764, 13.020190, 2.647931);
	RemoveBuildingForPlayer(playerid, 1265, 1465.621093, -1847.909545, 12.970800, 2.581803);
	RemoveBuildingForPlayer(playerid, 4171, 1503.398437, -1848.335937, 21.460939, 27.551355);
	RemoveBuildingForPlayer(playerid, 4170, 1433.953125, -1844.406250, 21.421880, 38.717815);
PLEASE HELP!


Re: RemoveBuildingForPlayer - AfikAtashga - 20.08.2013

UP..


Re: RemoveBuildingForPlayer - Vince - 20.08.2013

Need to remove the LOD. You could also find that answer in countless other topics AND on the wiki page.


Re: RemoveBuildingForPlayer - AfikAtashga - 20.08.2013

Quote:
Originally Posted by Vince
Посмотреть сообщение
Need to remove the LOD. You could also find that answer in countless other topics AND on the wiki page.
No, no.. i search, and i didn't find an answer, You cannot to help me ?


Re: RemoveBuildingForPlayer - Deividas1 - 20.08.2013

what about maybe there is a objets in other filterscript or something hmm, try next time to make a copy of gamemode.


Re: RemoveBuildingForPlayer - AfikAtashga - 21.08.2013

Quote:
Originally Posted by Deividas1
Посмотреть сообщение
what about maybe there is a objets in other filterscript or something hmm, try next time to make a copy of gamemode.
I tried to do anything, and i don't have any filterscript that i loaded, so nothing can do it, and it's only this object! only this.

the Los Santos maylor building, there's 2 objects over there
It remove the object, but when i look on the ground they back (but i can steel moved in the object)

Код:
	RemoveBuildingForPlayer(playerid, 4002, 1479.8671875, -1790.3984375, 56.0234375, 96.1105117);
	RemoveBuildingForPlayer(playerid, 1231, 1479.88269, -1832.85364, 13.75042, 4.9518890380859);



Re: RemoveBuildingForPlayer - AfikAtashga - 22.08.2013

up!!


Re : RemoveBuildingForPlayer - imftb - 22.08.2013

which software do you use to do the removebuilding code?
Don't use Mta, it's a knowed problem of it.
Use editor.


Re: RemoveBuildingForPlayer - PrinceKumar - 22.08.2013

Did u create same type of objects... At same place ?


Re: RemoveBuildingForPlayer - Cypress - 22.08.2013

Quote:
Originally Posted by Vince
Посмотреть сообщение
Need to remove the LOD. You could also find that answer in countless other topics AND on the wiki page.
That's right. Check JernejL's SA-MP Map editor which is removing the LOD.

Quote:
Originally Posted by JernejL
Посмотреть сообщение
This will generate code for deleting the object, and it's low-detail LOD (if any)
Here is the link.