[Ajuda] Comando /contar
#8

Quote:
Originally Posted by [Full]Garfield[XDB]
Посмотреть сообщение
pawn Код:
#include a_samp

new segundos = 0;

// COMANDO
    if(!strcmp(cmdtext,"/contar", true, 6))
    {
        if(!strlen(cmdtext[8]))
            return SendClientMessage(playerid, -1, "/Contar <segundos>");

        segundos = strval(cmdtext[8]);
        IniciarContagem();
        return true;
    }
   
   
//final do gamemode
IniciarContagem(); public IniciarContagem()
{
    if(segundos == 0)
    {
        GameTextForAll("Go Go Go", 2500, 3);
        return false;
    }
    new str[5]; valstr(str, segundos);
    GameTextForAll(str, 2500, 3);
    SetTimer("IniciarContagem", 1000, false);
    return segundos --;
}
DUVIDA: Da para todos do sv verem a contagem?
Reply


Messages In This Thread
[Ajuda] Comando /contar - by Micael.Nees - 04.05.2012, 19:03
Re: [Ajuda] Comando /contar - by ViniBorn - 04.05.2012, 19:08
Re: [Ajuda] Comando /contar - by Micael.Nees - 04.05.2012, 20:09
Re: [Ajuda] Comando /contar - by zSuYaNw - 04.05.2012, 20:21
Re: [Ajuda] Comando /contar - by steeldark - 04.05.2012, 20:27
Re: [Ajuda] Comando /contar - by zSuYaNw - 04.05.2012, 20:28
Re: [Ajuda] Comando /contar - by steeldark - 04.05.2012, 20:29
Re: [Ajuda] Comando /contar - by Micael.Nees - 04.05.2012, 20:33

Forum Jump:


Users browsing this thread: 1 Guest(s)