[Ajuda] Suspeito Morto
#1

Olб, o problema й o seguinte quando um Cop mata um procurado ele ganha um bonus em dinheiro mas gostaria que esse bуnus fosse para todos membro da ORG dele Online.

pawn Код:
if(WantedPoints[playerid] >= 1)
    {
        //if(gTeam[killerid] == 2 && CrimInRange(30.0, playerid,killerid))
        //{
            new price = WantedPoints[playerid] * 100;
            if(PlayerInfo[killerid][pMembro] == 1 || PlayerInfo[killerid][pLider] == 1)
            {
                format(gstring, sizeof(gstring), "~w~Suspeito ~r~Morto~n~Bonus~g~R$%d", price);
                GameTextForPlayer(killerid, gstring, 5000, 1);
                ConsumingMoney[killerid] = 1;
                GivePlayerMoney(killerid, price / 2);
                PlayerPlaySound(killerid, 1058, 0.0, 0.0, 0.0);
                GivePlayerMoney(playerid, - price);
                PlayerInfo[playerid][pJailed] = 1;
                PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
                format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos na Policia Militar, e perdeu R$%d por trocar tiros e fugir dos policiais.", PlayerInfo[playerid][pJailTime], price);
                SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
                WantedPoints[playerid] = 0;
                SetPlayerWantedLevel(playerid, 0);
                PlayerInfo[playerid][pDrogas] = 0;
                PlayerInfo[playerid][pDrogas2] = 0;
                PlayerInfo[playerid][pDrogas3] = 0;
                PlayerInfo[playerid][pMats] = 0;
            }
            if(PlayerInfo[killerid][pMembro] == 2 || PlayerInfo[killerid][pLider] == 2)
            {
                format(gstring, sizeof(gstring), "~w~Suspeito ~r~Morto~n~Bonus~g~R$%d", price);
                GameTextForPlayer(killerid, gstring, 5000, 1);
                ConsumingMoney[killerid] = 1;
                GivePlayerMoney(killerid, price / 2);
                PlayerPlaySound(killerid, 1058, 0.0, 0.0, 0.0);
                GivePlayerMoney(playerid, - price);
                PlayerInfo[playerid][pJailed] = 3;
                PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(180);
                format(gstring, sizeof(gstring), "* Vocк estб preso por %d Segundos na HQ B.O.P.E, e perdeu R$%d por trocar tiros e fugir dos policiais.", PlayerInfo[playerid][pJailTime], price);
                SendClientMessage(playerid, COLOR_LIGHTRED, gstring);
                WantedPoints[playerid] = 0;
                SetPlayerWantedLevel(playerid, 0);
                PlayerInfo[playerid][pDrogas] = 0;
                PlayerInfo[playerid][pDrogas2] = 0;
                PlayerInfo[playerid][pDrogas3] = 0;
                PlayerInfo[playerid][pMats] = 0;
            }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)