Commit afee3665 authored by Neoony's avatar Neoony
Browse files

v0.8 WIP Added server commands nc_nce and nc_ncd. Same function as sm_nce/sm_ncd but server side.

parent 8b337949
......@@ -84,4 +84,5 @@
- Added PUG plugin compatibility
- Added 10 seconds timer for turning off AllTalk after both teams have a comm along with announcing it
- !nce now resets the status of "Disable extending when PauseVote used", NCEV will continue extending
- Added nc_pugc to enable or disable compatibility with PUG plugin (default 1)
\ No newline at end of file
- Added nc_pugc to enable or disable compatibility with PUG plugin (default 1)
- Added server commands nc_nce and nc_ncd, which basically do the same thing as sm_nce/sm_ncd but server side
\ No newline at end of file
......@@ -9,12 +9,18 @@ Latest **dev** version: http://sourcemod.docs.empiresmod.com/no_commander_extend
**Commands:**
**"sm_nce"**
*"Enable extending of comm vote. In chat: !nce"*
**"sm_ncd"**
*"Disable extending of comm vote. In chat: !ncd"*
**"sm_nce"**
*"Enable extending of comm vote. In chat: !nce"*
**"sm_ncd"**
*"Disable extending of comm vote. In chat: !ncd"*
**"nc_nce"**
*"Enable extending of comm vote. Server command"*
**"nc_ncd"**
*"Disable extending of comm vote. Server command"*
**----**
**Cvars:**
......
......@@ -125,6 +125,9 @@ public void OnPluginStart()
//Admin commands
RegAdminCmd("sm_nce", Command_NCEnable, ADMFLAG_SLAY);
RegAdminCmd("sm_ncd", Command_NCDisable, ADMFLAG_SLAY);
//Server commands
RegServerCmd("nc_nce", SCommand_NCEnable);
RegServerCmd("nc_ncd", SCommand_NCDisable);
//Cvars
nc_addvotetime = CreateConVar("nc_addvotetime", "30", "How much to add to the current detected value of (emp_sv_vote_commander_time), when extending vote time.");
......@@ -463,6 +466,19 @@ public Action LockSpecMP(Handle timer)
}
}
public Action:SCommand_NCEnable(args)
{
NCEnableDisable = 1;
PrintToServer("[NCEV] Extending of the vote ENABLED");
vtpausedused = 0;
}
public Action:SCommand_NCDisable(args)
{
NCEnableDisable = 0;
PrintToServer("[NCEV] Extending of the vote DISABLED");
}
public Action Command_NCEnable(int client, int args)
{
NCEnableDisable = 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment