PDA

View Full Version : [Include] [INC] Fallout's New Menu Styles. Updated: V4 (new functions)


ғαιιοцт
13/02/2009, 10:14 PM
Fallout's New Menu Styles



I made a new menu type for sa-mp because the normal one can only have 12 rows, you can't change it's colors, ...
This one is easy to use (most of the functions are the same as the normal ones)

Features:
- Maximum rows of a menu = 20 now (you can change it to more but than you may exceed the maximum amount of textdraws if you have many menus)
- You can change the color of every part of the menu (text colors, background colors, box colors)
- Adjustable position
- Adjustable box length (the length of the background of your menu)

Functions:
native F_CreateMenu(title[], Float:x, Float:y, Float:boxlength); //returns the ID of the created menu (starting at ID 0)
native F_DestroyMenu(menuid);
native F_HideMenuForPlayer(menuid, playerid);
native F_ShowMenuForPlayer(menuid, playerid);
native F_AddMenuItem(menuid, title[]); //returns the ID of the created menu item (starting at ID 0)

native F_SetMenuTitleTextColor(menuid, color);
native F_SetMenuTitleBgColor(menuid, color); //(bg = background)
native F_SetMenuTitleBoxColor(menuid, color);

native F_SetMenuItemTextColor(menuid, color);
native F_SetMenuItemBgColor(menuid, color); //(bg = background)
native F_SetMenuItemBoxColor(menuid, color);

native F_SetMenuSelectedItemTextColor(menuid, color);
native F_SetMenuSelectedItemBgColor(menuid, color); //(bg = background)
native F_SetMenuSelectedItemBoxColor(menuid, color);

//Only for V4:
native F_ShowMenuForAll(menuid);
native F_HideMenuForAll(menuid);
native F_SelectMenuRow(menuid, playerid, row);

Example:
I've made a little example for you:
the 1st menu is an example of a menu with submenus and standard colors (if you didn't change the standard colors)
the 2nd, 3rd and 4th are the submenus of the 1st example, and have different collor combinations and positions (just as an example)

link of example code:
http://pastebin.com/f1c9eebd0

pictures of examples:
http://cdn.solidfiles.net/i/c04p.png
http://cdn.solidfiles.net/i/0A98.png
http://cdn.solidfiles.net/i/EvjP.png
http://cdn.solidfiles.net/i/PdHv.png

Download:

V1
http://solidfiles.com/info_imgs/iTcP.jpg (http://solidfiles.com/d/iTcP)

V2
http://solidfiles.com/info_imgs/UV6Q.jpg (http://solidfiles.com/d/UV6Q)

V3
http://solidfiles.com/info_imgs/AHr3.jpg (http://solidfiles.com/d/AHr3)

V4
http://solidfiles.com/info_imgs/RqYF.jpg (http://solidfiles.com/d/RqYF)

How to install:

V1
- Put this inc in this folder: server\pawno\include\<here>
- Add #include <F_Menu> to any script where you want to use it.
- Add F_OnPlayerKeyStateChange(playerid, newkeys); under OnPlayerKeyStateChange(playerid, newkeys, oldkeys)

V2
- Put this inc in this folder: server\pawno\include\<here>
- Add #include <F_Menu> to any script where you want to use it.
- Add F_Menu_OnInit(); under OnFilterScriptInit() or under OnGameModeInit() (depends on what type of script you use)

V3
- Put this inc in this folder: server\pawno\include\<here>
- Add #include <F_Menu> to any script where you want to use it.
- Add F_Menu_OnInit(); under OnFilterScriptInit() or under OnGameModeInit() (depends on what type of script you use)

V4
- Put this inc in this folder: server\pawno\include\<here>
- Add #include <F_Menu> to any script where you want to use it.
- Add F_Menu_OnInit(); under OnFilterScriptInit() or under OnGameModeInit() (depends on what type of script you use)

Keys:

V1
menu item up = VEHICLE_LOOKLEFT
menu item down = VEHICLE_LOOKRIGHT
exit = VEHICLE_ENTER_EXIT (enter)
select = PED_SPRINT (shift or space)

V2
menu item up = arrow up
menu item down = arrow down
exit = VEHICLE_ENTER_EXIT (enter)
select = PED_SPRINT (shift or space)

V3
menu item up = arrow up
menu item down = arrow down
exit = VEHICLE_ENTER_EXIT (enter)
select = PED_SPRINT (shift or space)

V4
menu item up = arrow up
menu item down = arrow down
exit = VEHICLE_ENTER_EXIT (enter)
select = PED_SPRINT (shift or space)

Changelog:

V1
first release

V2
- Keys changed to arrow keys instead of numpads.
(like normal menu's now)
- When holding down a key, you can scroll faster to another menu-item.

V3
- Fixed some bugs.

V4
- Code optimised.
- New functions:
native F_ShowMenuForAll(menuid);
native F_HideMenuForAll(menuid);
native F_SelectMenuRow(menuid, playerid, row);

How to use:
The menus (F_CreateMenu()) return an id, so you can do this at the top:

new MyMenu;

then you assign MyMenu to a menu (possibly under OnGameModeInit):

MyMenu = F_CreateMenu(title[], Float:x, Float:y);

next step: adding rows (menu items) to the menu:

F_AddMenuItem(MyMenu, "Row1");
F_AddMenuItem(MyMenu, "Row2");
F_AddMenuItem(MyMenu, "Row3");
//...

Unnecessary: changing the colors of the menu:

you can use:
F_SetMenuTitleTextColor(menuid, color);
F_SetMenuTitleBgColor(menuid, color); (bg = background)
F_SetMenuTitleBoxColor(menuid, color);

F_SetMenuItemTextColor(menuid, color);
F_SetMenuItemBgColor(menuid, color); (bg = background)
F_SetMenuItemBoxColor(menuid, color);

F_SetMenuSelectedItemTextColor(menuid, color);
F_SetMenuSelectedItemBgColor(menuid, color); (bg = background)
F_SetMenuSelectedItemBoxColor(menuid, color);

example:
F_SetMenuTitleTextColor(MyMenu , 0xFF3399AA);

and at least: show the code:
F_ShowMenuForPlayer(MyMenu, playerid);

or hide it:
F_HideMenuForPlayer(MyMenu, playerid);

and maybe destroy it:
F_DestroyMenuForPlayer(MyMenu);

Maercell
13/02/2009, 10:19 PM
Woowww... really nice!
Better than the normal menus.
Well done

ғαιιοцт
13/02/2009, 10:20 PM
Woowww... really nice!
Better than the normal menus.
Well done

thx Maercell :D
I hope it works good, i didn't find any bugs yet and let's keep it that way ><

harrold
13/02/2009, 10:28 PM
Good man i had the same idea xD

Jese
13/02/2009, 10:48 PM
Good work Fallout! :D

ғαιιοцт
13/02/2009, 10:49 PM
Good man i had the same idea xD

Good work Fallout! :D

ty :mrgreen:

Grove
13/02/2009, 10:52 PM
They look nice, but what is wrong with the normal menus?

ғαιιοцт
13/02/2009, 10:53 PM
They look nice, but what is wrong with the normal menus?

only 12 menu rows (or 13?) and this looks better (i think because you can make as many color combinations as you want)

Kanji_Suzuki
13/02/2009, 11:33 PM
wow love the look of it, well done

Dinero
14/02/2009, 12:54 AM
Looks very cool man nice work!

ғαιιοцт
14/02/2009, 08:56 AM
wow love the look of it, well done

Looks very cool man nice work!

thanks

farse
14/02/2009, 09:02 AM
Lol, look nice, :D
Great job ;)

ғαιιοцт
14/02/2009, 09:41 AM
Lol, look nice, :D
Great job ;)

