AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Bots & Select items in new style menus (https://forums.alliedmods.net/showthread.php?t=94162)

xPaw 06-07-2009 09:09

Bots & Select items in new style menus
 
Hey, i just woundering how i can force bots to select something in my menu?

What i tryed and didnt worked -__- bots are podbotmm
PHP Code:

[eng]client_cmdid"slot1" );
// also menuselect1 or with space 

Also tryed fake handle call
PHP Code:

public BOTWantToSelectid ) {
    new 
menu_idkeys
    new 
menuUp player_menu_infoidmenu_idkeys );
    
    if( 
menuUp ) {
        new 
iPlayers32 ], iNumiPlayer;
        
get_playersiPlayersiNum );
        
        for( new 
iiNumi++ ) {
            
iPlayer iPlayers];
            
            if( 
iPlayer != id && !g_bSelectedAsTerriPlayer ] ) {
                
handle_SelectMenuidmenuUpiPlayer );
                
client_print0print_chat"a %i"iPlayer );
                
// printed iplayer 1 in menu key was 0...
                
break;
            }
        }
    }




All times are GMT -4. The time now is 14:03.

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