Raised This Month: $ Target: $400
 0% 

[Need] recommendation about menu / player models


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
avril-lavigne
Banned
Join Date: Apr 2009
Old 08-02-2011 , 14:56   [Need] recommendation about menu / player models
Reply With Quote #1

I have custom menus for

Choosing Team
Choosing Model T&CT

some screens





how to Detect moment when user is pressing 1 or 2 or 3 in the menu

I was trying just to add debug text and sound but the keys auto send info , even I didnt touch them at all


PHP Code:
if( contain(szText"Terrorist_Select") != -
    { 
        new 
iKeys get_msg_arg_int(1
        new 
bool:bKeyChanged 
        
new szText[512], 
        
new szName[64
        
formatex(szTextcharsmax(szText), "\ySelect a model\w^n^n"

         if( 
iKeys MENU_KEY_1 
            { 
                
client_cmd(id,"mp3 play sound/quad/announce/Visor.mp3")
                
client_print(id,print_center,"Visor")
               if( 
get_pcvar_string(g_pModelName1szNamecharsmax(szName)) ) 
                { 
            
+= formatex(szText[n], charsmax(szText)-n"1. %s^n"szName
                } 
              else 
                {
                       
+= formatex(szText[n], charsmax(szText)-n"\d1. Not Available\w^n"
                       
iKeys &= ~MENU_KEY_1 
                       bKeyChanged 
true                      
                

            } 
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc

Last edited by avril-lavigne; 08-02-2011 at 19:11.
avril-lavigne is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 08-02-2011 , 15:18   Re: [Need] recommendation about menu / player models
Reply With Quote #2

how to hook join menu ... need to know what key pressed
oh found finally https://www.sourcemod.net/showthread.php?p=1517772
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc

Last edited by avril-lavigne; 08-02-2011 at 20:06.
avril-lavigne 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 03:29.


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