AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   server.cfg (https://forums.alliedmods.net/showthread.php?t=225647)

girotto000 09-07-2013 10:37

server.cfg
 
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?

.ThePro 09-07-2013 10:45

Re: server.cfg
 
First check if any other file does not run the same cvar with different value.

girotto000 09-07-2013 10:48

Re: server.cfg
 
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 09-08-2013 17:11

Re: server.cfg
 
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?

SpaWn2KiLl 09-08-2013 17:14

Re: server.cfg
 
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.

fysiks 09-08-2013 17:15

Re: server.cfg
 
Quote:

Originally Posted by girotto000 (Post 2030932)
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.

girotto000 09-08-2013 17:18

Re: server.cfg
 
Didnt understand what is this mapchangecfgfile and how can i use it
Can you explain better?

fysiks 09-08-2013 17:20

Re: server.cfg
 
Quote:

Originally Posted by girotto000 (Post 2030946)
Already did it!
But the problem still perturbing me e.e

You already did what . . .?

girotto000 09-08-2013 17:26

Re: server.cfg
 
Quote:

Originally Posted by fysiks (Post 2030951)
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?

SpaWn2KiLl 09-08-2013 17:33

Re: server.cfg
 
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))




All times are GMT -4. The time now is 18:52.

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