Raised This Month: $ Target: $400
 0% 

Can someone provide me this script


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
RAW_192
Senior Member
Join Date: Feb 2017
Old 02-12-2017 , 10:01   Re: Can someone provide me this script
Reply With Quote #5

Quote:
Originally Posted by yas17sin View Post
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;


Ok i got it . Thank you very much i will make it now ..

Just 1 more question

here
menu_additem( menu, " Tripe Nades", "", 0)
menu_additem( menu, "Admin Nade", "", ADMIN_BAN)

what are these
-> " "
-> why its 0 ?
-> Admin_ban ?

I mean values of what thing have you put there?
RAW_192 is offline
 



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