So for anyone who wants here is a script for zombie timer.
Works for CS:GO I have not tried CSS so I do not know.
Code:
#include <sourcemod>
public Plugin:myinfo = {
name = "Zombie Timer",
author = "KratosMafia",
description = "Amount of time till zombie spawns.",
url = "Www.OpticalGaming.Net"
}
public OnPluginStart()
{
HookEvent("round_freeze_end", Event_RoundFreezeEnd);
}
public Action:Event_RoundFreezeEnd(Handle:event, const String:name[], bool:dontBroadcast)
{
CreateTimer(0.0, ShowMsg);
}
public Action:ShowMsg(Handle:timer)
{
PrintCenterTextAll("Zombies will spawn in 30 seconds.");
CreateTimer(1.0, ShowMsgRepeat, _, TIMER_REPEAT);
}
public Action:ShowMsgRepeat(Handle:timer) {
static count = 0;
count++;
if(count < 30) {
PrintCenterTextAll("Zombies will spawn in %d %s.", (30 - count), ((30 - count) == 1) ? "second" : "seconds");
return Plugin_Continue;
}
else {
count = 0;
return Plugin_Stop;
}
}
change all the 30's to what ever you have your zombie spawn to.
This will put an alert at the bottom of the skin showing how long till zombie spawns. It is real nice. If you do not know how to compile just ask.
__________________