SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 08/04/2014, 05:10 AM   #1
kurniarocki
Big Clucker
 
Join Date: Feb 2014
Posts: 146
Reputation: 0
Question how to enter the building or door by pressing the enter key

how to enter the building or door by pressing the enter key
kurniarocki is offline   Reply With Quote
Old 08/04/2014, 05:18 AM   #2
Ari
Banned
 
Join Date: Feb 2013
Location: /dev/retrd
Posts: 94
Reputation: 13
Default Re: how to enter the building or door by pressing the enter key

http://wiki.sa-mp.com/wiki/OnPlayerKeyStateChange

no spoon feeding (:
Ari is offline   Reply With Quote
Old 08/04/2014, 05:27 AM   #3
iBanner
Huge Clucker
 
iBanner's Avatar
 
Join Date: Mar 2014
Location: Galaxy
Posts: 202
Reputation: 28
Default Re: how to enter the building or door by pressing the enter key

Also use IsPlayerInCheckpoint to detect if player is inside the checkpoint near the door (you can make a checkpoint streamer by incognito). Then make a textdraw or gametextforplayer showing like "Press Enter to access the house" when player step on the checkpoint.
__________________
Under Development

iBanner is offline   Reply With Quote
Old 08/04/2014, 05:33 AM   #4
Ari
Banned
 
Join Date: Feb 2013
Location: /dev/retrd
Posts: 94
Reputation: 13
Default Re: how to enter the building or door by pressing the enter key

Quote:
Originally Posted by iBanner View Post
Also use IsPlayerInCheckpoint to detect if player is inside the checkpoint near the door. Then make a textdraw or gametextforplayer showing like "Press Enter to access the house"
Or be more efficient and just cross reference door pos and player pos.

Whack a dynamic version in there, placing down and just reference the SQL
Ari is offline   Reply With Quote
Old 08/04/2014, 05:39 AM   #5
kurniarocki
Big Clucker
 
Join Date: Feb 2014
Posts: 146
Reputation: 0
Default Re: how to enter the building or door by pressing the enter key

what key of enter??
kurniarocki is offline   Reply With Quote
Old 08/04/2014, 05:42 AM   #6
iBanner
Huge Clucker
 
iBanner's Avatar
 
Join Date: Mar 2014
Location: Galaxy
Posts: 202
Reputation: 28
Default Re: how to enter the building or door by pressing the enter key

Quote:
Originally Posted by kurniarocki View Post
what key of enter??
Im not sure if this

Quote:
~k~~VEHICLE_ENTER_EXIT~
try ari first post you can find the key their.

EDIT: Omg fail. It should be
Quote:
KEY_SECONDARY_ATTACK
__________________
Under Development

iBanner is offline   Reply With Quote
Old 08/04/2014, 05:43 AM   #7
Ari
Banned
 
Join Date: Feb 2013
Location: /dev/retrd
Posts: 94
Reputation: 13
Default Re: how to enter the building or door by pressing the enter key

Quote:
Originally Posted by kurniarocki View Post
what key of enter??
http://wiki.sa-mp.com/wiki/Keys

pawn Code:
KEY_SECONDARY_ATTACK
Ari is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enter Key to enter in a building MarcoWesley Scripting Help 16 02/06/2012 05:58 PM
Key press enter building Stephanz Scripting Help 3 27/03/2012 12:26 PM
How to enter building using ALT? Sensitive Help Archive 7 28/04/2011 05:31 PM
How to enter a building using ALT? Sensitive Help Archive 3 27/04/2011 11:33 AM
Press "enter" to /enter a building. .:*Starstrike*:. Help Archive 8 02/08/2010 01:24 AM


All times are GMT. The time now is 12:25 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.