11.11.2013, 09:36
(
Последний раз редактировалось Tagathron; 11.11.2013 в 10:10.
)
Make a timer which decreases a variable.
pawn Код:
new iNumber;
iNumber=20;//Set it to 20,so it will start from there
forward Countdown();
public Countdown()
{
new msgString[128];//Number and the message to send
iNumber--;
format(msgString, sizeof(msgString), "You have to stay %d seconds.", iNumber);
SendClientMessage(playerid, COLOR YOU WANT HERE ,msgString);
}
SetTimer("Countdown", 1000, true);//Will decrease iNumber by 1 every 1 second,and send the message