RemoveBuildingForPlayer
#1

Hello x)
I need 2 buildings to be removed
I added this on OnPlayerConnect:
Код:
	RemoveBuildingForPlayer(playerid, 4113,0,0,0, 10000);
	RemoveBuildingForPlayer(playerid, 4114, 0,0,0, 10000);
Now, sometimes I see buldings sometimes I don't, but when I see it I can go through it
I also tried to put exact coordinates and lower range but it doesn't work

http://i.imgur.com/EcwhbgG.jpg
http://i.imgur.com/uKj8rrt.jpg
Reply
#2

If the XYZ are 0,0,0, its not going to work for a start.
Reply
#3

As I said, it's same thing even with exact coordinates.
Reply
#4

I hopped in the Map Editor and deleted the buildings for you, try this.

Oh and do you have any idea why it didn't work? Cause you did not input the coordinates as Alexander said above.

PHP код:
RemoveBuildingForPlayer(playerid41131345.6250, -1552.960948.51560.25);
RemoveBuildingForPlayer(playerid41141350.4141, -1512.007823.04690.25); 
Reply
#5

Thank you, but it still doesn't work. Still see both buildings and can go through them.
Reply
#6

Which callback did you put your code under?
Reply
#7

OnPlayerConnect
Reply
#8

Solved - If anyone is interested how:
I had to remove 2 object models for one building - 1 ID is for collision and another is for visual part of the building.
Guys, thank you for help
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)