i need help ( ZOmbie Apocalypse Script)
#4

Ok HEre you go,
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);
this code if found as " TimeLeft " i need to make it faster..
Reply


Messages In This Thread
i need help ( ZOmbie Apocalypse Script) - by ReD_HunTeR - 12.11.2013, 15:04
Re: i need help ( ZOmbie Apocalypse Script) - by Nourdin - 12.11.2013, 15:09
Re: i need help ( ZOmbie Apocalypse Script) - by ReD_HunTeR - 12.11.2013, 15:51
Re: i need help ( ZOmbie Apocalypse Script) - by ReD_HunTeR - 12.11.2013, 16:51

Forum Jump:


Users browsing this thread: 1 Guest(s)