Raised This Month: $ Target: $400
 0% 

block cnagelevel command


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
echo_cs
Senior Member
Join Date: Dec 2011
Old 12-16-2011 , 10:28   Re: block cnagelevel command
Reply With Quote #2

This is The plugin

I created it for you

PHP Code:
#include <amxmodx>
#include <amxmisc>

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


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_cvar("map_only""1")
    
register_cvar("map_onlyname""de_dust2")
    
server_cmd("mp_timelimit 0")
}



public 
server_changelevel()
{
    new 
Map[50];
    
    if(!
get_cvar_num("map_only") )
        return 
PLUGIN_CONTINUE
    
    
if(!get_cvar_string("map_onlyname"Mapcharsmax(Map) ) )
        return 
PLUGIN_CONTINUE
    
    server_cmd
("amx_map %s"Map);
    
    
server_cmd("mp_timelimit 0")
    
    return 
PLUGIN_HANDLED

First: Download the MapOnly.amxx in addons/amxmodx/plugins
Second :Open addons/amxmodx/config/plugin.ini and add this MapOnly.amxx in the end
Attached Files
File Type: sma Get Plugin or Get Source (MapOnly.sma - 498 views - 823 Bytes)
__________________
Pawn (5%)

C (80%)

C++ (20%)

SQL (5%)
echo_cs 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:45.


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