how to enter the building or door by pressing the enter key
#1

how to enter the building or door by pressing the enter key
Reply
#2

https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange

no spoon feeding (:
Reply
#3

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.
Reply
#4

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
Reply
#5

what key of enter??
Reply
#6

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

Reply
#7

Quote:
Originally Posted by kurniarocki
View Post
what key of enter??
https://sampwiki.blast.hk/wiki/Keys

pawn Code:
KEY_SECONDARY_ATTACK
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)