Quote:
Originally Posted by xTURBOx
PHP код:
new CountDownTime;
new CountDownTimer;
new Text:TextDraw1;
stock CreateTimerText()
{
Textdraw1 = TextDrawCreate(537.000000, 327.000000, "05:10");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 3);
TextDrawLetterSize(Textdraw1, 0.330000, 1.200000);
TextDrawColor(Textdraw1, -554567169);
TextDrawSetOutline(Textdraw1, 1);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetSelectable(Textdraw1, 0);
CountDownTime = 5 * 60 + 10;
CountDownTimer = SetTimer("counttimer",1000,true);
}
forward counttimer();
public counttimer()
{
if(CountDownTime <= 0)
{
CountDownTime = -1;
//TextDrawSetString(TextDraw1, "Mission Failed");
KillTimer(CountDownTimer);
}
else
{
CountDownTime--;
new msg[15];
format(msg, sizeof(msg), "%i:%i", CountDownTime/60, CountDownTime%60);
TextDrawSetString(TextDraw1, msg);
}
return 1;
}
|
need it showing textdraw + timer count down here
PHP код:
if(EnterAllShips[playerid] == 9)
{
trying = CreateDynamicRaceCP(0, -2392.9497,2312.1875,-0.1095, -2392.9497,2312.1875,-0.1095, 5.0, -1, -1, playerid, 2000.0);
GameTextForPlayer(playerid, "~r~Goto Red Checkpoints To Finish This Shitt!", 5000, 3);
}
return 1;
}
thanks +rep for u