Raised This Month: $51 Target: $400
 12% 

server.cfg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
girotto000
Senior Member
Join Date: Feb 2013
Old 09-07-2013 , 10:37   server.cfg
Reply With Quote #1

I'm having problems.
Every time that i start the server, the configs that are into the server.cfg file do not work.
Example: I put the line sv_gravity 700 into this file, but i have to adjust the gravity manually, dont know why!
Someone can help?
girotto000 is offline
.ThePro
Member
Join Date: Aug 2011
Location: Brazil
Old 09-07-2013 , 10:45   Re: server.cfg
Reply With Quote #2

First check if any other file does not run the same cvar with different value.
__________________
Of Developer to apprentice.

.ThePro is offline
Send a message via MSN to .ThePro
girotto000
Senior Member
Join Date: Feb 2013
Old 09-07-2013 , 10:48   Re: server.cfg
Reply With Quote #3

I think that use.
I have the kz-arg plugin, and i think that he sets the gravity cvar doesnt?
If it set this cvar, i have to remove this line from server.cfg?
girotto000 is offline
girotto000
Senior Member
Join Date: Feb 2013
Old 09-08-2013 , 17:11   Re: server.cfg
Reply With Quote #4

So, i searched in the entire plugin and does exist any cvar that defines the gravity
I just do not understand why the gravity get back to 800 when i change to any map, why does it doesnt stay in 700 how its in the line in the server.cfg?
girotto000 is offline
SpaWn2KiLl
Member
Join Date: Aug 2012
Old 09-08-2013 , 17:14   Re: server.cfg
Reply With Quote #5

Problably you have any plugin that is setting sv_gravity to 800 again... first turn off all non amx default plugins and see if it happens, then check one by one until you find wich plugin is doing that.
__________________
SpaWn2KiLl is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-08-2013 , 17:15   Re: server.cfg
Reply With Quote #6

Quote:
Originally Posted by girotto000 View Post
So, i searched in the entire plugin and does exist any cvar that defines the gravity
I just do not understand why the gravity get back to 800 when i change to any map, why does it doesnt stay in 700 how its in the line in the server.cfg?
server.cfg by default doesn't execute every map (IIRC) unless it is set as to the mapchangecfgfile cvar. So, look for the file set as the mapchangecfgfile and see if it's in there. Also, you might need to look at map specific plugins.

If you can't find it in any of those files then it is likely a plugin. You can do a process of elimination by disabling half of your 3rd part plugins and trying it to see if it changes back or not. It it still happens, disable more plugins and try again until it stops happening.
__________________
fysiks is offline
girotto000
Senior Member
Join Date: Feb 2013
Old 09-08-2013 , 17:18   Re: server.cfg
Reply With Quote #7

Didnt understand what is this mapchangecfgfile and how can i use it
Can you explain better?

Last edited by girotto000; 09-08-2013 at 17:20.
girotto000 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-08-2013 , 17:20   Re: server.cfg
Reply With Quote #8

Quote:
Originally Posted by girotto000 View Post
Already did it!
But the problem still perturbing me e.e
You already did what . . .?
__________________
fysiks is offline
girotto000
Senior Member
Join Date: Feb 2013
Old 09-08-2013 , 17:26   Re: server.cfg
Reply With Quote #9

Quote:
Originally Posted by fysiks View Post
You already did what . . .?
I already did what @SpaWn2KiLl said.

Didnt understand what is this mapchangecfgfile and how can i use it
Can you explain better?
girotto000 is offline
SpaWn2KiLl
Member
Join Date: Aug 2012
Old 09-08-2013 , 17:33   Re: server.cfg
Reply With Quote #10

Okay... I have an alternative stupid method to do what you want...

A simple plugin that after something like 5 seconds after map change it set's the gravity to wich value you want...

"If a plan it's stupid, but it works. It's not stupid." - Murphy Military Laws


PHP Code:
#include <amxmodx>

#define PLUGIN "Gravity Change"
#define VERSION "1.0"
#define AUTHOR "SpaWn2KiLl"

new gravity

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
gravity register_cvar("Gravity""700")
    
    
set_task(5.0"SetGravity")
}

public 
SetGravity()
{
    
server_cmd("sv_gravity %d"get_pcvar_num(gravity))

__________________
SpaWn2KiLl 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 04:17.


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