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

CVAR's problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
A2Z
Zero Posts
Join Date: Apr 2016
Old 04-16-2016 , 13:27   CVAR's problem
Reply With Quote #1

How do i make "mp_timelimit 30" the default command instaed of "mp_timelimit 0" on every map because my rtv plugin depends on the timeleft. I've created cvars on 2 different files, amxx.cfg and cvars.ini but when i launch the server the default time is still 0 which means that the map as unlimited time... can someone help me fixing this?
A2Z is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-16-2016 , 13:34   Re: CVAR's problem
Reply With Quote #2

You should put it in server.cfg or whatever file is specified as your "mapchangecfgfile".
__________________
fysiks is offline
A2Z
Zero Posts
Join Date: Apr 2016
Old 04-16-2016 , 13:37   Re: CVAR's problem
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
You should put it in server.cfg or whatever file is specified as your "mapchangecfgfile".
I've tried server.cfg aswell but doesnt work i dont know why.
A2Z is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-16-2016 , 13:38   Re: CVAR's problem
Reply With Quote #4

That means it is getting set to zero somewhere else. Check autoexec.cfg and all of your plugins.
__________________
fysiks is offline
A2Z
Zero Posts
Join Date: Apr 2016
Old 04-16-2016 , 13:43   Re: CVAR's problem
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
That means it is getting set to zero somewhere else. Check autoexec.cfg and all of your plugins.
I dont have any autoexec.cfg file, should i try to make one? if yes should i put it on the main folder of cstrike or in the config folder of amxmodx?
A2Z is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-16-2016 , 13:44   Re: CVAR's problem
Reply With Quote #6

Quote:
Originally Posted by A2Z View Post
I dont have any autoexec.cfg file, should i try to make one? if yes should i put it on the main folder of cstrike or in the config folder of amxmodx?
No. If it doesn't exist, don't do anything.

It must be getting set from somewhere. Another file or by a plugin.
__________________
fysiks is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 04-17-2016 , 10:40   Re: CVAR's problem
Reply With Quote #7

Try to set it after first round start with amx_cvar and then wait for some minutes and check if it has changed and if did then the problem is a plugin which changes it with a task repeatedly .
siriusmd99 is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 04-18-2016 , 09:19   Re: CVAR's problem
Reply With Quote #8

You may temporally use this while you find the problem.
https://forums.alliedmods.net/showthread.php?t=279091
Technically it might work for CS or whatever the game you are running.
__________________
gabuch2 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 05:13.


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