RemoveBuildingFromPlayer - 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: RemoveBuildingFromPlayer (
/showthread.php?tid=496215)
RemoveBuildingFromPlayer -
FaZeRs - 21.02.2014
So i have removed building from map, but it's still on map but in different possition
PHP код:
RemoveBuildingForPlayer(playerid, 4026, 1497.7969, -1543.7109, 17.5547, 0.25);
http://www.bildites.lv/images/ncz7bj812zv4l9u0ley5.png
http://www.bildites.lv/images/7x2qef2wz0gp8nmriszs.png
Re: RemoveBuildingFromPlayer -
itsCody - 21.02.2014
you sure you got all the objects to be removed?? Looks like there's more to it
Re: RemoveBuildingFromPlayer -
Avi Raj - 21.02.2014
To remove the default objects, Put them under OnPlayerConnect not on OnGameModeInIt.
and if you think it is in other place, then you might had copied the object.
Re: RemoveBuildingFromPlayer -
FaZeRs - 21.02.2014
I removed that mapping what was under it deleted RemoveBuildingFromPlayer but still got the same
http://www.bildites.lv/images/uarlk6afw852jth7bvh.png
Re: RemoveBuildingFromPlayer -
Flake. - 21.02.2014
Try this,
pawn Код:
RemoveBuildingForPlayer(playerid, 4026, 1497.7969, -1543.7109, 17.5547, 0.25);
RemoveBuildingForPlayer(playerid, 4218, 1497.7031, -1546.6172, 43.9922, 0.25);
RemoveBuildingForPlayer(playerid, 4016, 1497.7969, -1543.7109, 17.5547, 0.25);
I tried it and it worked for me:
http://puu.sh/74bYh.jpg
Re: RemoveBuildingFromPlayer -
FaZeRs - 21.02.2014
It didn't remove building, but ground came back
Re: RemoveBuildingFromPlayer -
Flake. - 21.02.2014
Try loading a bare gamemode and placing the code under OnPlayerConnect then compile and check if it works.
Re: RemoveBuildingFromPlayer -
FaZeRs - 21.02.2014
I have different system created to remove building
PHP код:
RemoveBuildings(playerid)
{
}
// And under OnPlayerConnect
RemoveBuildings(playerid);
I think if i would put that in other gamemode orcourse it would work. I will check what's going on with my mapping filterscript.