Creating a simple /map - 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: Creating a simple /map (
/showthread.php?tid=434681)
Creating a simple /map -
wgdm - 03.05.2013
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?
Re: Creating a simple /map -
MattyG - 03.05.2013
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
Re: Creating a simple /map -
wgdm - 03.05.2013
Quote:
Originally Posted by MattyG
|
Thanks for your help (-: