[Ajuda] GZ
#4

pawn Код:
public GranaTerritorios()
{
    new string[256];
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        // Morro
        if(PlayerInfo[i][pLider] == 15 && donomorro == 1) // GROOVE
        {
            if(IsPlayerInMorro(i))
            {
            GivePlayerMoneyEx(i, GranadoMorro);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoMorro);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pMembro] == 15 && donomorro == 1) // GROOVE
        {
            if(IsPlayerInMorro(i))
            {
            GivePlayerMoneyEx(i, GranadoMorro);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoMorro);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pLider] == 18 && donomorro == 2) // BALLAS
        {
            if(IsPlayerInMorro(i))
            {
            GivePlayerMoneyEx(i, GranadoMorro);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoMorro);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pMembro] == 18 && donomorro == 2) // BALLAS
        {
            if(IsPlayerInMorro(i))
            {
            GivePlayerMoneyEx(i, GranadoMorro);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoMorro);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pLider] == 19 && donomorro == 3) // VAGOS
        {
            if(IsPlayerInMorro(i))
            {
            GivePlayerMoneyEx(i, GranadoMorro);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoMorro);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pMembro] == 19 && donomorro == 3) // VAGOS
        {
            if(IsPlayerInMorro(i))
            {
            GivePlayerMoneyEx(i, GranadoMorro);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoMorro);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pLider] == 23 && donomorro == 7) // GMOB
        {
            if(IsPlayerInMorro(i))
            {
            GivePlayerMoneyEx(i, GranadoMorro);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoMorro);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pMembro] == 23 && donomorro == 7) // GMOB
        {
            if(IsPlayerInMorro(i))
            {
            GivePlayerMoneyEx(i, GranadoMorro);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoMorro);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pLider] == 5 && donomorro == 4) // AZTECAS
        {
            if(IsPlayerInMorro(i))
            {
            GivePlayerMoneyEx(i, GranadoMorro);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoMorro);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pMembro] == 5 && donomorro == 4) // AZTECAS
        {
            if(IsPlayerInMorro(i))
            {
            GivePlayerMoneyEx(i, GranadoMorro);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoMorro);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        //----- Shop
        if(PlayerInfo[i][pLider] == 15 && donoshop == 1) // GROOVE
        {
            if(IsPlayerInShop(i))
            {
            GivePlayerMoneyEx(i, GranadoShop);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoShop);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pMembro] == 15 && donoshop == 1) // GROOVE
        {
            if(IsPlayerInShop(i))
            {
            GivePlayerMoneyEx(i, GranadoShop);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoShop);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pLider] == 18 && donoshop == 2) // BALLAS
        {
            if(IsPlayerInShop(i))
            {
            GivePlayerMoneyEx(i, GranadoShop);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoShop);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pMembro] == 18 && donoshop == 2) // BALLAS
        {
            if(IsPlayerInShop(i))
            {
            GivePlayerMoneyEx(i, GranadoShop);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoShop);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pLider] == 19 && donoshop == 3) // VAGOS
        {
            if(IsPlayerInShop(i))
            {
            GivePlayerMoneyEx(i, GranadoShop);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoShop);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pMembro] == 19 && donoshop == 3) // VAGOS
        {
            if(IsPlayerInShop(i))
            {
            GivePlayerMoneyEx(i, GranadoShop);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoShop);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pLider] == 23 && donoshop == 7) // GMOB
        {
            if(IsPlayerInShop(i))
            {
            GivePlayerMoneyEx(i, GranadoShop);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoShop);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pMembro] == 23 && donoshop == 7) // GMOB
        {
            if(IsPlayerInShop(i))
            {
            GivePlayerMoneyEx(i, GranadoShop);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoShop);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pLider] == 5 && donoshop == 4) // AZTECAS
        {
            if(IsPlayerInShop(i))
            {
            GivePlayerMoneyEx(i, GranadoShop);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoShop);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pMembro] == 5 && donoshop == 4) // AZTECAS
        {
            if(IsPlayerInShop(i))
            {
            GivePlayerMoneyEx(i, GranadoShop);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoShop);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        //---- Pista de Skate
        if(PlayerInfo[i][pLider] == 15 && donoskate == 1) // GROOVE
        {
            if(IsPlayerInSkate(i))
            {
            GivePlayerMoneyEx(i, GranadoSkate);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoSkate);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pMembro] == 15 && donoskate == 1) // GROOVE
        {
            if(IsPlayerInSkate(i))
            {
            GivePlayerMoneyEx(i, GranadoSkate);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoSkate);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pLider] == 18 && donoskate == 2) // BALLAS
        {
            if(IsPlayerInSkate(i))
            {
            GivePlayerMoneyEx(i, GranadoSkate);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoSkate);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pMembro] == 18 && donoskate == 2) // BALLAS
        {
            if(IsPlayerInSkate(i))
            {
            GivePlayerMoneyEx(i, GranadoSkate);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoSkate);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pLider] == 19 && donoskate == 3) // VAGOS
        {
            if(IsPlayerInSkate(i))
            {
            GivePlayerMoneyEx(i, GranadoSkate);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoSkate);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pMembro] == 19 && donoskate == 3) // VAGOS
        {
            if(IsPlayerInSkate(i))
            {
            GivePlayerMoneyEx(i, GranadoSkate);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoSkate);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pLider] == 23 && donoskate == 7) // GMOB
        {
            if(IsPlayerInSkate(i))
            {
            GivePlayerMoneyEx(i, GranadoSkate);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoSkate);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pMembro] == 23 && donoskate == 7) // GMOB
        {
            if(IsPlayerInSkate(i))
            {
            GivePlayerMoneyEx(i, GranadoSkate);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoSkate);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pLider] == 5 && donoskate == 4) // AZTECAS
        {
            if(IsPlayerInSkate(i))
            {
            GivePlayerMoneyEx(i, GranadoSkate);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoSkate);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pMembro] == 5 && donoskate == 4) // AZTECAS
        {
            if(IsPlayerInSkate(i))
            {
            GivePlayerMoneyEx(i, GranadoSkate);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoSkate);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        // AeroPorto
        if(PlayerInfo[i][pLider] == 15 && donoaero == 1) // GROOVE
        {
            if(IsPlayerInAero(i))
            {
            GivePlayerMoneyEx(i, GranadoAero);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoAero);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pMembro] == 15 && donoaero == 1) // GROOVE
        {
            if(IsPlayerInAero(i))
            {
            GivePlayerMoneyEx(i, GranadoAero);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoAero);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pLider] == 18 && donoaero == 2) // BALLAS
        {
            if(IsPlayerInAero(i))
            {
            GivePlayerMoneyEx(i, GranadoAero);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoAero);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pMembro] == 18 && donoaero == 2) // BALLAS
        {
            if(IsPlayerInAero(i))
            {
            GivePlayerMoneyEx(i, GranadoAero);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoAero);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pLider] == 19 && donoaero == 3) // VAGOS
        {
            if(IsPlayerInAero(i))
            {
            GivePlayerMoneyEx(i, GranadoAero);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoAero);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pMembro] == 19 && donoaero == 3) // VAGOS
        {
            if(IsPlayerInAero(i))
            {
            GivePlayerMoneyEx(i, GranadoAero);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoAero);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pLider] == 23 && donoaero == 7) // GMOB
        {
            if(IsPlayerInAero(i))
            {
            GivePlayerMoneyEx(i, GranadoAero);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoAero);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pMembro] == 23 && donoaero == 7) // GMOB
        {
            if(IsPlayerInAero(i))
            {
            GivePlayerMoneyEx(i, GranadoAero);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoAero);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pLider] == 5 && donoaero == 4) // AZTECAS
        {
            if(IsPlayerInAero(i))
            {
            GivePlayerMoneyEx(i, GranadoAero);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoAero);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
        if(PlayerInfo[i][pMembro] == 5 && donoaero == 4) // AZTECAS
        {
            if(IsPlayerInAero(i))
            {
            GivePlayerMoneyEx(i, GranadoAero);
            format(string, sizeof(string), "Vocк recebeu R$%d, Por manter esta area sobre controle.",GranadoAero);
            SendClientMessage(i, COLOR_GRAD3, string);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
[Ajuda] GZ - by Don_Speed - 17.10.2011, 15:50
Re: Ajuda GZ - by Pharrel - 17.10.2011, 15:51
Re: Ajuda GZ - by hitachi_uchila - 17.10.2011, 15:55
Re: Ajuda GZ - by Don_Speed - 17.10.2011, 15:58
Re: Ajuda GZ - by hitachi_uchila - 17.10.2011, 16:09
Re: Ajuda GZ - by Don_Speed - 17.10.2011, 16:11
Re: Ajuda GZ - by Don_Speed - 17.10.2011, 16:18
Re: Ajuda GZ - by hitachi_uchila - 17.10.2011, 16:20
Re: Ajuda GZ - by Don_Speed - 17.10.2011, 16:33
Re: Ajuda GZ - by hitachi_uchila - 17.10.2011, 16:35

Forum Jump:


Users browsing this thread: 1 Guest(s)