AlliedModders

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

Dimanok 07-12-2010 13:30

Command
 
Hello! Guys need your help! Can you write an example plug-in that would be served amx_cvar command after changing cards, and if the value of command coincided then nothing would have been done. Thanks in advance.

Where command = mp_timelimit

Sorry for my English

drekes 07-12-2010 14:04

Re: Command
 
I have no idea what you want.

You want to change a cvar on mapchange?

Dimanok 07-12-2010 14:15

Re: Command
 
Quote:

Originally Posted by drekes (Post 1236857)
I have no idea what you want.

You want to change a cvar on mapchange?

Yes, after changing cards to verify the value of team mp_timelimit and if it does not coincide with the set in server.cfg, changed the fact that in the server.cfg

Arkshine 07-12-2010 14:19

Re: Command
 
You don't need a plugin. Just put your value mp_timelimit in amxx.cfg.

Dimanok 07-12-2010 15:08

Re: Command
 
Quote:

Originally Posted by Arkshine (Post 1236881)
You don't need a plugin. Just put your value mp_timelimit in amxx.cfg.

The fact is that when voting for the next card, players choose to extend the map. Here, after the extension of the card over, timelimit strays, get together already installed in server.kfg 30 minutes 45 or 50.
That's why my plugin.

ConnorMcLeod 07-12-2010 15:55

Re: Command
 
amxx.cfg is just fine to fix mp_timelimit and any other cvar you want to be sure to be a certain value at each map start.
You can also use cstrike/game.cfg

fysiks 07-12-2010 17:49

Re: Command
 
If you have mapchangecfgfile set correctly then you shouldn't have any problems.

Kreation 07-13-2010 04:25

Re: Command
 
Quote:

Originally Posted by ConnorMcLeod (Post 1236966)
amxx.cfg is just fine to fix mp_timelimit and any other cvar you want to be sure to be a certain value at each map start.
You can also use cstrike/server.cfg

:wink:

ConnorMcLeod 07-13-2010 15:30

Re: Command
 
Quote:

Originally Posted by Kreation (Post 1237461)
:wink:

Wrong.

server.cfg is executed only at server start
game.cfg (doesn't exist by default but) is executed each map start

you can also set cvar mapchangecfgfile to the file you want but it gonna act like game.cfg

Kreation 07-13-2010 19:06

Re: Command
 
Ah, doesn't exist by default, probably why I have never heard of it and thought of server.cfg, my mistake. :D


All times are GMT -4. The time now is 07:09.

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