Raised This Month: $51 Target: $400
 12% 

[REQ] Top 15 Menu Plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
JoaoVieira
Senior Member
Join Date: May 2013
Location: Portugal
Old 01-27-2016 , 13:06   [REQ] Top 15 Menu Plugin
Reply With Quote #1

Hi , can some one help me on this?
I want to click on number of player (1/15) and it will show the player kills / deaths / Ratio



Here is the code.
PHP Code:
#include <amxmodx>
#include <csx>
#include <colorchat>

public plugin_init()
{
    
register_plugin("Stats new""1.0""meNe")
    
register_clcmd("say /top15""show_top"0)
    
register_clcmd("say top15""show_top"0);
}

public 
show_top(id)
{
    
show_menu(id0"\n"0<<1<<2<<3<<4<<5<<6<<7<<8<<9<<10<<11<<12<<13<<14<<15)
    new 
menu menu_create("\r[SMART TEAM PORTUGAL]^n\dTOP15","menu_handler")
    new 
szmenu[512]
    new 
iMax get_statsnum()
    new 
t_sName[32];
    
iMax 15
    
    
for (new 0iMaxi++)
    {
        
get_stats(it_sName31);
        
replace_all(t_sName31"<""[");
        
replace_all(t_sName31">""]");
        
formatex(szmenu511"[\y%s\w]"t_sName);
        
menu_additem(menuszmenu)
    }
    
    
menu_setprop(menuMPROP_EXITMEXIT_ALL)
    
menu_display(idmenu0)
}

public 
menu_handler(idmenuitem)
{
    switch(
item)    
    {
        case 
1:
        {
            
        }
        case 
2:
        {
            
        }
        case 
3:
        {
            
        }
        case 
4:
        {
            
        }
        case 
5:
        {
            
        }
        case 
6:
        {
            
        }
        case 
7:
        {
            
        }
        case 
8:
        {
            
        }
        case 
9:
        {
            
        }
        case 
10:
        {
            
        }
        case 
11:
        {
            
        }
        case 
12:
        {
            
        }
        case 
13:
        {
            
        }
        case 
14:
        {
            
        }
        case 
15:
        {
            
        }
    }
    
menu_destroy(menu);
    return 
PLUGIN_HANDLED;

Thanks.

Last edited by JoaoVieira; 01-27-2016 at 14:09.
JoaoVieira 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 11:28.


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