Creating a simple /map
#1

Hi, I have been starting to learn how to script, I have got the hang of some of the functions etc. I made a simple admin Jetpack system (-:

I wanted to create a command /map that displays a dialog with options, and you can click on the options to place a checkpoint. I also want to have a /kc or something to kill a checkpoint if the player wants. I have all the coordinates for the points I want to set, I just don't know how to go about it. Can anyone help?
Reply
#2

You'll need to make a command that does ShowPlayerDialog: https://sampwiki.blast.hk/wiki/ShowPlayerDialog
Then you'll need to add some script under OnDialogResponse: https://sampwiki.blast.hk/wiki/OnDialogResponse
And finally, set each list item to a different SetPlayerCheckpoint: https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint

And for the /kc, use DisablePlayerCheckpoint: https://sampwiki.blast.hk/wiki/DisablePlayerCheckpoint

Se how far you can get with those, and come back if you are struggling, and we can help you
Reply
#3

Quote:
Originally Posted by MattyG
Посмотреть сообщение
You'll need to make a command that does ShowPlayerDialog: https://sampwiki.blast.hk/wiki/ShowPlayerDialog
Then you'll need to add some script under OnDialogResponse: https://sampwiki.blast.hk/wiki/OnDialogResponse
And finally, set each list item to a different SetPlayerCheckpoint: https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint

And for the /kc, use DisablePlayerCheckpoint: https://sampwiki.blast.hk/wiki/DisablePlayerCheckpoint

Se how far you can get with those, and come back if you are struggling, and we can help you
Thanks for your help (-:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)