[ajuda] contar
#1

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
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=281966
Reply
#3

nгo funcionou da 10 erros
Reply
#4

Me ajuda pra eu poder ajudar.

Manda os erros.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)