SA-MP Forums Archive
Key press enter building - 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: Key press enter building (/showthread.php?tid=270580)



Key press enter building - Stephanz - 20.07.2011

Hey.

I don't want to use the ''Crouch'' key anymore to enter a building. I just want to walk into a icon and then you enter the building. How can I make this? What do I have to delete from the script?

Thanks for helping. I'm using Vortex RolePlay 2 (https://sampforum.blast.hk/showthread.php?tid=252612)

~Stephanz


Re: Key press enter building - JaTochNietDan - 20.07.2011

Find the OnPlayerKeyStateChange callback and edit it accordingly to the key you wish to use or no key. Then you need to do some OnPlayerPickUpPickup callback work. I suggest you ask for this in the actual topic for that specific gamemode.


Re: Key press enter building - Stephanz - 21.07.2011

I did JaTochNietDan. Are you Dutch by the way?

Quote:
Originally Posted by Calg00ne
Посмотреть сообщение
You'll only be given help on changing settings and helping configure this gamemode in this thread. If you want what you requested, you're better off making a new thread.
So I still need help...


Re: Key press enter building - Harish - 27.03.2012

Quote:
Originally Posted by Stephanz
Посмотреть сообщение
I did JaTochNietDan. Are you Dutch by the way?



So I still need help...
Do not use any OnPlayerKeyStateChange and all.Just CreatePickup with pickupid and on OnPlayerPickUpPickup setplayerpos and interior id .it's very simple