ty Farse

I've just tested the menus with more than 1 player (didn't test that before ><)
and everything works great :)

MenaceX^
14/02/2009, 11:06 AM
Nice idea ; )

SpiderPork
14/02/2009, 11:11 AM
Well done, Fallout. I am almost sure I'll be using it.

ғαιιοцт
14/02/2009, 01:00 PM
Nice idea ; )

yea the idea was cool, and easy to make but I'll make a new version where it looks better ^^
Well done, Fallout. I am almost sure I'll be using it.

thanks

AlExAlExAlEx
15/02/2009, 10:13 PM
i love the 2nd example but i have only one problem..
i can't go down/up with the menu ingame.. wtf is
menu item up = VEHICLE_LOOKLEFT
menu item down = VEHICLE_LOOKRIGHT

ғαιιοцт
15/02/2009, 10:14 PM
i love the 2nd example but i have only one problem..
i can't go down/up with the menu ingame.. wtf is
menu item up = VEHICLE_LOOKLEFT
menu item down = VEHICLE_LOOKRIGHT

i have it on my numpads (4 and 6)
it's stupid that i can't use the up and down arrows :( they aren't detected :|

i love the 2nd example
you can make as many color combinations as you want, it's not like it that you can only choose from one of the 4 exapmles

AlExAlExAlEx
16/02/2009, 01:20 AM
would be nice to go with down and up arrow.

Nubotron
16/02/2009, 11:15 AM
It looks like yom/0rb's menus, but his are a lot better :lol:, but yours is not bad!

ғαιιοцт
16/02/2009, 03:29 PM
would be nice to go with down and up arrow.

the up and down keys aren't detected :( (not when on foot)


It looks like yom/0rb's menus, but his are a lot better :lol:, but yours is not bad!

:o i thought i was the 1st one to make this >< (0rb didn't release it right?)

AlExAlExAlEx
17/02/2009, 12:33 AM
would be nice to go with down and up arrow.

the up and down keys aren't detected :( (not when on foot)


It looks like yom/0rb's menus, but his are a lot better :lol:, but yours is not bad!

:o i thought i was the 1st one to make this >< (0rb didn't release it right?)

well i would definitly use this on my server but i can't tell everyone that joins "You know..i got custom menus you have to bind first your keys in options and then use the X key"...you feel me ?

ғαιιοцт
17/02/2009, 11:49 AM
would be nice to go with down and up arrow.

the up and down keys aren't detected :( (not when on foot)


It looks like yom/0rb's menus, but his are a lot better :lol:, but yours is not bad!

:o i thought i was the 1st one to make this >< (0rb didn't release it right?)

well i would definitly use this on my server but i can't tell everyone that joins "You know..i got custom menus you have to bind first your keys in options and then use the X key"...you feel me ?

yea that's a big problem :( maybe in a next version of sa-mp all keys can be detected :mrgreen:

wollodya
17/02/2009, 03:14 PM
wow...really good.....I luv ur filterscripts Fallout 8) 8) ..all ur scripts are perfect :o :D

cHaMiLLioNaRe
17/02/2009, 03:25 PM
Looks very fancy with the colours and the styles, good work :+

ғαιιοцт
17/02/2009, 03:47 PM
wow...really good.....I luv ur filterscripts Fallout 8) 8) ..all ur scripts are perfect :o :D

Looks very fancy with the colours and the styles, good work :+

thanks both :D

[LNL]Remulis
17/02/2009, 04:52 PM
nice men

wollodya
17/02/2009, 04:54 PM
select = PED_SPRINT (space) ;)

ғαιιοцт
17/02/2009, 05:29 PM
nice men

ty ;)


select = PED_SPRINT (space) ;)

select = PED_SPRINT (lshift) here :)
it's different for every player

wollodya
17/02/2009, 06:44 PM
select = PED_SPRINT (space) ;)

select = PED_SPRINT (lshift) here :)
it's different for every player
[/quote]

but mass of players is using space :)

ғαιιοцт
18/02/2009, 11:04 AM
select = PED_SPRINT (space) ;)

select = PED_SPRINT (lshift) here :)
it's different for every player

but mass of players is using space :)

that's weird for me :o
in every game I use space for 'jump' :)

wollodya
18/02/2009, 02:40 PM
In my game, I have default set space to sprint :roll: ...ok ...never mind :mrgreen: :mrgreen:

[NL]Bank
18/02/2009, 08:37 PM
WOW!! This is nice man :o

TrueCoppa
18/02/2009, 09:21 PM
Nice :3
I don't like the built in menus

Streetplaya
18/02/2009, 09:57 PM
Nice script you've got there, except the joystick key things....
But, nah, no another solution (except a timer which checks with GetPlayerKeys)

Btw, my lshift is sprint and space is jump. Changed it because my VC settings were like that.

ғαιιοцт
21/02/2009, 09:27 AM
Nice script you've got there, except the joystick key things....
But, nah, no another solution (except a timer which checks with GetPlayerKeys)

Btw, my lshift is sprint and space is jump. Changed it because my VC settings were like that.

maybe I'll update it with a timer and GetPlayerKeys later ;)

Streetplaya
21/02/2009, 10:04 AM
Nice script you've got there, except the joystick key things....
But, nah, no another solution (except a timer which checks with GetPlayerKeys)

Btw, my lshift is sprint and space is jump. Changed it because my VC settings were like that.

maybe I'll update it with a timer and GetPlayerKeys later ;)


Bah, pls dont do that, that will skip menu lines if you hold a key...

ғαιιοцт
21/02/2009, 11:49 AM
Nice script you've got there, except the joystick key things....
But, nah, no another solution (except a timer which checks with GetPlayerKeys)

