SA-MP Forums Archive
Help me [Remove] - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help me [Remove] (/showthread.php?tid=77595)



Help me [Remove] - Sean12 - 12.05.2009

Hi, I was wondering how I can make it so when someone goes to the entrance of a building, they just press "ENTER" or "F" to go inside, can someone help me please?


Re: Help me - Weirdosport - 12.05.2009

In OnPlayerKeyStateXChange you need to check that newkeys-oldkeys = (whatever number enter or f are (check the wiki)).

Then you need IsPlayerInArea or PlayerToPoint to check if they're in the right location.


Re: Help me - Sean12 - 12.05.2009

Thanks.