Raised This Month: $ Target: $400
 0% 

map Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
soumyadip77
Senior Member
Join Date: Jul 2017
Location: INDIA,KOLKATA
Old 06-14-2018 , 11:19   Re: map Menu
Reply With Quote #1

Here me changes something removed array and try to add this type....

PHP Code:
/* Sublime AMXX Editor v2.2 */

#include <amxmodx>
#include <amxmisc>
// #include <cstrike>
// #include <engine>
// #include <fakemeta>
// #include <hamsandwich>
// #include <fun>
// #include <xs>
// #include <sqlx>

#define PLUGIN  "New Plug-In"
#define VERSION "1.0"
#define AUTHOR  "Author"

#define MAX_MAP 32

new filename164 ];
new 
map_count;
new 
map_menu;
new 
map_namesMAX_MAP ][ MAX_PLAYERS ]


public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    
get_configsdir(filename164);
    
format(filename164"%s/special_map.ini"filename);
}

public 
plugin_cfg()
{
    
    if( 
file_existsfilename ) )
    {
        new 
open fopenfilename"rt");
        
        new 
buffer164 ], num10 ];
        
        while( !
feofopen ) && ( map_count MAX_MAP ) )
        {
            
fgetsopenbuffercharsmax(buffer));
            
trim(buffer);
            
            if( !
buffer] || buffer] == ';' || buffer] == '/' && buffer] == '/' && is_map_valid(buffer) )
            {
                continue;
            }

            
copymap_namesmap_count ], charsmaxmap_names[] ), buffer);

            
num_to_strmap_countnumcharsmax(num));
            
menu_additemmap_menumap_namesmap_count ], num);

            
map_count++;
            
        }

        
fcloseopen );

    }

    return 
0;


Last edited by soumyadip77; 06-14-2018 at 11:20. Reason: wrong file :)
soumyadip77 is offline
Send a message via Skype™ to soumyadip77
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 04:33.


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