05.09.2010, 23:29
Hi, I am trying to make a countdown of 30 seconds, when 0 is reached, that area is yours.
What I need is how to make that countdown, I tryed with GetTickCount but nothing, it just says "65545121" (Example).
Here is part of the script.
Thanks!
What I need is how to make that countdown, I tryed with GetTickCount but nothing, it just says "65545121" (Example).
Here is part of the script.
pawn Код:
EnteredArea10[i] = 1; // He has entered
SendClientMessage(i,COLOR_CON_GREEN, "Quedate aca 30 segundos para capturar esta area!");
T10[i] = SetTimer("TakeOver",30000,0);
SendClientMessageToAll(COLOR_CON_GREEN, "La ciudad antigua estб siendo capturada!");
TextDrawShowForPlayer(i, trpc);
T10[i] = GetTickCount();
new strtrpc[64];
format(strtrpc, 64, "Tiempo restante para capturar: %d segundos", T10[i]);
TextDrawSetString(trpc, strtrpc);