Raised This Month: $ Target: $400
 0% 

Can someone provide me this script


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 02-12-2017 , 09:33   Re: Can someone provide me this script
Reply With Quote #4

yes you can add item by using cmd of the nades plugin or any others .
here is a example :
PHP Code:
#include <amxmodx>

new menu;

public 
plugin_init()
{
    
register_clcmd"buy""main_menu")
}
public 
main_menuid )
{
    if(!
is_user_aliveid ) )
        return;
    
    
menu menu_create"Example Menu""menu_handler" );
    
    
menu_additemmenu" Tripe Nades"""0)
    
menu_additemmenu"Admin Nade"""ADMIN_BAN)
    
    
menu_displayidmenu0)
}
public 
menu_handleridmenuitem)
{
    switch( 
item )
    {
        case 
0:
        {
            
client_cmdid"get_tripenade" // this the cmd need to be register in the plugin of tripe nade
        
}
        case 
1:
        {
            
client_cmdid"get_adminnade" // this cmd also need to be resgister in the plugin of admin nade
        
}
        case 
MENU_EXIT:
        {
            
// do nothing ?
        
}
    }
    
menu_destroymenu );
    return 
PLUGIN_HANDLED;

yas17sin is offline
Send a message via ICQ to yas17sin
 



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 21:03.


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