Raised This Month: $ Target: $400
 0% 

Help Me In My MENU!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
MaNuCs
BANNED
Join Date: Oct 2009
Location: Venezuela
Old 10-25-2009 , 13:34   Re: Help Me In My MENU!
Reply With Quote #12

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>

new Plugin[] = "Last Restquest Menu"
new Version[] =  "1.0"
new Author[] = "[M]aNuC[s]_"
new gMaxPlayers


public plugin_init()
{
    
register_clcmd"say /lr","MenuLR");
    
register_clcmd"say !lr","MenuLR");
    
gMaxPlayers get_maxplayers() 
}

public 
MenuLR(id

    if(
is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_T
        
{
    new 
Menu menu_create("\w Last Resquest:""mostrar_menu")
    
menu_additem(Menu"\w Khife Duel"        "1"0)
    
menu_additem(Menu"\w Shot For Shot"        "2"0
    
    
menu_setprop(Menu,MPROP_EXITNAME,"Salir"
    
menu_setprop(MenuMPROP_EXITMEXIT_ALL
    
    
menu_display(idMenu0
}

}
public 
mostrar_menu(idMenuitem

if (
item == MENU_EXIT

    
menu_destroy(Menu
    return 
PLUGIN_HANDLED 


new 
iData[6]; 
new 
iAccess
new 
iCallback
new 
iName[64]; 
menu_item_getinfo(MenuitemiAccessiData5iName63iCallback

switch (
str_to_num(iData)) 

    case 
1:
    {
        if( 
is_user_alive(id) )
        {
        
Cuchilloid )
        }
    }
    case 
2:
    {
        if( 
is_user_alive(id) )
        {
        
Pistola(id)
        }  
    }
}
}

public 
Cuchilloid )
{
    new 
menu menu_create"Select a Player""MenuSelectPlayer1" )
    
    for ( new 
1name[33], idStr[3]; <= gMaxPlayersi++ )
        if ( 
!= id && is_user_connected) )
        {
            
get_user_nameiname32 )
            
num_to_striidStr)
            
            
menu_additemmenunameidStr )
        }
        
    
menu_displayidmenu )


public 
MenuSelectPlayer1idmenuitem )
{
    if ( 
item == MENU_EXIT )
        goto 
end
    
    
new idStr[3], garbage
    menu_item_getinfo
menuitemgarbageidStr2__garbage )
    
    new 
player str_to_numidStr )
    if ( !
is_user_connectedplayer ) )
        goto 
end
    
        strip_user_weapons
(id)  
        
give_item(id"weapon_knife");
        
set_user_health(id100);
        
client_print(idprint_chat"Duel Khife Activado...")
end:
    
menu_destroymenu )
    return 
PLUGIN_HANDLED
}

public 
Pistolaid )
{
    new 
menu menu_create"Select a Player""MenuSelectPlayer2" )
    
    for ( new 
1name[33], idStr[3]; <= gMaxPlayersi++ )
        if ( 
!= id && is_user_connected) )
        {
            
get_user_nameiname32 )
            
num_to_striidStr)
            
            
menu_additemmenunameidStr )
        }
        
    
menu_displayidmenu )


public 
MenuSelectPlayer2idmenuitem )
{
    if ( 
item == MENU_EXIT )
        goto 
end
    
    
new idStr[3], garbage
    menu_item_getinfo
menuitemgarbageidStr2__garbage )
    
    new 
player str_to_numidStr )
    if ( !
is_user_connectedplayer ) )
        goto 
end
    
           strip_user_weapons 
(id)  
            
set_user_health(id100);
            
give_item(id,"weapon_deagle")
            
cs_set_user_bpammo(id,CSW_DEAGLE,200)
            
give_item(id"weapon_knife")
            
client_print(idprint_chat"Shot For Shot Activado...")
end:
    
menu_destroymenu )
    return 
PLUGIN_HANDLED

have Errors

no give weapon a the CT selected...
need to the menu open for the last terrorist...
and in the menu players... show CTS PLAYERS LIVEs..
i give +karm

Thxx For alll helping!
MaNuCs is offline
Send a message via MSN to MaNuCs
 



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 17:32.


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