I need a plugin that will disable the time limit or increase it to 30, since the round time is 8 minutes, the fact is that all maps including zpo and zps have a time limit of 8 minutes, mp_timelimit does not affect this, I would like remove it time so that the round does not end until all survivors die.
I tough it would be easier to change round timer with that.
Part 1
First, you need grant yourself as admin in ZPS admin system. (Not necessary need, you can change AS cvar with ascmd instead)
Open file and you see last section { }, edit that and give steamid.
...zps/data/adminsystem.json
Code:
{
"admins": [
// This user has "root" access (super-administrator), the immunity value is
// therefore ignored.
//{
// "steamid": "STEAM_0:0:00000000",
// "immunity": 100,
// "flags": "z"
//},
// This user has a reserved slot, is recognized as administrator, can kick
// and ban clients, his immunity value is 50.
//{
// "steamid": "STEAM_1:1:11111111",
// "immunity": 50,
// "flags": "abcd"
//},
// This user is part of the "BasicAdmin" group and will inherit the group's
// flag(s).
//{
// "steamid": "STEAM_2:2:22222222",
// "immunity": 50,
// "group": "BasicAdmin"
//},
// This user is part of the "BasicAdmin" group but has a different set of
// flag(s) than what the group defines.
//{
// "steamid": "STEAM_3:3:33333333",
// "immunity": 50,
// "group": "BasicAdmin",
// "flags": "abcd"
//},
{
"steamid": "STEAM_0:1:14163588",
"immunity": 100,
"group": "BasicAdmin",
"flags": "h"
}
],
"groups": {
"BasicAdmin": {
"flags": "b"
}
}
}
There is AS plugin in zps_freezetime.as.zip file, extract that in your server
@ConVarFreezeRoundtime = ConVar::Create("sv_zps_freeze_roundtime", "-1.0", "Freeze time to given value, time need to be 0.0 or greater", null, true, -1.0f);
}
Then you reboot server, I'm not sure does map change load plugin and admin.
- You see errors in server console if you have typos in script files.
Part 2
Now comes bad part... you can't use AS console variable same way as SourceMod and SRCDS.
- You can't use this cvar from server console or using rcon. You need go play in server and use it from your own game console. Maybe I'm too dummy but I couldn't get it work normal way.
To see is AS plugin loaded, use command: as_listplugins
Code:
[Angelscript] 1 plugins are running server side
"FreezeRoundtime.as" ("Freeze Roundtime") v1.0 by "Bacardi" - Lifetime: HOTRELOADABLE
To see plugin commands, use command: as_showcommands
Code:
Available commands:
----------------------
sv_zps_freeze_roundtime >> "-1.000000" ( "Freeze time to given value, time need to be 0.0 or greater" )
1 -- ConVars
----------------------
AS plugin Console Variable is: sv_zps_freeze_roundtime
- Default value is -1. Plugin won't do anything.
- When you set time in seconds ex. 1200 (20 minutes), plugin will freeze roundtime to that.
- After that if you hit back -1, roundtimer will continue. So you can basically change roundtime.
- Round end if you hit 0 seconds
If you want this plugin work all the time when server start, edit FreezeRoundtime.as file.
Change this part
Code:
@ConVarFreezeRoundtime = ConVar::Create("sv_zps_freeze_roundtime", "1200.0", "Freeze time to given value, time need to be 0.0 or greater", null, true, -1.0f);
I tough it would be easier to change round timer with that.
Part 1
First, you need grant yourself as admin in ZPS admin system. (Not necessary need, you can change AS cvar with ascmd instead)
Open file and you see last section { }, edit that and give steamid.
...zps/data/adminsystem.json
Code:
{
"admins": [
// This user has "root" access (super-administrator), the immunity value is
// therefore ignored.
//{
// "steamid": "STEAM_0:0:00000000",
// "immunity": 100,
// "flags": "z"
//},
// This user has a reserved slot, is recognized as administrator, can kick
// and ban clients, his immunity value is 50.
//{
// "steamid": "STEAM_1:1:11111111",
// "immunity": 50,
// "flags": "abcd"
//},
// This user is part of the "BasicAdmin" group and will inherit the group's
// flag(s).
//{
// "steamid": "STEAM_2:2:22222222",
// "immunity": 50,
// "group": "BasicAdmin"
//},
// This user is part of the "BasicAdmin" group but has a different set of
// flag(s) than what the group defines.
//{
// "steamid": "STEAM_3:3:33333333",
// "immunity": 50,
// "group": "BasicAdmin",
// "flags": "abcd"
//},
{
"steamid": "STEAM_0:1:14163588",
"immunity": 100,
"group": "BasicAdmin",
"flags": "h"
}
],
"groups": {
"BasicAdmin": {
"flags": "b"
}
}
}
There is AS plugin in zps_freezetime.as.zip file, extract that in your server
@ConVarFreezeRoundtime = ConVar::Create("sv_zps_freeze_roundtime", "-1.0", "Freeze time to given value, time need to be 0.0 or greater", null, true, -1.0f); }
Then you reboot server, I'm not sure does map change load plugin and admin.
- You see errors in server console if you have typos in script files.
Part 2
Now comes bad part... you can't use AS console variable same way as SourceMod and SRCDS.
- You can't use this cvar from server console or using rcon. You need go play in server and use it from your own game console. Maybe I'm too dummy but I couldn't get it work normal way.
To see is AS plugin loaded, use command: as_listplugins
Code:
[Angelscript] 1 plugins are running server side
"FreezeRoundtime.as" ("Freeze Roundtime") v1.0 by "Bacardi" - Lifetime: HOTRELOADABLE
To see plugin commands, use command: as_showcommands
Code:
Available commands:
----------------------
sv_zps_freeze_roundtime >> "-1.000000" ( "Freeze time to given value, time need to be 0.0 or greater" )
1 -- ConVars
----------------------
AS plugin Console Variable is: sv_zps_freeze_roundtime
- Default value is -1. Plugin won't do anything.
- When you set time in seconds ex. 1200 (20 minutes), plugin will freeze roundtime to that.
- After that if you hit back -1, roundtimer will continue. So you can basically change roundtime.
- Round end if you hit 0 seconds
If you want this plugin work all the time when server start, edit FreezeRoundtime.as file.
Change this part
Code:
@ConVarFreezeRoundtime = ConVar::Create("sv_zps_freeze_roundtime", "1200.0", "Freeze time to given value, time need to be 0.0 or greater", null, true, -1.0f);
THE END
Valve has to sell it's Products , that's a shame when they design a remote cvar mp_timelimit that doesn't work .
+ Valve Games are getting worse with full of bugs
They are waiting for reports and community response without giving a shit for a perfect logical design from the beginning .
Valve has to sell it's Products , that's a shame when they design a remote cvar mp_timelimit that doesn't work .
+ Valve Games are getting worse with full of bugs
They are waiting for reports and community response without giving a shit for a perfect logical design from the beginning .