Raised This Month: $ Target: $400
 0% 

New AMXX Menu System


Post New Thread Reply   
 
Thread Tools Display Modes
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 10-24-2009 , 13:02   Re: New AMXX Menu System
Reply With Quote #161

There's some tutorial in wiki.alliedmods.net, but you should go www.compuphase.com/pawn/pawn.htm
SnoW is offline
Send a message via MSN to SnoW
shuttle_wave
Veteran Member
Join Date: Apr 2009
Location: New Zealand
Old 12-01-2009 , 07:19   Re: New AMXX Menu System
Reply With Quote #162

Thanks Emp1 this helped alot +karma
__________________
JailBreak Mod with Plugin API ( 90% ) Public
shuttle_wave is offline
Cuchii
BANNED
Join Date: Sep 2009
Location: Cordoba,Argentina
Old 12-01-2009 , 12:06   Re: New AMXX Menu System
Reply With Quote #163

nice
Cuchii is offline
Send a message via MSN to Cuchii
Mlk27
Veteran Member
Join Date: May 2008
Old 12-20-2009 , 09:28   Re: New AMXX Menu System
Reply With Quote #164

About the new menu, how do you make the whole menu entry to appear disabled (grayed out) including __the menu number__ on the left and also the menu item name
Mlk27 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-20-2009 , 12:56   Re: New AMXX Menu System
Reply With Quote #165

Does it not do it when you use a callback? That would be my only guess. If that doesn't work then it's probably not possible.
__________________
fysiks is offline
RiiCe
Junior Member
Join Date: Jan 2010
Old 01-18-2010 , 20:15   Re: New AMXX Menu System
Reply With Quote #166

For the Sub Menu, does anyone know how i could just put the current Counter-Terrorist that are alive on the list. Please Private Message me on Forums to tell me the answer.
RiiCe is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-18-2010 , 23:40   Re: New AMXX Menu System
Reply With Quote #167

Check the team. If it's the correct team then check if they are alive. If the person is alive add them to the menu.
__________________
fysiks is offline
RiiCe
Junior Member
Join Date: Jan 2010
Old 01-18-2010 , 23:49   Re: New AMXX Menu System
Reply With Quote #168

ok thanks, i have another question

does anyione know how to make it so the last standing T can use the menu only. like Last Request.
RiiCe is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-19-2010 , 18:32   Re: New AMXX Menu System
Reply With Quote #169

Look in a Last Request plugin. It's probably something like:

When someone dies count how many <team name here> are alive. If only one (1) and that is the same person trying to use the menu then show the menu. Otherwise, don't.
__________________
fysiks is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-19-2010 , 19:48   Re: New AMXX Menu System
Reply With Quote #170

Code:
#include < amxmodx > new g_iRound; new g_iMenuRound[ 33 ]; public plugin_init( ) {     register_event( "HLTV", "EventNewRound", "a", "1=0", "2=0" ); } public client_disconnect( iPlayer ) {     g_iMenuRound[ iPlayer ] = -1; } public EventNewRound( ) {     g_iRound++; } ShowLastPlayerMenu( iPlayer ) {     new szTeam[ 16 ];     get_user_team( iPlayer, szTeam, 15 );         new iPlayers[ 32 ], iNum;     get_players( iPlayers, iNum, "ae", szTeam );         if( iNum != 1     || iPlayers[ 0 ] != iPlayer ) {         return 0;     }         g_iMenuRound[ iPlayer ] = g_iRound;         new hMenu = menu_create( "Last Player Menu", "MenuLastPlayer" );         menu_additem( hMenu, "Item 1", "1" );     menu_additem( hMenu, "Item 2", "2" );     menu_additem( hMenu, "Item 3", "3" );         menu_display( iPlayer, hMenu );         return 1; } public MenuLastPlayer( iPlayer, hMenu, iItem ) {     if( iItem == MENU_EXIT     || g_iMenuRound[ iPlayer ] != g_iRound ) {         menu_destroy( hMenu );         return;     }         new iAccess, szInfo[ 3 ], hCallback;     menu_item_getinfo( hMenu, iItem, iAccess, szInfo, 2, hCallback );     menu_destroy( hMenu );         client_print( iPlayer, print_chat, "You chose item #%i", str_to_num( szInfo ) ); }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode