Scripting Keypads? - 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: Scripting Keypads? (
/showthread.php?tid=336419)
Scripting Keypads? -
ReneG - 22.04.2012
Hello, I'm pretty sure everyone here has seen in a roleplay server, where a player presses the 'F' key near a keypad, an animation is applied, and the gate next to the keypad moves.
Is it as simple as using OnPlayerKeyStateChange, and IsPlayerInRangeOfPoint to do this? Or is there something more too it?
Re: Scripting Keypads? -
Macluawn - 22.04.2012
It is as simple as using OnPlayerKeyStateChange and IsPlayerInRangeOfPoint to do that.