For number 2:
https://forums.alliedmods.net/showpo...41&postcount=2
Quote:
Originally Posted by Bacardi
server convars
Code:
"mp_team_timeout_max" = "1"
FCVAR_GAMEDLL FCVAR_REPLICATED FCVAR_RELEASE
- Number of timeouts each team gets per match.
"mp_team_timeout_time" = "60"
FCVAR_GAMEDLL FCVAR_REPLICATED FCVAR_RELEASE
- Duration of each timeout.
"sv_vote_issue_timeout_allowed" = "1"
FCVAR_DEVELOPMENTONLY FCVAR_GAMEDLL
- Can people hold votes to time out?
server commands
Code:
"timeout_terrorist_start"
FCVAR_GAMEDLL
"timeout_ct_start"
FCVAR_GAMEDLL
*edit
seems vote not work... :/
*edit
More pauses
server commands
Code:
"mp_unpause_match"
FCVAR_GAMEDLL
- Resume the match
"mp_pause_match"
FCVAR_GAMEDLL
- Pause the match in the next freeze time
|
Timeout
vote is restricted by IsPlayingAnyCompetitiveStrictRuleset.
Which is Classic and Classic competitive.
game_type 0 game_mode 1
*edit
For number 1:
This should block teammate knife damage when FF enabled and ff_damage_reduction_other > 0
PHP Code:
#include <sdkhooks>
public void OnPluginStart()
{
for(int i = 1; i <= MaxClients; i++)
{
if(IsClientInGame(i)) OnClientPutInServer(i);
}
}
public void OnClientPutInServer(int client)
{
SDKHook(client, SDKHook_OnTakeDamageAlive, OnTakeDamageAlive);
}
public Action OnTakeDamageAlive(int victim, int &attacker, int &inflictor, float &damage, int &damagetype)
{
// Is not knife damage
if( damagetype != DMG_NEVERGIB | DMG_SLASH ) return Plugin_Continue;
// filter any bad attacker index
if( inflictor <= 0 || inflictor == victim || inflictor > MaxClients ) return Plugin_Continue;
// teammate attack
if(GetClientTeam(victim) == GetClientTeam(inflictor)) return Plugin_Handled;
return Plugin_Continue;
}