Raised This Month: $81 Target: $400
 20% 

Remove Doors


Post New Thread Reply   
 
Thread Tools Display Modes
mptijsma
Member
Join Date: Mar 2006
Old 03-16-2006 , 09:27  
Reply With Quote #31

register_cvar("removedoors_auto","1");

Set this CVAR to "0" (in your server.cfg, be sure to restart server) if you DON'T want it to remove doors automatically.

When you've done this, put removedoors in your map.cfg =).
mptijsma is offline
WW2
Member
Join Date: May 2005
Location: USA, WA, In a tree
Old 03-16-2006 , 15:24  
Reply With Quote #32

Ok, I put this in the server.cfg

register_cvar("removedoors_auto","0")

put remove doors in the map.cfg, rebooted.

Doors are still removed on all maps.

Am I doing some thing wrong?

Do I have to change the value in the .sma before I compile it to 0 first?
__________________
[img]http://img149.**************/img149/825/forumsig7tr.jpg[/img]
WW2 is offline
mptijsma
Member
Join Date: Mar 2006
Old 03-16-2006 , 15:26  
Reply With Quote #33

Sorry that I have to say, but yes, you're doing something wrong!
That is small, not something you put in your server config ^^.

Put this in your server.cfg:
removedoors_auto 0

Greetz,

Thijs
mptijsma is offline
WW2
Member
Join Date: May 2005
Location: USA, WA, In a tree
Old 03-16-2006 , 15:32  
Reply With Quote #34

Ok, that's what I needed to know, sorry a bit noobish about adding cvar commands to the server.cfg. Will try it out and let you know later today.
__________________
[img]http://img149.**************/img149/825/forumsig7tr.jpg[/img]
WW2 is offline
WW2
Member
Join Date: May 2005
Location: USA, WA, In a tree
Old 03-16-2006 , 17:12  
Reply With Quote #35

Quote:
Originally Posted by mptijsma
Sorry that I have to say, but yes, you're doing something wrong!
That is small, not something you put in your server config ^^.

Put this in your server.cfg:
removedoors_auto 0

Greetz,

Thijs
Put this in my server.cfg removedoors_auto 0, I have removedoors in my map.cfg, rebooted, all maps still have no doors.
__________________
[img]http://img149.**************/img149/825/forumsig7tr.jpg[/img]
WW2 is offline
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 06-30-2006 , 21:23   Re: Remove Doors
Reply With Quote #36

Any updates on this plugin? What's going on? Sounds like a good idea to change things up every once in a while and have fun!

Please update with any progress on reading maps from a file.
SubStream is offline
F34RInc
BANNED
Join Date: Dec 2005
Location: Medellín, Colombia
Old 07-10-2006 , 23:47   Re: Remove Doors
Reply With Quote #37

I fail at writing plugins but im sure someone can fix this

#include <amxmodx>
#include <engine>


public plugin_init() {

register_plugin("Remove Doors","1.1","[BSP] Thijs");
register_cvar("Removedoors","1")
#else
register_cvar("Removedoors","0")
set_task(1.0,"RemoveDoors");
}
if (get_cvar_num("RemoveDoors")==1)
public RemoveDoors() {

new Door;
while((Door = find_ent_by_class(Door,"func_door_rotating")) ) {
remove_entity(Door);
}
while((Door = find_ent_by_class(Door,"func_door"))) {
remove_entity(Door);
}
}
F34RInc is offline
Send a message via AIM to F34RInc Send a message via MSN to F34RInc
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 07-10-2006 , 23:52   Re: Remove Doors
Reply With Quote #38

F34RInc, wtf are you trying to do?
Deviance is offline
F34RInc
BANNED
Join Date: Dec 2005
Location: Medellín, Colombia
Old 07-11-2006 , 01:32   Re: Remove Doors
Reply With Quote #39

The plugin is on all the time, theres no way to turn the 'removal of doors' off I tried adding a toggle.
F34RInc is offline
Send a message via AIM to F34RInc Send a message via MSN to F34RInc
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 07-11-2006 , 02:15   Re: Remove Doors
Reply With Quote #40

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

new enabled;

public plugin_init() {
	register_plugin("Remove Doors","1.4","[BSP] Thijs");
	enabled = register_cvar("removedoors_auto","1");
	
	register_srvcmd("removedoors","RemoveDoors");
	
	set_task(1.0,"RemoveDoors");	
}

public RemoveDoors() {
	if(get_pcvar_num(enabled) < 1)
	return PLUGIN_HANDLED;
	
	new Door;
	
	while(Door == find_ent_by_class(Door,"func_door_rotating"))
		remove_entity(Door);
		
	while(Door == find_ent_by_class(Door,"func_door"))
		remove_entity(Door);
	
	return PLUGIN_HANDLED;
}

Last edited by Deviance; 07-11-2006 at 03:07.
Deviance is offline
Reply


Thread Tools
Display Modes

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 19:53.


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