Btw, my lshift is sprint and space is jump. Changed it because my VC settings were like that.

maybe I'll update it with a timer and GetPlayerKeys later ;)


Bah, pls dont do that, that will skip menu lines if you hold a key...

? that depends on how I make the key detection
I think it's a good idea that when you hold a key, this happens:

"key detected" -> 1 second -> "key detected again" -> 100ms ->
^ l
l l
-------------------<-------------

(just as normally in windows when you hold a key)

so this won't skip menu items when you hold a key, and go down/up faster when you hold a key ;)

ғαιιοцт
21/02/2009, 06:35 PM
Update:


What's new?
- Keys changed to arrow keys instead of numpads.
(like normal menu's now)
- When holding down a key, you can scroll faster to another menu-item.

-> just easier to use ;)
thanks !MaVe for the idea

New keys:
menu item up = arrow up
menu item down = arrow down
exit = VEHICLE_ENTER_EXIT (enter)
select = PED_SPRINT (shift or space)

How to install:
- Put this inc in this folder: server\pawno\include\<here>
- Add #include <F_Menu> to any script where you want to use it.
- Add F_Menu_OnInit(); under OnFilterScriptInit() or under OnGameModeInit() (depends on what type of script you use)

Download:

http://solidfiles.com/info_imgs/UV6Q.jpg (http://solidfiles.com/d/UV6Q)

MaXx001
23/02/2009, 10:17 AM
I'd like to point out that these menus are server side while the native ones are client side which is a pretty important consideration.

ғαιιοцт
23/02/2009, 12:08 PM
I'd like to point out that these menus are server side while the native ones are client side which is a pretty important consideration.

is that bad? I don't really understand what you want to say with this

MaXx001
23/02/2009, 12:34 PM
is that bad? I don't really understand what you want to say with this


No it's not bad, just different. Because your menu is server side, the reaction time of the menu depends on the players connection to the server. This is not the case with the native client side menu which is not dependant on the internet connection.

This means that if a player has a high ping to the server, then the menu will be slow to navigate and the player will often experience that it jumps two levels in the menu because he's impatient and pushes the arrow keys multiple times before the script registers it.

Coicatak
25/02/2009, 11:12 PM
I can't get the file... When I download a version, regardless on which version it is, there's a folder in the rar file called Stunt Universe with some includes, pwn & amx files in, like SAMP server but there's not the inc for your super menus :(

Any help please?

ғαιιοцт
26/02/2009, 08:15 AM
I can't get the file... When I download a version, regardless on which version it is, there's a folder in the rar file called Stunt Universe with some includes, pwn & amx files in, like SAMP server but there's not the inc for your super menus :(

Any help please?

thank you for reporting, I uploaded the wrong files :lol:
fixed now :)

Coicatak
26/02/2009, 10:31 AM
I can't get the file... When I download a version, regardless on which version it is, there's a folder in the rar file called Stunt Universe with some includes, pwn & amx files in, like SAMP server but there's not the inc for your super menus :(

Any help please?

thank you for reporting, I uploaded the wrong files :lol:
fixed now :)

Thank for reuploading :D

This FS is awesome <3

ғαιιοцт
26/02/2009, 10:34 AM
did you include it?

#include <F_Menu>

Coicatak
26/02/2009, 10:36 AM
did you include it?

#include <F_Menu>

Edited my message, as I'm using version 2 it wasn't needed. :D
Thanks for the help given :)

ғαιιοцт
26/02/2009, 10:37 AM
did you include it?

#include <F_Menu>

Edited my message, as I'm using version 2 it wasn't needed. :D
Thanks for the help given :)

make sure you add F_Menu_OnInit(); under OnFilterScriptInit() or under OnGameModeInit() ;)

Dark_BasS
01/03/2009, 06:13 PM
I'm not in credits for testing :(
:lol:Just joking :D good work..

ғαιιοцт
01/03/2009, 07:45 PM
I'm not in credits for testing :(
:lol:Just joking :D good work..

you have tested after it was released ><
thanks ;) :D

Dark_BasS
01/03/2009, 07:53 PM
I'm not in credits for testing :(
:lol:Just joking :D good work..

you have tested after it was released ><
thanks ;) :D


>< lol you didn't say it :D

[LNL]Remulis
04/03/2009, 05:40 PM
i have maken it but not working i got errors can someone help me to fix ??

#include <a_samp>
#include <F_Menu>

#define FILTERSCRIPT

#define COLOR_WHITE 0xFFFFFFFF

new Menu:MyMenu;

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Enabled Remulis Weapons Menu");
print("--------------------------------------\n");

MyMenu = F_CreateMenu("Ginklu Meniu")

F_AddMenuItem(MyMenu, 0, "M4");F_AddMenuItem
F_AddMenuItem(MyMenu, 0, "AK-K7");F_AddMenuItem
F_AddMenuItem(MyMenu, 0, "MP5");F_AddMenuItem
F_AddMenuItem(MyMenu, 0, "Deagle");F_AddMenuItem
F_AddMenuItem(MyMenu, 0, "Tech-9");F_AddMenuItem
F_AddMenuItem(MyMenu, 0, "9mm");F_AddMenuItem
F_AddMenuItem(MyMenu, 0, "Shotgun");F_AddMenuItem
F_AddMenuItem(MyMenu, 0, "Silent 9mm");F_AddMenuItem
F_AddMenuItem(MyMenu, 0, "Combat Shotgun");F_AddMenuItem
return 1;
}

public OnFilterScriptExit()
{
print("\n--------------------------------------");
print(" Disabled Remulis Creation");
print("--------------------------------------\n");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/gun", cmdtext, true, 10) == 0)
{
F_ShowMenuForPlayer(MyMenu, playerid);
TogglePlayerControllable(playerid, false);
return 1;
}
return 0;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
F_HideMenuForPlayer(MyMenu, playerid);
new Menu:current;
current = GetPlayerMenu(playerid);
if(current == MyMenu)
{
switch(row)
{
case 0:
{
if(GetPlayerMoney(playerid) > 60000)
{
GivePlayerMoney(playerid,-60000);
GivePlayerWeapon(playerid, 31, 120);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 60000$");
}
}
case 1:
{
if(GetPlayerMoney(playerid) > 60000)
{
GivePlayerMoney(playerid,-60000);
GivePlayerWeapon(playerid, 30, 120);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 60000$");
}
}
case 2:
{
if(GetPlayerMoney(playerid) > 40000)
{
GivePlayerMoney(playerid,-40000);
GivePlayerWeapon(playerid, 29, 120);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 40000$");
}
}
case 3:
{
if(GetPlayerMoney(playerid) > 25000)
{
GivePlayerMoney(playerid,-25000);
GivePlayerWeapon(playerid, 24, 120);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"neturi 25000$");
}
}
case 4:
{
if(GetPlayerMoney(playerid) > 10000)
{
GivePlayerWeapon(playerid, 32, 1000);
GivePlayerMoney(playerid,-10000);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 10000$");
}
}
case 5:
{
if(GetPlayerMoney(playerid) > 2000)
{
GivePlayerWeapon(playerid, 22, 1000);
GivePlayerMoney(playerid,-20000);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 20000$");
}
}
case 6:
{
if(GetPlayerMoney(playerid) > 1000)
{
GivePlayerMoney(playerid,-1000);
GivePlayerWeapon(playerid, 25, 100);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 1000$");
}
}
case 7:
{
if(GetPlayerMoney(playerid) > 1000)
{
GivePlayerMoney(playerid,-1000);
GivePlayerWeapon(playerid, 23, 100);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 1000$");
}
}
case 8:
{
if(GetPlayerMoney(playerid) > 10000)
{
GivePlayerMoney(playerid,-10000);
GivePlayerWeapon(playerid, 27, 400);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 10000$");
}
}
case 9:
{
if(GetPlayerMoney(playerid) > 1000)
{
GivePlayerMoney(playerid,-1000);
GivePlayerWeapon(playerid, 28, 700);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 1000$");


}
}
}
}

