View Single Post
retsam
Veteran Member
Join Date: Aug 2008
Location: so-cal
Old 10-31-2010 , 22:19   Re: [TF2] Halloween Gift Timer
Reply With Quote #8

Couple things I changed in mine:

I added a mapcheck just so the timer isnt run if its not manor.

Code:
public OnMapStart()
{
    decl String:sMapname[128];
    GetCurrentMap(sMapname, sizeof(sMapname));
    //LogAction(0, -1, "Current Map Detected as: %s", sMapname);
    if(strcmp(sMapname, "cp_manor_event") == 0)
    {
    CreateTimer(1.0, ShowTimer, _, TIMER_REPEAT|TIMER_FLAG_NO_MAPCHANGE);
  }
}
I also took off the alive check in the callback so dead players can also see the present timer. I dont think theres a reason to prevent dead players from seeing the timer is there? I didnt think so.
__________________
retsam is offline