Deleting entrance to garage in SF - 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: Deleting entrance to garage in SF (
/showthread.php?tid=428857)
Deleting entrance to garage in SF -
DJGama101 - 07.04.2013
Hi, I was wondering if there is any way to delete entrance to garage in SF near train station. I know that i should use
https://sampwiki.blast.hk/wiki/RemoveBuildingForPlayer
Re: Deleting entrance to garage in SF -
Desi_Dude - 07.04.2013
Use a tool to get the coordinates.
https://sampforum.blast.hk/showthread.php?tid=282801
After you get them post them under
Код:
public OnPlayerConnect(playerid)
, like
Код:
RemoveBuildingForPlayer(playerid, ......
Hope this helps.
Re: Deleting entrance to garage in SF -
DJGama101 - 07.04.2013
Yes i know, but how to find out what object id i should remove

? And what if the gate is attached to whole garage object?
Re: Deleting entrance to garage in SF -
Desi_Dude - 07.04.2013
You can remove any object i think. But i'm not 100% sure.
Re: Deleting entrance to garage in SF -
BigGroter - 07.04.2013
Let me get on my PC and I'll do it for you. Expect a PM or a reply here soon.
Re: Deleting entrance to garage in SF -
judothijs - 07.04.2013
Use this:
https://sampforum.blast.hk/showthread.php?tid=282801
Select the object in the editor, press 'delete', then click on 'Generate code' and copy that to your script.
Re: Deleting entrance to garage in SF -
BigGroter - 07.04.2013
pawn Код:
RemoveBuildingForPlayer(playerid, 11327, -2026.9141, 129.4063, 30.4531, 0.25);
pawn Код:
RemoveBuildingForPlayer(playerid, 11313, -1935.8594, 239.5313, 35.3516, 0.25);
pawn Код:
RemoveBuildingForPlayer(playerid, 11319, -1904.5313, 277.8984, 42.9531, 0.25);
These are the ones that worked without completely messing up your whole game.
Re: Deleting entrance to garage in SF -
DJGama101 - 07.04.2013
Thanks all