return 1;
}

ғαιιοцт
04/03/2009, 06:47 PM
i have maken it but not working i got errors can someone help me to fix ??

#include <a_samp>
#include <F_Menu>

#define FILTERSCRIPT

#define COLOR_WHITE 0xFFFFFFFF

new Menu:MyMenu;

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Enabled Remulis Weapons Menu");
print("--------------------------------------\n");

MyMenu = F_CreateMenu("Ginklu Meniu")

F_AddMenuItem(MyMenu, 0, "M4");F_AddMenuItem
F_AddMenuItem(MyMenu, 0, "AK-K7");F_AddMenuItem
F_AddMenuItem(MyMenu, 0, "MP5");F_AddMenuItem
F_AddMenuItem(MyMenu, 0, "Deagle");F_AddMenuItem
F_AddMenuItem(MyMenu, 0, "Tech-9");F_AddMenuItem
F_AddMenuItem(MyMenu, 0, "9mm");F_AddMenuItem
F_AddMenuItem(MyMenu, 0, "Shotgun");F_AddMenuItem
F_AddMenuItem(MyMenu, 0, "Silent 9mm");F_AddMenuItem
F_AddMenuItem(MyMenu, 0, "Combat Shotgun");F_AddMenuItem
return 1;
}

public OnFilterScriptExit()
{
print("\n--------------------------------------");
print(" Disabled Remulis Creation");
print("--------------------------------------\n");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/gun", cmdtext, true, 10) == 0)
{
F_ShowMenuForPlayer(MyMenu, playerid);
TogglePlayerControllable(playerid, false);
return 1;
}
return 0;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
F_HideMenuForPlayer(MyMenu, playerid);
new Menu:current;
current = GetPlayerMenu(playerid);
if(current == MyMenu)
{
switch(row)
{
case 0:
{
if(GetPlayerMoney(playerid) > 60000)
{
GivePlayerMoney(playerid,-60000);
GivePlayerWeapon(playerid, 31, 120);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 60000$");
}
}
case 1:
{
if(GetPlayerMoney(playerid) > 60000)
{
GivePlayerMoney(playerid,-60000);
GivePlayerWeapon(playerid, 30, 120);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 60000$");
}
}
case 2:
{
if(GetPlayerMoney(playerid) > 40000)
{
GivePlayerMoney(playerid,-40000);
GivePlayerWeapon(playerid, 29, 120);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 40000$");
}
}
case 3:
{
if(GetPlayerMoney(playerid) > 25000)
{
GivePlayerMoney(playerid,-25000);
GivePlayerWeapon(playerid, 24, 120);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"neturi 25000$");
}
}
case 4:
{
if(GetPlayerMoney(playerid) > 10000)
{
GivePlayerWeapon(playerid, 32, 1000);
GivePlayerMoney(playerid,-10000);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 10000$");
}
}
case 5:
{
if(GetPlayerMoney(playerid) > 2000)
{
GivePlayerWeapon(playerid, 22, 1000);
GivePlayerMoney(playerid,-20000);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 20000$");
}
}
case 6:
{
if(GetPlayerMoney(playerid) > 1000)
{
GivePlayerMoney(playerid,-1000);
GivePlayerWeapon(playerid, 25, 100);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 1000$");
}
}
case 7:
{
if(GetPlayerMoney(playerid) > 1000)
{
GivePlayerMoney(playerid,-1000);
GivePlayerWeapon(playerid, 23, 100);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 1000$");
}
}
case 8:
{
if(GetPlayerMoney(playerid) > 10000)
{
GivePlayerMoney(playerid,-10000);
GivePlayerWeapon(playerid, 27, 400);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 10000$");
}
}
case 9:
{
if(GetPlayerMoney(playerid) > 1000)
{
GivePlayerMoney(playerid,-1000);
GivePlayerWeapon(playerid, 28, 700);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 1000$");


}
}
}
}

return 1;
}


#include <a_samp>
#include <F_Menu>

#define FILTERSCRIPT

#define COLOR_WHITE 0xFFFFFFFF

new MyMenu;

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Enabled Remulis Weapons Menu");
print("--------------------------------------\n");

MyMenu = F_CreateMenu("Ginklu Meniu", 20.0, 120.0, 200.0)

F_AddMenuItem(MyMenu, "M4");
F_AddMenuItem(MyMenu, "AK-K7");
F_AddMenuItem(MyMenu, "MP5");
F_AddMenuItem(MyMenu, "Deagle");
F_AddMenuItem(MyMenu, "Tech-9");
F_AddMenuItem(MyMenu, "9mm");
F_AddMenuItem(MyMenu, "Shotgun");
F_AddMenuItem(MyMenu, "Silent 9mm");
F_AddMenuItem(MyMenu, "Combat Shotgun");F_AddMenuItem
return 1;
}

public OnFilterScriptExit()
{
print("\n--------------------------------------");
print(" Disabled Remulis Creation");
print("--------------------------------------\n");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/gun", cmdtext, true, 10) == 0)
{
F_ShowMenuForPlayer(MyMenu, playerid);
TogglePlayerControllable(playerid, false);
return 1;
}
return 0;
}

