[BUG] Roubar Banco / Lotйrica
#5

Pronto, isto deve resolver o seu problema:

pawn Код:
public Robbank(playerid)
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if (!IsPlayerInRangeOfPoint(i, 20, 1389.0435791, -1197.3367919, 202.44537353) || PlayerInfo[i][pMember] == 1
        || PlayerInfo[i][pMember] == 2 || PlayerInfo[i][pMember] == 3 || PlayerInfo[i][pLeader] == 1
        || PlayerInfo[i][pLeader] == 2 || PlayerInfo[i][pLeader] == 3)
        {
            SendClientMessage(i, COLOR_GREY, "A tentativa de roubo nгo foi bem sucedida.");
            KillTimer(Kils);
            robbed = 0;
            return 1;
        }
        else if (IsPlayerInRangeOfPoint(i, 20, 1389.0435791, -1197.3367919, 202.44537353) && PlayerInfo[i][pMember] != 1
        && PlayerInfo[i][pMember] != 2 && PlayerInfo[i][pMember] != 3 && PlayerInfo[i][pLeader] != 1
        && PlayerInfo[i][pLeader] != 2 && PlayerInfo[i][pLeader] != 3)
        {
            robmoney[playerid] = random(20000);
            new string[58];
            format(string, 58, "Vocк roubou R$%d do cofre!", robmoney[playerid]);
            SendClientMessage(i, COLOR_PURPLE, string); //aqui teria a MODIFICAЗГO!
            KillTimer(Kils);
            GivePlayerGP(i, robmoney[playerid]);
            robbed = 0;
        }
        return 1;
    }
    return 1;
}


public Robbank2(playerid)
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if (!IsPlayerInRangeOfPoint(i, 30, 821.39141845, 9.4306592941, 1004.1950683) || PlayerInfo[i][pMember] == 1
        || PlayerInfo[i][pMember] == 2 || PlayerInfo[i][pMember] == 3 || PlayerInfo[i][pLeader] == 1
        || PlayerInfo[i][pLeader] == 2 || PlayerInfo[i][pLeader] == 3)
        {
            SendClientMessage(i, COLOR_GREY, "A tentativa de roubo nгo foi bem sucedida.");
            KillTimer(Kils);
            robbed2 = 0;
            return 1;
        }
        else if (IsPlayerInRangeOfPoint(i, 30, 821.39141845, 9.4306592941, 1004.1950683) && PlayerInfo[i][pMember] != 1
        && PlayerInfo[i][pMember] != 2 && PlayerInfo[i][pMember] != 3 && PlayerInfo[i][pLeader] != 1
        && PlayerInfo[i][pLeader] != 2 && PlayerInfo[i][pLeader] != 3)
        {
            robmoney[playerid] = random(30000);
            new string[58];
            format(string, 58, "Vocк roubou R$%d do cofre!", robmoney[playerid]);
            SendClientMessage(i, COLOR_PURPLE, string); //aqui teria a MODIFICAЗГO!
            KillTimer(Kils);
            GivePlayerGP(i, robmoney[playerid]);
        }
        return 1;
    }
    return 1;
}

Espero ter ajudado
Reply


Messages In This Thread
[BUG] Roubar Banco / Lotйrica - by Coco-Marrom - 17.12.2010, 11:55
Re: [BUG] Roubar Banco / Lotйrica - by Coco-Marrom - 17.12.2010, 13:56
Re: [BUG] Roubar Banco / Lotйrica - by rjjj - 17.12.2010, 14:25
Re: [BUG] Roubar Banco / Lotйrica - by Coco-Marrom - 17.12.2010, 14:31
Re: [BUG] Roubar Banco / Lotйrica - by rjjj - 17.12.2010, 19:04
Re: [BUG] Roubar Banco / Lotйrica - by Coco-Marrom - 17.12.2010, 19:41

Forum Jump:


Users browsing this thread: 1 Guest(s)