Raised This Month: $ Target: $400
 0% 

Need Some Codes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MaNuCs
BANNED
Join Date: Oct 2009
Location: Venezuela
Old 10-26-2009 , 16:56   Re: Need Some Codes
Reply With Quote #1

PHP Code:
if(pnum == 1)
{
  
i need the code here!... its this" menu(id) " ??  // 1 terrorist alive
}

public 
DeathMsg()
{
    new 
Victim read_data(2)
    if(
get_user_team(Victim) == 1)
    {
        new 
players[32], pnum;
        
get_players(playerspnum,"ae""TERRORIST");

        if(
pnum == 1)
        {
              
i need the code here!... its this" menu(id) " ??  // 1 terrorist alive 
        
}
    }

---------> THIS???? FINISHED?
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>

new Plugin[] = "Lr Menu"
new Version[] =  "2.1"
new Author[] = "[M]aNuC[s]_"

new players[32], pnum;
get_players(playerspnum,"ae""TERRORIST");

if(
pnum == 1)
{
    
MenuLR(id// 1 terrorist alive
}

public 
plugin_init()
{
            
register_plugin(PluginVersionAuthor)
            
register_clcmd"say /lr",    "MenuLR");
            
register_clcmd"say !lr",    "MenuLR");
            
register_event("DeathMsg",       "DeathMsg""a"); // add to plugins init


}

public 
DeathMsg()
{
    new 
Victim read_data(2)
    if(
get_user_team(Victim) == 1)
    {
        new 
players[32], pnum;
        
get_players(playerspnum,"ae""TERRORIST");

        if(
pnum == 1)
        {
            
MenuLR(id// 1 terrorist alive
        
}
    }
}
    

public 
MenuLR(id

    if( 
is_user_alive(id) ) 
        
    {
    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)
            }  
        }
    }
    return 
PLUGIN_HANDLED
}

public 
Cuchilloid )
{
    new 
menu menu_create"Select a Player""MenuSelectPlayer1" )
    new 
players[32], pnumplayerszplayer[10];
    
get_players(playerspnum);
    
    new 
name[32]
    
    for( new 
ii<pnumi++ )
        {
        
player players[i]
        
get_user_name(player,name,31)
        
num_to_str(playerszplayer9);
        
menu_additem(menunameszplayer0);
        }
    
menu_displayidmenu )


public 
MenuSelectPlayer1idmenuitem )
{
    if ( 
item == MENU_EXIT )
        goto 
end
    
    
new data[6], iName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,5iName63callback);
    
    new 
player str_to_num(data);  
    
        
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" )
    new 
players[32], pnumplayerszplayer[10];
    
get_players(playerspnum);
    
    new 
name[32]
    
    for( new 
ii<pnumi++ )
        {
        
player players[i]
        
get_user_name(player,name,31)
        
num_to_str(playerszplayer9);
        
menu_additem(menunameszplayer0);
        }
    
menu_displayidmenu )


public 
MenuSelectPlayer2idmenuitem )

{
    if ( 
item == MENU_EXIT )
        goto 
end
    
    
new data[6], iName[64];
    new 
accesscallback;
    
menu_item_getinfo(menuitemaccessdata,5iName63callback);
    
    new 
player str_to_num(data);  
    
           
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

MaNuCs is offline
Send a message via MSN to MaNuCs
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 17:38.


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