menu - 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: menu (
/showthread.php?tid=77643)
menu -
Gamer007 - 13.05.2009
how to do this kind of menu in the right corner below? and the white commands?
/imageshack/img216/8513/samp001q.png
Re: menu -
member - 13.05.2009
It's a menu.
Step by step:
https://sampwiki.blast.hk/wiki/Creating_a_simple_Menu
This is very good as well:
http://forum.sa-mp.com/index.php?topic=44596.0
made by Mack[HD]
Re: menu -
Gamer007 - 13.05.2009
You think I'm dumb right? I know how to create menu's read again what i posted above How to cREATE IN THE CORNER AND THE WHITE COMMANDS I know how to do menu's except look what i am asking for
Re: menu -
member - 13.05.2009
i never said that you were dumb. If you were not dumb you would know that the position of the menu depends on the x,y position and width of the menu.
So find your
pawn Код:
CreateMenu(title, columns, Float:x, Float:y, Float:col1width, Float:col2width);
and change the argument values that you do have. Fiddle around with the values and adjust it. It's gonna be hard for someone to tell you the exact x,y positions as it depends also on the width and height of your menu. There is no Align feature for menu's.
Also, for the white 'commands' texts use the ~w~ before your text.
For example:
You have:
pawn Код:
AddMenuItem(teleportmenu, 1, "Grove Street");
change it to:
pawn Код:
AddMenuItem(teleportmenu, 1, "~w~Grove Street");
to get the white.
Hope that helps.
Re: menu -
Gamer007 - 13.05.2009
well but how to get the coordinates then?
Re: menu -
Weirdosport - 13.05.2009
Either trial and error (they're based on a 640 x 480 screen I believe) or you use a program like this:
http://dev.sacnr.com/samp_textdraws.html
It's designed for Textdraws, but it should still give you the co-ordinates of the top left hand corner of a thing