Can you guys help me add a timer
#6

just a thought and a rough guide:

Код:
new robtime;

/robvictim
robtime = 10;
SetTimer("countdown", 1000, 10);


forward countdown();
public countdown(){
if(robtime == 0){
SendClientMessage(playerid, COLOR, "Robbery complete");
}
else{
format(string, sizeof(string), "%d", robtime);
SendClientMessage(playerid, COLOR, string);
return robtime--;
}
return 1;
}
fit it in as and where necessary but hopefully that should sent 10 messages
Reply


Messages In This Thread
Can you guys help me add a timer - by ruckfules99 - 10.02.2010, 19:59
Re: Can you guys help me add a timer - by ruckfules99 - 11.02.2010, 00:41
Re: Can you guys help me add a timer - by Onyx09 - 11.02.2010, 00:56
Re: Can you guys help me add a timer - by ruckfules99 - 11.02.2010, 00:58
Re: Can you guys help me add a timer - by ruckfules99 - 11.02.2010, 19:56
Re: Can you guys help me add a timer - by adsy - 11.02.2010, 20:48
Re: Can you guys help me add a timer - by ruckfules99 - 12.02.2010, 19:36
Re: Can you guys help me add a timer - by MadeMan - 12.02.2010, 20:11
Re: Can you guys help me add a timer - by ruckfules99 - 12.02.2010, 20:23
Re: Can you guys help me add a timer - by MadeMan - 12.02.2010, 20:29

Forum Jump:


Users browsing this thread: 7 Guest(s)