Question about entrance and exit - 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: Question about entrance and exit (
/showthread.php?tid=516331)
Question about entrance and exit -
kamiliuxliuxliux - 30.05.2014
So, when player presses ENTER near a property, I want that player's screen slowly get black and when it's fully black, set player's pos, interior etc.. and after that player's screen slowly gets normal (not black).
How should I do that? If you know a link to a tutorial, send me!
+rep for helper.
Re: Question about entrance and exit -
NewerthRoleplay - 30.05.2014
OnPlayerKeyStateChange - to detect when enter has been pressed.
IsPlayerInRangeOfPoint - to see if they are near a house.
SetPlayerPos and
SetPlayerInterior - for setting the positions
Or you can just use an existing housing system (search the forums). But seriously the wiki is a marvellous tool that you should really check out before asking any questions in here.
Edit: Check ******' response for the fade out, completely forgot about that!