07.02.2009, 13:57
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp("/testtimer", cmdtext, true))
{
lol = SetTimer("time",1000,1);
return 1;
}
if (!strcmp("/stopcd", cmdtext, true))
{
KillTimer(lol);
new string[128];
format(string,sizeof(string),"SERVER: Timer stopped at %d seconds", abc);
SendClientMessageToAll(0x33AA33AA,string);
abc=0;
return 1;
}
return 0;
}
