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=594880)



RemoveBuildingForPlayer - lucamsx - 24.11.2015

i've got a problem with this function.
basically i've deleted every single object from Pershing Square, and placed my own objects there.
and i've removed this goddamn thing:


everything was right, besides this:


it was still here. i was able to walk through it, but that was all.
it randomly appeared and disappeared if i was in like in 5-15 meters far from it and moved my camera just a little bit.
how can i get rid of it? i do not want to waste my work because of this.


Re: RemoveBuildingForPlayer - N0FeaR - 24.11.2015

Did u put RemoveBuildingForPlayer under onplayerconnect?


Re: RemoveBuildingForPlayer - lucamsx - 24.11.2015

of course i did.


Re: RemoveBuildingForPlayer - Kajlle - 24.11.2015

you probably created object id 4186 or 3985... just delete the Create(Dynamic)Object(...
or you have not removed this
RemoveBuildingForPlayer(playerid, 4057, 1479.5547, -1693.1406, 19.5781, 0.25);
RemoveBuildingForPlayer(playerid, 4210, 1479.5625, -1631.4531, 12.0781, 0.25);
RemoveBuildingForPlayer(playerid, 4186, 1479.5547, -1693.1406, 19.5781, 0.25);
RemoveBuildingForPlayer(playerid, 3985, 1479.5625, -1631.4531, 12.0781, 0.25);


Re: RemoveBuildingForPlayer - lucamsx - 24.11.2015

@Kajlle
thank you! it works fine now.