SA-MP Forums Archive
Textdraw when player aproaches door. - 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: Textdraw when player aproaches door. (/showthread.php?tid=656955)



Textdraw when player aproaches door. - Seifspeed - 28.07.2018

Hello everyone.
I want to show the player a textdraw when he stands in front of a house door.
The problem is I don't know where to insert this logic. On what callback??


Re: Textdraw when player aproaches door. - Heress - 28.07.2018

Maybe this:
https://sampwiki.blast.hk/wiki/OnPlayerEnterCheckpoint
https://sampwiki.blast.hk/wiki/IsPlayerInCheckpoint


Re: Textdraw when player aproaches door. - AdamsLT - 28.07.2018

If you use Incognito's streamer, then you can create dynamic areas around the houses and when somebody is close enough, have the textdraw displayed,

https://github.com/samp-incognito/sa...wiki/Callbacks
OnPlayerEnterDynamicArea(playerid, areaid)
OnPlayerLeaveDynamicArea(playerid, areaid)

https://github.com/samp-incognito/sa...Natives-(Areas)

or

If you have house pickups, then show the textdraw when a player picks up the pickup (OnPlayerPickUpPickup).
https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup