Checkpoints - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Checkpoints (
/showthread.php?tid=187762)
Checkpoints -
marko94 - 04.11.2010
How can I create a script that shows me a little checkpoint when I stand infront of a house door? I'll show you some pictures down here:
This is how I want to look like when someone stands infront of the house, but not infront of the door:
/imageshack/img266/8361/samp720.jpg
And when someone is right infront of the door, I want to display him a little checkpoint saying in the chat something like " You are standing on X_Y's porch | Available commands: /buyhouse etc "
/imageshack/img522/4911/samp719.jpg
Thanks in advance.
Re: Checkpoints -
<Weponz> - 04.11.2010
https://sampwiki.blast.hk/wiki/Function:SetPlayerCheckpoint
Re: Checkpoints -
marko94 - 04.11.2010
Yes but it won't hide the checkpoint if the player is not in that little area anymore.
Re: Checkpoints -
<Weponz> - 04.11.2010
https://sampwiki.blast.hk/wiki/DisablePlayerCheckpoint
Re: Checkpoints -
OldDirtyBastard - 04.11.2010
Quote:
Originally Posted by <Weponz>
|
hes probably going to need IsPlayerInArea + your quote.
Re: Checkpoints -
The_Moddler - 04.11.2010
IsPlayerInRangeOfPoint.
Re: Checkpoints -
marko94 - 04.11.2010
And how can I integrate it with the house system? I mean, right now when I stand infront of a door/house, it displays a 3D Text Label.
Re: Checkpoints -
The_Moddler - 04.11.2010
Use IsPlayerInRangeOfPoint, get his pos, and if he is near that range, show him the 3dtext label.
Re: Checkpoints -
marko94 - 04.11.2010
Quote:
Originally Posted by The_Moddler
Use IsPlayerInRangeOfPoint, get his pos, and if he is near that range, show him the 3dtext label.
|
And I should do the same if I want to display him the checkpoint ( when he is infront of a door ) right?
Re: Checkpoints -
The_Moddler - 04.11.2010
Quote:
Originally Posted by marko94
And I should do the same if I want to display him the checkpoint ( when he is infront of a door ) right?
|
Yes, it will be better if you use an streamer.