&& ((this.autoscreenshot > 0) && (time > this.autoscreenshot)) )
{
this.autoscreenshot = -1;
- if(IS_REAL_CLIENT(this)) { stuffcmd(this, sprintf("\nscreenshot screenshots/autoscreenshot/%s-%s.jpg; echo \"^5A screenshot has been taken at request of the server.\"\n", GetMapname(), strftime(false, "%s"))); }
+ if(IS_REAL_CLIENT(this))
+ {
+ string num = strftime(false, "%s");
+ if (num == "")
+ num = strftime_s();
+ stuffcmd(this, sprintf("\nscreenshot screenshots/autoscreenshot/%s-%s.jpg; "
+ "echo \"^5A screenshot has been taken at request of the server.\"\n", GetMapname(), num));
+ }
return;
}
if(!e.autoscreenshot) // initial call
{
e.autoscreenshot = time + 0.8; // used for autoscreenshot
- SetResourceExplicit(e, RES_HEALTH, -2342);
- // first intermission phase; voting phase has positive health (used to decide whether to send SVC_FINALE or not)
+ SetResourceExplicit(e, RES_HEALTH, -2342); // health in the first intermission phase
for (int slot = 0; slot < MAX_WEAPONSLOTS; ++slot)
{
- .entity weaponentity = weaponentities[slot];
+ .entity weaponentity = weaponentities[slot];
if(e.(weaponentity))
{
e.(weaponentity).effects = EF_NODRAW;