22.04.2012, 07:18
olб malta,eu queriavos pedir,ou a base de um cmd do /contar e apareзia akela contagem normal,ja tentei fazer mas nao deu certo,o cmd nunca funcionava :S
forward CountDown();
new Count = 5;
new CountText[5][5] ={
"1",
"2",
"3",
"4",
"5"
};
public CountDown(){
if (Count > 0){
GameTextForAll( CountText[Count-1], 2500, 3);
Count--;
SetTimer("CountDown", 1000, 0);
}
else{
GameTextForAll("Lets Go", 2500, 3);
Count = 5;
}
return 1;
}
if (strcmp(cmdtext, "/contar", true)==0)
{
if(Count >= 5)
{
SendClientMessageToAll(0xFFFF00AA, "Contagem Iniciada!!");
CountDown();
return 1;}
else{
SendClientMessage(playerid, 0xFFFF00AA, "Contagen ja foi iniciada");
return 1;
}
}
CMD:contar(playerid)
{
if(Count >= 5)
{
SendClientMessageToAll(0xFFFF00AA, "Contagem Iniciada!!");
CountDown();
return 1;}
else{
SendClientMessage(playerid, 0xFFFF00AA, "Contagen ja foi iniciada");
return 1;
}
}