[Ajuda] Ant-flood
#7

Ai Ai , pronto ta ae seu relatorio com Ant Flood
Ajudei ? +REP

Код:
new prelatoadm;
new TempoRelatoAdm;
KillTimer(TempoRelatoAdm);
Код:
     if(strcmp(cmd, "/relato", true) == 0 || strcmp(cmd, "/relatorio", true) == 0)
	 {
	    if(IsPlayerConnected(playerid))
	    {
	        if(gPlayerLogged[playerid] == 0)
	        {
	            SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб logado!");
	            return true;
	        }
	        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: /relatorio [texto]");
				return true;
			}
			if(prelatoadm == 1)
        	{
       			SendClientMessage(playerid,COLOR_GRAD2,"Vocк tem que esperar 10 Segundos para enviar outro relatуrio!");
        		return 1;
        	}
        	if(PlayerInfo[playerid][pJailed] == 2)
    			{
	   				SendClientMessage(playerid,COLOR_YELLOW," Vocк nгo pode mandar relatorio no Carandiru!");
					return true;
    			}


            if(PlayerInfo[playerid][pVIP] == 1)
            {
                new lol;
                lol = PlayerInfo[playerid][pVIP];
                format(string, sizeof(string), "Relatorio VIP de %s - ID[%d]: %s ", sendername, playerid, lol, (result));
				//HelperBroadCast(COLOR_YELLOW,string,1);
				ABroadCast(COLOR_LIGHTBLUE,string,1);
				SendClientMessage(playerid, COLOR_LIGHTBLUE, "Seu relatorios VIP foi enviado aos admins, Aguarde uma resposta..");
				prelatoadm = 1;
				TempoRelatoAdm = SetTimer("RelatoAdm", 10000, 0);

            }
            else if(PlayerInfo[playerid][pVIP] == 2)
            {
                new lol;
                lol = PlayerInfo[playerid][pVIP];
                format(string, sizeof(string), "Relatorio SUPER VIP de %s - ID[%d]: %s ", sendername, playerid, lol, (result));
				//HelperBroadCast(COLOR_YELLOW,string,1);
                ABroadCast(COLOR_LIGHTBLUE,string,1);
				SendClientMessage(playerid, COLOR_LIGHTBLUE, "Seu relatorio S-VIP foi enviado aos admins, Aguarde uma resposta..");
				prelatoadm = 1;
				TempoRelatoAdm = SetTimer("RelatoAdm", 10000, 0);

            }
            else
            {
				format(string, sizeof(string), "Relatorio de %s(%d): %s ", sendername, playerid, (result));
				//HelperBroadCast(COLOR_YELLOW,string,1);
                ABroadCast(COLOR_YELLOW,string,1);
				SendClientMessage(playerid, COLOR_YELLOW, "Seu relatуrio foi enviado aos admins, aguarde uma resposta...");
				prelatoadm = 1;
				TempoRelatoAdm = SetTimer("RelatoAdm", 10000, 0);

			}
		}
	    return true;

	}
Reply


Messages In This Thread
Ant-flood - by Kirikage - 25.10.2012, 20:36
Re: Ant-flood - by Don_Speed - 25.10.2012, 22:03
Re: Ant-flood - by Kirikage - 25.10.2012, 22:17
Respuesta: Ant-flood - by Coreia - 25.10.2012, 22:41
Re: Ant-flood - by Jessica_Azeredo - 25.10.2012, 22:56
Re: Ant-flood - by PSYRocK - 26.10.2012, 00:39
Re: Ant-flood - by matheuspain - 26.10.2012, 02:16
Re: Ant-flood - by zSuYaNw - 26.10.2012, 02:54

Forum Jump:


Users browsing this thread: 3 Guest(s)