- Регистрация
- 16 Ноя 2010
- Сообщения
- 86
- Лучшие ответы
- 0
- Репутация
- 17
В начало:
В OnPlayerCommandText:
В конец мода:
PHP:
new Count = 5;
PHP:
if(!strcmp(cmdtext,"/start",true)) return CountDown();
PHP:
forward CountDown();
public CountDown()
{
if (Count > 0)
{
new string[128];
format(string,sizeof(string),"~r~%d",Count);
GameTextForAll(string,2500,3);
Count--;
SetTimer("CountDown",1000,0);
}
else
{
Count = 5;
GameTextForAll("~g~Start!",2500,3);
}
return 1;
}