07.02.2009, 13:07
Код:
#include <a_samp>
new abc = 0;
new lol;
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp("/testtimer", cmdtext, true))
{
lol = SetTimer("time",1000,1);
return 1;
}
return 0;
}
forward time();
public time(){
abc++;
if(abc == 11){
SendClientMessageToAll(0x33AA33AA,"IT'S WORKING!!!");
KillTimer(lol);
abc = 0;
}else{
new str[128];
format(str, sizeof(str), "%d...", abc);
SendClientMessageToAll(0x33AA33AA, str);
}
}