public F_OnPlayerSelectedMenuRow(playerid, menuid, row)
{
F_HideMenuForPlayer(MyMenu, playerid);
if(menuid == MyMenu)
{
switch(row)
{
case 0:
{
if(GetPlayerMoney(playerid) >= 60000)
{
GivePlayerMoney(playerid,-60000);
GivePlayerWeapon(playerid, 31, 120);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 60000$");
}
}
case 1:
{
if(GetPlayerMoney(playerid) >= 60000)
{
GivePlayerMoney(playerid,-60000);
GivePlayerWeapon(playerid, 30, 120);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 60000$");
}
}
case 2:
{
if(GetPlayerMoney(playerid) >= 40000)
{
GivePlayerMoney(playerid,-40000);
GivePlayerWeapon(playerid, 29, 120);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 40000$");
}
}
case 3:
{
if(GetPlayerMoney(playerid) >= 25000)
{
GivePlayerMoney(playerid,-25000);
GivePlayerWeapon(playerid, 24, 120);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"neturi 25000$");
}
}
case 4:
{
if(GetPlayerMoney(playerid) >= 10000)
{
GivePlayerWeapon(playerid, 32, 1000);
GivePlayerMoney(playerid,-10000);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 10000$");
}
}
case 5:
{
if(GetPlayerMoney(playerid) >= 2000)
{
GivePlayerWeapon(playerid, 22, 1000);
GivePlayerMoney(playerid,-20000);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 20000$");
}
}
case 6:
{
if(GetPlayerMoney(playerid) >= 1000)
{
GivePlayerMoney(playerid,-1000);
GivePlayerWeapon(playerid, 25, 100);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 1000$");
}
}
case 7:
{
if(GetPlayerMoney(playerid) >= 1000)
{
GivePlayerMoney(playerid,-1000);
GivePlayerWeapon(playerid, 23, 100);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 1000$");
}
}
case 8:
{
if(GetPlayerMoney(playerid) >= 10000)
{
GivePlayerMoney(playerid,-10000);
GivePlayerWeapon(playerid, 27, 400);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 10000$");
}
}
case 9:
{
if(GetPlayerMoney(playerid) >= 1000)
{
GivePlayerMoney(playerid,-1000);
GivePlayerWeapon(playerid, 28, 700);
SetTimer("neturi pinigu",100, 1);
TogglePlayerControllable(playerid, true);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"Neturi 1000$");
}
}
}
}

return 1;
}

[LNL]Remulis
04/03/2009, 08:48 PM
thx but i got 1 error still xDD


C:\Users\Remulis\Desktop\2n.pwn(18) : error 001: expected token: ";", but found "-identifier-"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

[LNL]Remulis
04/03/2009, 08:49 PM
ohh fixed

[LNL]Remulis
04/03/2009, 08:52 PM
Yeah!! coool menu

but i cant chose anything why ?? i am stuck vhen i write /gun

ғαιιοцт
05/03/2009, 06:12 PM
Yeah!! coool menu

but i cant chose anything why ?? i am stuck vhen i write /gun

just press the 'sprint' key?

Rac3r
08/03/2009, 12:10 PM
Brilliant, just brilliant. Excellent upgrade for our server. Thanks. 8)

http://i125.photobucket.com/albums/p45/Rac3rUK/sa-mp-147.png

[LNL]Remulis
08/03/2009, 12:58 PM
i preesed all keys on my keyboard

asteroid
08/03/2009, 04:05 PM
Atleast thats new

[LNL]Remulis
08/03/2009, 04:31 PM
http://www.cybertheater.com/wp-content/uploads/2007/08/logicool-lw-3000-keyboard.jpg


i got this one
is this one bad ??

ғαιιοцт
08/03/2009, 08:19 PM
Rac3r ]
Brilliant, just brilliant. Excellent upgrade for our server. Thanks. 8)

<image>

thanks :D


Atleast thats new

what do you mean?


http://www.cybertheater.com/wp-content/uploads/2007/08/logicool-lw-3000-keyboard.jpg


i got this one
is this one bad ??

it's not about the keyboard.. it's probally something with your script
does there happens something when you press enter (or f) and shift (or space) ?

Rac3r
12/03/2009, 03:12 PM
Do you have any plans of optimising this code? If that's even possible.

I love the funky textdraws, really do improve the look of the menus and also lets you have longer menus, which is very cool.

But, even though it's very cool and fresh, there are a few problems, not bugs, just performance issues. The menus can be very slow, sometimes you need to press up a good few times for it to actual go up in the menu. Of course, it's a lag/internet problem.

This is the only reason I have removed it from our server. I like your code and it looks flawless, but for the menus to be all server side is too slow.

ғαιιοцт
12/03/2009, 03:53 PM
Rac3r ]
Do you have any plans of optimising this code? If that's even possible.

I love the funky textdraws, really do improve the look of the menus and also lets you have longer menus, which is very cool.

But, even though it's very cool and fresh, there are a few problems, not bugs, just performance issues. The menus can be very slow, sometimes you need to press up a good few times for it to actual go up in the menu. Of course, it's a lag/internet problem.

This is the only reason I have removed it from our server. I like your code and it looks flawless, but for the menus to be all server side is too slow.

didn't it help if you held the key down more?

Kayla.S
01/07/2009, 12:13 PM
I love this, but I'm having one little issue. Is there a way to close the menu after you select somthing on it? I have it set for when you walk into a checkpoint it pops up on screen. Ctrl closes it, but if a player doesnt hit that he can walk around the entire map with it on screen. So if i have armour set as one of the items, he can keep giving himself it even if hes not in the checkpoint. So there a way to set it so the menu closes itself if hes too far from the CP?

refshal
01/07/2009, 12:24 PM
This is k00l. No old boring menus anymore. 8)

ғαιιοцт
01/07/2009, 08:41 PM
I love this, but I'm having one little issue. Is there a way to close the menu after you select somthing on it? I have it set for when you walk into a checkpoint it pops up on screen. Ctrl closes it, but if a player doesnt hit that he can walk around the entire map with it on screen. So if i have armour set as one of the items, he can keep giving himself it even if hes not in the checkpoint. So there a way to set it so the menu closes itself if hes too far from the CP?

pressing return should work :o
shift to select a menu and return to go back or close a menu

Kayla.S
07/07/2009, 12:30 PM
Ok I\'m having issues with wanting to add another one of your menus to my gamemode. Whenever I try to make another one I get an error saying \"symbol already defined F_ShowMenuForPlayer\" I\'ve tried everything to get rid of this error but no luck. :(

I posted a pastebin with a new gamemode with my first menu implemented. If you could show me how to do another one without that error it would be great. That way I can learn how to make multiple menus without any problems. Thanks in advanced.

http://pastebin.com/m54c33723

<3

UsaBoy91
10/07/2009, 07:21 PM
lol !! this is great

ғαιιοцт
22/07/2009, 09:47 AM
Rac3r ]
Do you have any plans of optimising this code? If that's even possible.

Update:


What's new?
- Bugs fixed!

