[ajuda] contar
#5

topo:
pawn Код:
forward CountDown();
Topo tambem:
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;
}
Comando:
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;
}
}
ZCMD
pawn Код:
CMD:contar(playerid)
{
if(Count >= 5)
{
SendClientMessageToAll(0xFFFF00AA, "Contagem Iniciada!!");
CountDown();
return 1;}
else{
SendClientMessage(playerid, 0xFFFF00AA, "Contagen ja foi iniciada");
return 1;
}
}
Reply


Messages In This Thread
[ajuda] contar - by caoraivoso3 - 22.04.2012, 07:18
Re: [ajuda] contar - by WagnerPM - 22.04.2012, 07:27
Re: [ajuda] contar - by caoraivoso3 - 22.04.2012, 09:27
Re: [ajuda] contar - by WagnerPM - 22.04.2012, 15:39
Re: [ajuda] contar - by BreakDriFT - 22.04.2012, 17:29

Forum Jump:


Users browsing this thread: 2 Guest(s)