#Nurik
Умник
Добавляем ко всем new
PHP:
new Text:Clock;
PHP:
forward boom(playerid);
PHP:
Clock = TextDrawCreate(547.000000,29.000000, "~y~00~b~:~y~00");
TextDrawLetterSize(Clock,0.5,1.5);
TextDrawFont(Clock,3);
TextDrawColor(Clock,0xffffffff);
TextDrawSetOutline(Clock,1);
SetTimer("boom", 10000, 1);
PHP:
TextDrawShowForPlayer(playerid,Clock)
PHP:
public boom()
{
// clock
new hour,minute,second;
gettime(hour,minute,second);
new string[256];
format(string, sizeof(string), "~y~%02d~b~:~y~%02d", hour, minute);
SetWorldTime( hour );
for(new i=0;i<MAX_PLAYERS;i++)
{
TextDrawSetString(Clock,string);
TextDrawShowForPlayer(i,Clock);
}
return 1;
}