How to install:
- Put this inc in this folder: server\pawno\include\<here>
- Add #include <F_Menu> to any script where you want to use it.
- Add F_Menu_OnInit(); under OnFilterScriptInit() or under OnGameModeInit() (depends on what type of script you use)

Download:

http://solidfiles.com/info_imgs/AHr3.jpg (http://solidfiles.com/d/AHr3)

Shubham
24/07/2009, 10:14 PM
Nice Work Fallout...
always like your works...
well done ;)

James_Alex
24/07/2009, 10:24 PM
awesome job
keep working ;)

GTA967
25/07/2009, 03:17 AM
Test.pwn(230) : warning 213: tag mismatch
Test.pwn(231) : warning 213: tag mismatch
Test.pwn(232) : warning 213: tag mismatch
Test.pwn(233) : warning 213: tag mismatch
Test.pwn(234) : warning 213: tag mismatch
Test.pwn(235) : warning 213: tag mismatch
Test.pwn(236) : warning 213: tag mismatch
Test.pwn(237) : warning 213: tag mismatch
Test.pwn(238) : warning 213: tag mismatch
Test.pwn(239) : warning 213: tag mismatch
Test.pwn(583) : warning 213: tag mismatch
Test.pwn(596) : warning 213: tag mismatch
Test.pwn(778) : warning 213: tag mismatch
Test.pwn(792) : warning 213: tag mismatch
Test.pwn(806) : warning 213: tag mismatch
Test.pwn(820) : warning 213: tag mismatch
Test.pwn(834) : warning 213: tag mismatch
Test.pwn(848) : warning 213: tag mismatch
Test.pwn(862) : warning 213: tag mismatch
Test.pwn(898) : error 017: undefined symbol "F_OnPlayerKeyStateChange"
there on F_ShowMenuForPlayer(menuid,playerid); and F_AddMenuItem(menuid, title[]); and F_CreateMenu(title", 20.0, 120.0, 200.0);

example for F_CreateMenu

amunationmenu = F_CreateMenu("Amunation", 20.0, 120.0, 200.0);

example for F_AddMenuItem

amunationmenu = F_CreateMenu("Amunation", 20.0, 120.0, 200.0);
F_AddMenuItem(amunationmenu, "9mm Pistol - $100");
F_AddMenuItem(amunationmenu, "Silenced pistol - $150");
F_AddMenuItem(amunationmenu, "Desert eagle - $200");
F_AddMenuItem(amunationmenu, "Shotgun - $400");
F_AddMenuItem(amunationmenu, "Sawn-offs.gun - $500");
F_AddMenuItem(amunationmenu, "Sawn-offs.gun - $500");
F_AddMenuItem(amunationmenu, "Micro Uzi - $800");
F_SetMenuTitleBgColor(amunationmenu, 0x33FF0099);
F_SetMenuSelectedItemBgColor(amunationmenu, 0x00CC0099);

example for F_ShowMenuForPlayer

//Amunation menu
else if(PlayerToPoint(3, playerid,312.2207,-166.1341,999.6010))
{
F_ShowMenuForPlayer(amunationmenu,playerid);
}

ғαιιοцт
25/07/2009, 06:48 AM
Did you add
new amunationmenu; ?

GTA967
25/07/2009, 06:41 PM
woops lol i had thisnew Menu:amunationmenu; i changed it to new amunationmenu; and they work. they are AWSOME! i love them in every way good job :D i want to see more from you :D

ғαιιοцт
25/07/2009, 10:48 PM
thx, good to hear it's working for you ;)

James_Alex
02/08/2009, 11:20 AM
hi Falout, i got a little probleme, i juste downloaded the v3 then
i tryed this

// this is in the top of the script

public OnGameModeInit()
{
cMenu = F_CreateMenu("What you will do", 20.0, 120.0, 200.0);
F_AddMenuItem(cMenu, "Stunt");
F_AddMenuItem(cMenu, "Deathmatch");
F_SetMenuTitleBoxColor(cMenu, 0xCC000099);
F_SetMenuSelectedItemBoxColor(cMenu, 0xFF000099);
F_Menu_OnInit();
return 1;
}

// then this is my command
if(strcmp(cmd, "/test", true) == 0)
{
F_ShowMenuForPlayer(cMenu, playerid);
return 1;
}
no errors or warnings for all
but the menu dosen't show
why ?

.::: Ecko :::.
02/08/2009, 11:23 AM
hi Falout, i got a little probleme, i juste downloaded the v3 then
i tryed this

// this is in the top of the script

public OnGameModeInit()
{
cMenu = F_CreateMenu("What you will do", 20.0, 120.0, 200.0);
F_AddMenuItem(cMenu, "Stunt");
F_AddMenuItem(cMenu, "Deathmatch");
F_SetMenuTitleBoxColor(cMenu, 0xCC000099);
F_SetMenuSelectedItemBoxColor(cMenu, 0xFF000099);
F_Menu_OnInit();
return 1;
}

// then this is my command
if(strcmp(cmd, "/test", true) == 0)
{
F_ShowMenuForPlayer(cMenu, playerid);
return 1;
}
no errors of warnings for all
but the menu dosen't show
why ?


You say no errors just warning right?!
Show as your warnings ;)

Ecko

James_Alex
02/08/2009, 11:25 AM
no sry
no errors or warnings*

James_Alex
02/08/2009, 11:30 AM
fixed
sry for double posts !!

RayPoda
02/08/2009, 11:41 AM
This is very nice, broski. I'll be using this in the future.

ғαιιοцт
02/08/2009, 07:12 PM
fixed
sry for double posts !!

what was wrong?
did, moving f_menu_oninit to the top, help?

nuriel8833
02/08/2009, 07:30 PM
WTF????

sooooooooooooooooo cooooooooooooooooooooooooooooooooooolllllll!!!!
how did you do that?
im so using it!!!!
tanks a lot!!!!

ғαιιοцт
02/08/2009, 09:25 PM
WTF????

sooooooooooooooooo cooooooooooooooooooooooooooooooooooolllllll!!!!
how did you do that?
im so using it!!!!
tanks a lot!!!!


I just like working with textdraws ^^

nuriel8833
03/08/2009, 05:11 AM
OK
Wow where is my WTF away from the line :)

ғαιιοцт
03/08/2009, 06:46 AM
OK
Wow where is my WTF away from the line :)

thet's becaise u used ]center[ ? xD

