SA-MP Forums Archive
Area 51 - How to open this gate - 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: Area 51 - How to open this gate (/showthread.php?tid=649645)



Area 51 - How to open this gate - RedGun2015 - 12.02.2018

Hello guys, how can I open this gate https://i.imgur.com/407yx8s.jpg

Like this: https://i.imgur.com/quajKAe.jpg


Re: Area 51 - How to open this gate - Mugala - 12.02.2018

you have to delete default object with RemoveBuildingForPlayer and than, create a new objects instead of this.
https://sampwiki.blast.hk/wiki/RemoveBuildingForPlayer

19312 - Whole fence object ID
19313 - Gate object ID

MoveObject <-- function to move objects (open/close gates)
https://sampwiki.blast.hk/wiki/MoveObject


Re: Area 51 - How to open this gate - PepsiCola23 - 12.02.2018

if you simply want to remove the gate you just delete it with
PHP код:
RemoveBuildingForPlayer 



Re: Area 51 - How to open this gate - RedGun2015 - 12.02.2018

Quote:
Originally Posted by Mugala
Посмотреть сообщение
you have to delete default object with RemoveBuildingForPlayer and than, create a new objects instead of this.
https://sampwiki.blast.hk/wiki/RemoveBuildingForPlayer

19312 - Whole fence object ID
19313 - Gate object ID

MoveObject <-- function to move objects (open/close gates)
https://sampwiki.blast.hk/wiki/MoveObject
Thanks bro!


Re: Area 51 - How to open this gate - Mugala - 12.02.2018

you're welcome