[Ajuda] Gangzone por Бrea
#8

Estб dessa forma mas nada acontece...
Код:
forward VerificarGZ();
public VerificarGZ()
{

    for(new i; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerInArea(i, 2071.699, -2175.33, 2790.435, -1760.817))
            {
                if(Player[i][MotoClube] == 1 && !Player[i][NaGZ][1])
                {
                    GZ[0][Cont]++;

                    if(GZ[0][Cont] >= 1)
                    {
                    	if(IsPlayerConnected(i) && Player[i][Gangs] == 1)
				        {
				            new Str[128];
				            format(Str, 128, "{00A180}[SERVER]:{ffffff} Cuidado %i membros dos Sons of Anarchy em Oakland.", GZ[0][Cont]);
				            SendClientMessage(i, -1, Str);
				        }
                    }
                }
                if(Player[i][MotoClube] == 2 && !Player[i][NaGZ][1])
                {
                    GZ[1][Cont]++;
                    Player[i][NaGZ][1] = true;

                    if(GZ[1][Cont] >= 1)
                    {
                    	if(IsPlayerConnected(i) && Player[i][Gangs] == 1)
				        {
				            new Str[128];
				            format(Str, 128, "{00A180}[SERVER]:{ffffff} Cuidado %i membros dos Mayans em Oakland.", GZ[1][Cont]);
				            SendClientMessage(i, -1, Str);
				        }
                    }
                }
                else
                {
                    GZ[0][Cont]--;
                    GZ[1][Cont]--;
                    Player[i][NaGZ][0] = Player[i][NaGZ][1] = false;
                }
            }
            if(IsPlayerInArea(i, 683.6639, -1397.625, 1360.569, -943.6342))
            {
                if(Player[i][Gangs] == 1 && !Player[i][NaGZ][2])
                {
                    GZ[2][Cont]++;
                    Player[i][NaGZ][2] = true;

					if(GZ[2][Cont] >= 1)
                    {
                    	if(IsPlayerConnected(i) && Player[i][MotoClube] == 1)
				        {
				            new Str[128];
				            format(Str, 128, "{00A180}[SERVER]:{ffffff} Cuidado %i membros dos Niners em Charming.", GZ[2][Cont]);
				            SendClientMessage(i, -1, Str);
				        }
                    }
                }
                if(Player[i][MotoClube] == 2 && !Player[i][NaGZ][3])
                {
                    GZ[3][Cont]++;
                    Player[i][NaGZ][3] = true;

					if(GZ[3][Cont] >= 1)
                    {
                    	if(IsPlayerConnected(i) && Player[i][MotoClube] == 1)
				        {
				            new Str[128];
				            format(Str, 128, "{00A180}[SERVER]:{ffffff} Cuidado %i membros dos Mayans em Charming.", GZ[3][Cont]);
				            SendClientMessage(i, -1, Str);
				        }
                    }
                }
                else
                {
                    GZ[2][Cont]--;
                    GZ[3][Cont]--;
                    Player[i][NaGZ][2] = false;
                    Player[i][NaGZ][3] = false;
                }
            }
        }
    }
}
Reply


Messages In This Thread
Gangzone por Бrea - by Caiton - 27.12.2015, 02:24
Re: Gangzone por Бrea - by EditPawn - 27.12.2015, 02:53
Re: Gangzone por Бrea - by Caiton - 27.12.2015, 16:58
Re: Gangzone por Бrea - by EditPawn - 27.12.2015, 22:38
Re: Gangzone por Бrea - by Caiton - 28.12.2015, 00:36
Re: Gangzone por Бrea - by EditPawn - 28.12.2015, 01:38
Re: Gangzone por Бrea - by Caiton - 28.12.2015, 03:04
Re: Gangzone por Бrea - by Caiton - 29.12.2015, 18:06
Re: Gangzone por Бrea - by Caiton - 09.06.2017, 18:35
Re: Gangzone por Бrea - by RodrigoMSR - 09.06.2017, 21:09

Forum Jump:


Users browsing this thread: 1 Guest(s)