Raised This Month: $ Target: $400
 0% 

block cnagelevel command


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
verzoteX
Member
Join Date: Nov 2011
Location: Montenegro / Podgorica
Old 12-16-2011 , 10:31   Re: block cnagelevel command
Reply With Quote #3

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

edit: i tested it but it doesent block command changelevel it just sets mp_timelimit to 0 i whant a plugin what blocks changelevel and rcon map commands if possible

Last edited by verzoteX; 12-16-2011 at 10:42.
verzoteX 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