Posts: 146
Threads: 56
Joined: Feb 2014
Reputation:
0
how to enter the building or door by pressing the enter key
Posts: 97
Threads: 3
Joined: Feb 2013
Posts: 202
Threads: 5
Joined: Mar 2014
Reputation:
0
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.
Posts: 97
Threads: 3
Joined: Feb 2013
Quote:
Originally Posted by iBanner
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
Posts: 97
Threads: 3
Joined: Feb 2013
Quote:
Originally Posted by kurniarocki
what key of enter??
|
https://sampwiki.blast.hk/wiki/Keys