RyDeR`
03/08/2009, 07:23 AM
Very nice :o

ғαιιοцт
07/08/2009, 10:24 AM
V4 released:

- Code optimised.
- New functions:
native F_ShowMenuForAll(menuid);
native F_HideMenuForAll(menuid);
native F_SelectMenuRow(menuid, playerid, row);

Download:
http://solidfiles.com/info_imgs/RqYF.jpg (http://solidfiles.com/d/RqYF)

XtremeChio
07/08/2009, 04:30 PM
This rocks dude..I never wanted to create a menue because..They're ugly.
I'll sure download this and make menus :) Thanks.

ғαιιοцт
08/08/2009, 07:48 PM
This rocks dude..I never wanted to create a menue because..They're ugly.
I'll sure download this and make menus :) Thanks.

thank you :mrgreen:

LuxurioN™
09/08/2009, 01:12 AM
Nice menus fallout ... :roll:

nuriel8833
09/08/2009, 08:05 AM
can someone explain me how to do a command that will show the menu for a player????

ғαιιοцт
09/08/2009, 08:25 AM
can someone explain me how to do a command that will show the menu for a player????

if(strcmp(cmdtext, "/mycommand, true) == 0)
{
F_ShowMenuForPlayer(menuid, playerid);
return 1;
}

nuriel8833
09/08/2009, 08:29 AM
can someone explain me how to do a command that will show the menu for a player????

if(strcmp(cmdtext, "/mycommand, true) == 0)
{
F_ShowMenuForPlayer(menuid, playerid);
return 1;
}


menuid = my menu name?

and how to creat a variable for the menu????
and (XD) how to add menu items????

XtremeChio
09/08/2009, 08:39 AM
If you'd read the first post better, you'd see he posted an example:

http://pastebin.com/f1c9eebd0

nuriel8833
09/08/2009, 09:02 AM
ohhh cool tanks


but the menu is under the chat how can i move it?

and when im trying to choose something from the menu it doesnt move how to fix that?

ғαιιοцт
09/08/2009, 10:35 AM
ohhh cool tanks


but the menu is under the chat how can i move it?

and when im trying to choose something from the menu it doesnt move how to fix that?

F_CreateMenu(title[], Float:x, Float:y, Float:boxlength);
X and Y changes the position of the menu (position on your screen)


and when im trying to choose something from the menu it doesnt move how to fix that?
it should work, just use the arrow keys (up and down) to choose a menuitem
and press shift to select one :)

nuriel8833
09/08/2009, 11:02 AM
Im pressing Space and it leaves the menu.
but the up and down doesnt work

ғαιιοцт
09/08/2009, 09:57 PM
Im pressing Space and it leaves the menu.
but the up and down doesnt work

do you use the arrow keys?

nuriel8833
10/08/2009, 08:00 AM
Im pressing Space and it leaves the menu.
but the up and down doesnt work

do you use the arrow keys?



yap up&down doesnt work and also shift doesnt work

nuriel8833
11/08/2009, 07:18 AM
can someone help me ^^
12 hours has been past a long time ago
so im bumping
please help me with the message upstairs (a\m i spelling it right???)

nuriel8833
12/08/2009, 06:35 AM
I know its a triple but i really need this
so its like another bump
12 hours please help!!!!!!!!!!!!!!!!!!!!!!!!!!

XtremeChio
12/08/2009, 10:15 AM
This is very nice.

But I don't know if it's a bug or I didn't do something right.

I made a menu where players choose weapons. If you have money and press Space, you get one.

Then I put in the cmd to check if the player has enough money.
Well if he doesn't, it tells him so, but he can't move. I don't know if it's my fault or not..

ғαιιοцт
12/08/2009, 10:38 AM
This is very nice.

But I don't know if it's a bug or I didn't do something right.

I made a menu where players choose weapons. If you have money and press Space, you get one.

Then I put in the cmd to check if the player has enough money.
Well if he doesn't, it tells him so, but he can't move. I don't know if it's my fault or not..

that's not my mistake because I don't use TogglePlayerControllable in the include
idk what's your problem :s
could you post your code here please?




Im pressing Space and it leaves the menu.
but the up and down doesnt work

do you use the arrow keys?



yap up&down doesnt work and also shift doesnt work

what keys do you usually use to move forward/backward?

MatrixBoY
12/08/2009, 10:55 AM
wow... really nice :)

shady91
12/08/2009, 12:15 PM
this is real nice man honeslt fall out this is wicked shit i will use this what gave you the idear to do this?

nuriel8833
12/08/2009, 02:06 PM
OK i have a bug
when im trying to move with the arrows it doesnt move and when im picking up an item it doesnt do anything
how to fix that????

XtremeChio
12/08/2009, 02:11 PM
Fallout, I already deleted :P But it's awesome anyways.

And Nuriel..You just have to hold for like 0.5-1 second, the up/down arrow..I think we all figured that out :roll:

nuriel8833
13/08/2009, 05:26 AM
Fallout, I already deleted :P But it's awesome anyways.

And Nuriel..You just have to hold for like 0.5-1 second, the up/down arrow..I think we all figured that out :roll:


I wait 0.5-1 minute and it doesnt work
also shift doesnt work

ғαιιοцт
13/08/2009, 09:05 AM
can you take a screenshot of what you see ingame please?

nuriel8833
13/08/2009, 09:28 AM
its show me the menu but the arrown doesnt move

ғαιιοцт
13/08/2009, 10:24 AM
its show me the menu but the arrown doesnt move

and you also see menu items?

paytas
13/08/2009, 12:41 PM
this is real nice man honeslt fall out this is wicked shit i will use this what gave you the idear to do this?


He stole the idea and the menu design from someone else :lol:

shady91
13/08/2009, 12:50 PM
this is real nice man honeslt fall out this is wicked shit i will use this what gave you the idear to do this?


He stole the idea and the menu design from someone else :lol:


hmm are you sure and if so who did he steal it from are you sure your just not pissed off as you thought of it but couldnt do it and he could?

ғαιιοцт
13/08/2009, 01:44 PM
this is real nice man honeslt fall out this is wicked shit i will use this what gave you the idear to do this?


He stole the idea and the menu design from someone else :lol:

you're joking right?

nuriel8833
13/08/2009, 07:13 PM
its show me the menu but the arrown doesnt move

and you also see menu items?



I can see but not move anyway

Agent_Smith
13/08/2009, 07:14 PM
It looks great, maybe I'll try it out

ғαιιοцт
14/08/2009, 01:18 PM
its show me the menu but the arrown doesnt move

and you also see menu items?



I can see but not move anyway

hmm can you redownload this include? maybe you changed something in the include :roll:


It looks great, maybe I'll try it out

thx

nuriel8833
14/08/2009, 04:20 PM
OK i will try and i will modify it

no still doesnt work why??????

ғαιιοцт
14/08/2009, 07:29 PM
OK i will try and i will modify it

no still doesnt work why??????

have you tried using this include on another gamemode?
you probably have issues with other textdraws

.::: Ecko :::.
14/08/2009, 09:02 PM
Nice fs fallout. ;)

Offtopic: I <3 u!

Ecko

nuriel8833
15/08/2009, 06:26 AM
Im opening my server only with LVDM,nothing more

@TheShadow@
20/08/2009, 12:39 PM
cool ;)

nice work fallout

ғαιιοцт
22/08/2009, 08:18 AM
Thanks :)

Spatman
22/08/2009, 10:49 AM
This is AWESOME! Thanks Fallout! 8)

Macauley
22/08/2009, 11:08 AM
Nicee. good work fallout.

wilcock33
22/08/2009, 11:33 AM
nice work

HI MACA!

Infamous
22/08/2009, 07:59 PM
This is awesome, I can't believe I hadn't noticed this topic sooner!

Keep up the good work.

paytas
23/08/2009, 09:26 AM
this is real nice man honeslt fall out this is wicked shit i will use this what gave you the idear to do this?


He stole the idea and the menu design from someone else :lol:

you're joking right?


No. Your one little bastard aren't ya.

ғαιιοцт
23/08/2009, 02:01 PM
this is real nice man honeslt fall out this is wicked shit i will use this what gave you the idear to do this?


He stole the idea and the menu design from someone else :lol:

you're joking right?

No. Your one little bastard aren't ya.

Ssssht!
nobody may know that ;)

meegan1
01/09/2009, 11:34 AM
lol confused, where do u put the code for the menu items?

you didnt explain that bit...

ғαιιοцт
01/09/2009, 07:40 PM
lol confused, where do u put the code for the menu items?

you didnt explain that bit...

under OnGamemodeInit()
there is a link to an example code in the first post. ;)

spike_killa
01/09/2009, 08:57 PM
VERy Nice Sammie! Like all your Over Work

Jose 510
08/09/2009, 07:45 AM
Sorry to sound stupid but this will work 100% on 0.3?

ғαιιοцт
08/09/2009, 09:35 PM
Sorry to sound stupid but this will work 100% on 0.3?

yes, it does ;)
even better ^^

dirkblok
10/11/2009, 03:24 PM
cool man ;)

RastamaN[BzD]
05/12/2009, 06:32 AM
the second style are cool the red very nice man ... :arrow:

Maniek
05/12/2009, 07:47 AM
nvm

MarkusXXX
13/12/2009, 12:07 AM
i get one error:


error 017: undefined symbol "F_OnPlayerKeyStateChange"

MaHiN
04/02/2010, 05:19 PM
i get one error:


error 017: undefined symbol "F_OnPlayerKeyStateChange"


I also have a problem with this errore

error 017: undefined symbol "F_OnPlayerKeyStateChange"

>>
use translate.google.pl

Pribinacik
02/04/2010, 05:34 PM
help me x(

(175) : error 017: undefined symbol "F_OnPlayerKeyStateChange"

line

F_OnPlayerKeyStateChange(playerid, newkeys);

public

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
F_OnPlayerKeyStateChange(playerid, newkeys);
return 1;

}


help me x(

Zh3r0
02/04/2010, 05:57 PM
i get one error:


error 017: undefined symbol "F_OnPlayerKeyStateChange"



i get one error:


error 017: undefined symbol "F_OnPlayerKeyStateChange"


I also have a problem with this errore

error 017: undefined symbol "F_OnPlayerKeyStateChange"

>>
use translate.google.pl

help me x(

(175) : error 017: undefined symbol "F_OnPlayerKeyStateChange"

line

F_OnPlayerKeyStateChange(playerid, newkeys);

public

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
F_OnPlayerKeyStateChange(playerid, newkeys);
return 1;

}


help me x(


#include <F_Menu>

Shouldn't that be included?

Pribinacik
02/04/2010, 07:48 PM
yees i have include...

LuciaN_LucI
10/04/2010, 02:56 PM
WOW amazing MAN ! VERRY GOOD JOB !

Pribinacik
11/04/2010, 06:57 PM
I have error :( you do not in include F_OnPlayerKeyStateChange (playerid, newkeys);

help me...x(

delfino
12/05/2010, 09:35 PM
i get one error:


error 017: undefined symbol "F_OnPlayerKeyStateChange"



i get one error:


error 017: undefined symbol "F_OnPlayerKeyStateChange"


I also have a problem with this errore

error 017: undefined symbol "F_OnPlayerKeyStateChange"

>>
use translate.google.pl

help me x(

(175) : error 017: undefined symbol "F_OnPlayerKeyStateChange"

line

F_OnPlayerKeyStateChange(playerid, newkeys);

public

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
F_OnPlayerKeyStateChange(playerid, newkeys);
return 1;

}


help me x(


#include <F_Menu>

Shouldn't that be included?


It is Included.. I have same problem, please help me!

ABlankoC
13/05/2010, 10:15 PM
Nice :D :D

GroX
23/05/2010, 04:16 PM
I made a tuning system with this include, and when i open up the menu it crashes my game. When i changed the last two characters of the colors (AA) to 99 it didn't crash, and the menu appeared, but the text didn't appear in it. How can i fix this?

[MWR]Blood
06/10/2010, 07:31 AM
It's full of bugs...
- F_OnPlayerSateKeyChange is missing in the include, that's why you got that error( I got it too)
- I have to press Up / Down arrow several times so finally it goes to the option I want

ArihGold
06/10/2010, 07:34 AM
Awesome work Fallout, thanks!

justsomeguy
07/10/2010, 02:07 PM
ey is it treu that only the server host can see it or can everyone see it?

Flyfishes
07/10/2010, 02:49 PM
Great idea, good job Fallout! :)

Kuulp2he
31/10/2010, 11:20 PM
Can anyone do example for me how do do it. I have no point how to make it.
Please full text in pastebin or somewhere.

(example 3)

(Thanks!)

ғαιιοцт
13/11/2010, 08:29 PM
Can anyone do example for me how do do it. I have no point how to make it.
Please full text in pastebin or somewhere.

(example 3)

(Thanks!)

http://pastebin.com/f1c9eebd0

Kuulp2he
06/01/2011, 09:48 PM
thank you :)

Snowman12
02/02/2012, 12:05 AM
nice bruh

$lim$hady
02/02/2012, 03:21 PM
Awesome Fallout Please Make New Styles For Dialog_style_List And Dialog_Style_msgbox

-ExG-VirusKiller
02/02/2012, 03:34 PM
Really Sexy.

zgintasz
02/02/2012, 03:37 PM
Very nice. Now you can make GUI dialog styles :p.

nacimbogoss
02/02/2012, 08:03 PM
Wow, nice work Fallout ! I Will use ait in my Server for my new menus.
Thanks.

Reloadet!
07/02/2012, 09:22 PM
Nice work!
You are add somethink in the new Version?