15.11.2013, 14:28
Hello guys, i need one little help in zombie apocalypse the time is running to slowly like 250(after 8 seconds)245(again after 8 seconds) 240...
help me to make this as like this 250(after 1seconds) 249(again after 1 second)248.....
here what i found in gammeode:
---------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------
help me to make this as like this 250(after 1seconds) 249(again after 1 second)248.....
here what i found in gammeode:
Код:
function OnMapUpdate()
{
time -= 1;
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;
}
Код:
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;
}
Код:
TimeLeft = TextDrawCreate(22.000000, 251.000000, "250"); TextDrawBackgroundColor(TimeLeft, 255); TextDrawFont(TimeLeft, 3); TextDrawLetterSize(TimeLeft, 1.770000, 3.499999); TextDrawColor(TimeLeft, 16777215); TextDrawSetOutline(TimeLeft, 0); TextDrawSetProportional(TimeLeft, 1); TextDrawSetShadow(TimeLeft, 1);


