22.04.2012, 17:29
topo:
Topo tambem:
Em qualquer lugar do gm menos em outra public.
Comando:
ZCMD
pawn Код:
forward CountDown();
pawn Код:
new Count = 5;
new CountText[5][5] ={
"1",
"2",
"3",
"4",
"5"
};
Em qualquer lugar do gm menos em outra public.
pawn Код:
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;
}
pawn Код:
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;
}
}
pawn Код:
CMD:contar(playerid)
{
if(Count >= 5)
{
SendClientMessageToAll(0xFFFF00AA, "Contagem Iniciada!!");
CountDown();
return 1;}
else{
SendClientMessage(playerid, 0xFFFF00AA, "Contagen ja foi iniciada");
return 1;
}
}