Something like this
Code:
#include <sourcemod>
#define SPAWN_INTERVAL_TANK 10
#define SPAWN_INTERVAL_NORMAL 20
new Handle:g_cvarSpawnInterval = INVALID_HANDLE
public Plugin:myinfo =
{
name = "Faster Spawns",
author = "Jon",
description = "Reduces spawn time for special infected during tank",
version = "1.0"
}
public OnPluginStart( )
{
g_cvarSpawnInterval = FindConVar( "versus_special_respawn_interval" )
HookEvent( "tank_spawn", TankSpawn )
HookEvent( "tank_killed", TankKilled )
HookEvent( "round_end", RoundEnd )
}
public Action:TankSpawn( Handle:event, const String:name[], bool:dontBroadcast )
SetConVarInt( g_cvarSpawnInterval, SPAWN_INTERVAL_TANK )
public Action:TankKilled( Handle:event, const String:name[], bool:dontBroadcast )
SetConVarInt( g_cvarSpawnInterval, SPAWN_INTERVAL_NORMAL )
public Action:RoundEnd( Handle:event, const String:name[], bool:dontBroadcast )
SetConVarInt( g_cvarSpawnInterval, SPAWN_INTERVAL_NORMAL )