12.11.2013, 16:51
Ok HEre you go,
this code if found as " TimeLeft " i need to make it faster..
Code:
function OnMapUpdate() { time -= 8; new str[64]; format(str,sizeof(str),"%d",time); TextDrawSetString(TimeLeft,str); if(time <= 0) TextDrawSetString(TimeLeft," ..."),KillTimer(mapvar),KillTimer(balvar),SetTimer("ShowCheckpoint",MAX_SHOW_CP_TIME,false); return 1; }
Code:
function OnMapBalance() { if(playerOnline >= 2) { if(GetTeamPlayersAlive(TEAM_HUMAN) == 0) { KillTimer(balvar); KillTimer(mapvar); TextDrawSetString(TimeLeft,"~r~Zombies win"); SetTimer("EndMap",4000,false); // Cannot use MAX_END_TIME Because of MAX_END_TIME is set to 1 minute not 4 seconds *NOTE TO ME* foreach(Player,i) { if(team[i] == TEAM_ZOMBIE) { pInfo[i][pXP] += 30; GivePlayerXP(i,30); } } } } return 1; }
Code:
TimeLeft = TextDrawCreate(22.000000, 251.000000, "240"); TextDrawBackgroundColor(TimeLeft,0x00ff0066); TextDrawLetterSize(TimeLeft,1.000000,3.300000); TextDrawFont(TimeLeft,3);