Fixed admin infect bug (I think), made roundend core module, handles all round end events, modified ClassApplyOverlay, removed mp_restartgame hook, recoded PlayerLeft and BalanceTeam functions. And added comments.
This commit is contained in:
@ -1,45 +0,0 @@
|
||||
/**
|
||||
* ====================
|
||||
* Zombie:Reloaded
|
||||
* File: overlays.inc
|
||||
* Author: Greyscale
|
||||
* ====================
|
||||
*/
|
||||
|
||||
ShowOverlays(Float:time, ZTeam:winner)
|
||||
{
|
||||
new bool:overlays = GetConVarBool(gCvars[CVAR_OVERLAYS]);
|
||||
if (overlays)
|
||||
{
|
||||
decl String:overlay[64];
|
||||
if (winner == Human)
|
||||
{
|
||||
GetConVarString(gCvars[CVAR_OVERLAYS_HUMAN], overlay, sizeof(overlay));
|
||||
}
|
||||
else if (winner == Zombie)
|
||||
{
|
||||
GetConVarString(gCvars[CVAR_OVERLAYS_ZOMBIE], overlay, sizeof(overlay));
|
||||
}
|
||||
|
||||
for (new x = 1; x <= MaxClients; x++)
|
||||
{
|
||||
if (IsClientInGame(x))
|
||||
{
|
||||
ZRDisplayClientOverlay(x, overlay);
|
||||
}
|
||||
}
|
||||
|
||||
CreateTimer(time, KillOverlays);
|
||||
}
|
||||
}
|
||||
|
||||
public Action:KillOverlays(Handle:timer)
|
||||
{
|
||||
for (new x = 1; x <= MaxClients; x++)
|
||||
{
|
||||
if (IsClientInGame(x))
|
||||
{
|
||||
ClientCommand(x, "r_screenoverlay \"\"");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user