toto neni moje! je s pawnoboxu ne ze si budete myslet ze som kopirak....on newi hladat tak som mu pomohol xP
hore
new Count = 5;
new CountText[5][5] ={
"~r~1",
"~y~2",
"~g~3",
"~o~4",
"~b~5"
};
a
forward CountDown();
OnPlayerCommandText
if (strcmp(cmdtext, "/Start", true)==0)
{
if(Count >= 5)
{
SendClientMessageToAll(COLOR_GREEN, "Odpocet zacal...");
CountDown();
return 1;
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "Start je uz spusten");
return 1;
}
}
kam stes
public CountDown(){
if (Count > 0){
GameTextForAll( CountText[Count-1], 2500, 3);
Count--;
SetTimer("CountDown", 1000, 0);
}
else{
GameTextForAll("~g~[!]START[!]", 2500, 3);
Count = 5;
}
return 1;}