Raised This Month: $ Target: $400
 0% 

block cnagelevel command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
verzoteX
Member
Join Date: Nov 2011
Location: Montenegro / Podgorica
Old 12-16-2011 , 10:11   block cnagelevel command
Reply With Quote #1

can anybody tell me how to block changelevel command in my server becouse i run only dd2 server and dont whant to change maps
verzoteX is offline
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
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
echo_cs
Senior Member
Join Date: Dec 2011
Old 12-16-2011 , 10:37   Re: block cnagelevel command
Reply With Quote #4

The plugin has an error Please wait
__________________
Pawn (5%)

C (80%)

C++ (20%)

SQL (5%)
echo_cs is offline
echo_cs
Senior Member
Join Date: Dec 2011
Old 12-16-2011 , 10:45   Re: block cnagelevel command
Reply With Quote #5

you can Do this

you deleted all the .bsp files in cstrike/map only de_dust2.bsp

And wait the plugin is difficalt
__________________
Pawn (5%)

C (80%)

C++ (20%)

SQL (5%)
echo_cs is offline
verzoteX
Member
Join Date: Nov 2011
Location: Montenegro / Podgorica
Old 12-16-2011 , 10:50   Re: block cnagelevel command
Reply With Quote #6

Quote:
Originally Posted by echo_cs View Post
you can Do this

you deleted all the .bsp files in cstrike/map only de_dust2.bsp

And wait the plugin is difficalt
i tried that too but i have a plugin that changes the map after 30 rounds and if no maps in map folder my server crashs so i have to block the command so the plugin cant change it and i cant delete the plugin becouse becouse i created my server for that mode
verzoteX is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-16-2011 , 11:41   Re: block cnagelevel command
Reply With Quote #7

Quote:
Originally Posted by verzoteX View Post
i have a plugin that changes the map after 30 rounds
And first idea you have is to block changelevel command ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
verzoteX
Member
Join Date: Nov 2011
Location: Montenegro / Podgorica
Old 12-16-2011 , 11:42   Re: block cnagelevel command
Reply With Quote #8

Quote:
Originally Posted by ConnorMcLeod View Post
And first idea you have is to block changelevel command ?
yes if possible i searched for that plugin months a can fix that in other ways but i want to block it
verzoteX is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-16-2011 , 14:44   Re: block cnagelevel command
Reply With Quote #9

Quote:
Originally Posted by verzoteX View Post
i have a plugin that changes the map after 30 rounds
Post the source code of that plugin as an attachment. We can edit it.
__________________
fysiks is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-16-2011 , 11:37   Re: block cnagelevel command
Reply With Quote #10

Delete others maps / Use mp_timelimit 0
__________________
You can do anything you set your mind to, man.


Last edited by Devil259; 12-16-2011 at 11:37.
Devil259 is offline
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 11:45.


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