[Ajuda] setimer
#5

pawn Код:
if(strcmp(cmd, "/relato", true) == 0 || strcmp(cmd, "/rel", true) == 0)
    {
        if(esperando[playerid] == false)
        {
            GetPlayerName(playerid, sendername, sizeof(sendername));
            new length = strlen(cmdtext);
            while ((idx < length) && (cmdtext[idx] <= ' '))
            {
                idx++;
            }
            new offset = idx;
            new result[64];
            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
            {
                result[idx - offset] = cmdtext[idx];
                idx++;
            }
            result[idx - offset] = EOS;
            if(!strlen(result))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /relato [texto]");
                return 1;
            }
            format(string, sizeof(string), "Relatorio de %s[%d]: %s", sendername,playerid, (result));
            ABroadCast(COLOR_ASKQ,string,1);
            SendClientMessage(playerid, COLOR_ASKQ, "Seu relatуrio foi enviado aos Admins.");
            esperando[playerid] = true;
            SetTimerEx("Tempo",5000,false,"i",playerid);
            return 1;
        }
        SendClientMessage(playerid,-1,"Vocк precisa esperar 5 segundos para mandar outro /relatorio");
        return 1;
    }
Reply


Messages In This Thread
[Ajuda] setimer - by ceesar90 - 11.10.2011, 03:38
Re: Dъvida besta sobre setimer - by [BWL]DuST - 11.10.2011, 03:41
Re: Dъvida besta sobre setimer - by WLSF - 11.10.2011, 03:44
Re: Dъvida besta sobre setimer - by ceesar90 - 11.10.2011, 16:00
Re: [Ajuda] setimer - by [O.z]Caroline - 11.10.2011, 16:06
Re: [Ajuda] setimer - by Pharrel - 11.10.2011, 16:09
Re: [Ajuda] setimer - by ceesar90 - 11.10.2011, 16:22
Re: [Ajuda] setimer - by Pharrel - 11.10.2011, 16:25
Re: [Ajuda] setimer - by ceesar90 - 11.10.2011, 17:32
Re: [Ajuda] setimer - by [O.z]Caroline - 11.10.2011, 18:01

Forum Jump:


Users browsing this thread: 1 Guest(s)