SA-MP Forums Archive
how can i make this - 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: how can i make this (/showthread.php?tid=385006)



how can i make this - Shane_Kingston - 14.10.2012

Hey guys can ya'll ell me how to make an automatic gate with passwords ?


Re: how can i make this - Shane_Kingston - 14.10.2012

+ 1 rep


Re: how can i make this - [HK]Ryder[AN] - 14.10.2012

Use these functions
CreateObject - for mapping
MoveObject - for moving an object(open and close gate with this)
IsPlayerInRangeOfPoint - check if player is near gate
and then if he is near the gate show him a dialog or something asking password, check fi its right and then move the gate