Checkpoints
#1

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

https://sampwiki.blast.hk/wiki/Function:SetPlayerCheckpoint
Reply
#3

Yes but it won't hide the checkpoint if the player is not in that little area anymore.
Reply
#4

https://sampwiki.blast.hk/wiki/DisablePlayerCheckpoint
Reply
#5

Quote:
Originally Posted by <Weponz>
Посмотреть сообщение
hes probably going to need IsPlayerInArea + your quote.
Reply
#6

IsPlayerInRangeOfPoint.
Reply
#7

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

Use IsPlayerInRangeOfPoint, get his pos, and if he is near that range, show him the 3dtext label.
Reply
#9

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?
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)