RemoveBuildingFromPlayer
#1

So i have removed building from map, but it's still on map but in different possition

PHP код:
RemoveBuildingForPlayer(playerid40261497.7969, -1543.710917.55470.25); 
http://www.bildites.lv/images/ncz7bj812zv4l9u0ley5.png
http://www.bildites.lv/images/7x2qef2wz0gp8nmriszs.png
Reply
#2

you sure you got all the objects to be removed?? Looks like there's more to it
Reply
#3

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.
Reply
#4

I removed that mapping what was under it deleted RemoveBuildingFromPlayer but still got the same

http://www.bildites.lv/images/uarlk6afw852jth7bvh.png
Reply
#5

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
Reply
#6

It didn't remove building, but ground came back
Reply
#7

Try loading a bare gamemode and placing the code under OnPlayerConnect then compile and check if it works.
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)