SendClientMessage Seconds
#2

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
Reply


Messages In This Thread
SendClientMessage Seconds - by AnonScripter - 11.11.2013, 09:30
Re: SendClientMessage Seconds - by Tagathron - 11.11.2013, 09:36
Re: SendClientMessage Seconds - by AnonScripter - 11.11.2013, 09:46
Re: SendClientMessage Seconds - by Tagathron - 11.11.2013, 09:55
Re: SendClientMessage Seconds - by -=Dar[K]Lord=- - 11.11.2013, 09:57
Re: SendClientMessage Seconds - by SAMProductions - 11.11.2013, 10:02
Re: SendClientMessage Seconds - by -=Dar[K]Lord=- - 11.11.2013, 10:06

Forum Jump:


Users browsing this thread: 2 Guest(s)