[ajuda] object + payday + Problema
#1

Bom gente, queria saber como faco para apaga uns object no samp, tipo pq tem uns object que atrapalha fazer algo, ai eu queria saber como faco :X

Payday:
Como faco para que vip ganha 2 respeito a cada pd ?
e faco que ganhe 5% de bonus vip? = Caso ele esteja em divida os 5% serб formado para diminui o valor?

pawn Код:
public PayDay()
{
    new string[128];
    new account,interest;
    for(new i = 0; i <= HighestID; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(Player[i][pLevel] > 0 && Player[i][pLogedTime] >= 840)
            {
                if(MoneyMessage[i]==1 && Player[i][pJailTime]==0)
                {
                    SendClientMessage(i, COLOR_RED, "Vocк devia ter debitado suas dнvidas, lhe enviaram um pedido de prisгo.");
                    GameTextForPlayer(i, "~r~apreendido !", 2000, 1);
                    SetPlayerInterior(i, 6);
                    SafeSetPlayerPos(i, 264.6288,77.5742,1001.0391);
                    Player[i][pJailed] = 1;
                    ResetPlayerWeapons(i);
                    WantedPoints[i] = 0;
                    Player[i][pJailTime] = 240;
                    Player[i][pJailTimetotal] = 240;
                    format(string, sizeof(string), "Vocк foi preso por %d segundos.   Fianзa: Negada", Player[i][pJailTime]);
                    SendClientMessage(i, COLOR_LIGHTBLUE, string);
                }

                new playername2[MAX_PLAYER_NAME];
                GetPlayerName(i, playername2, sizeof(playername2));
                account = Player[i][pBank];
                new key = Player[i][pPhousekey];
                new rent;
                if(key != 255)
                {

                    rent = HouseInfo[key][hRent];
                    if(strcmp(playername2, hOwner[key], true) == 0)
                        rent = 0;

                    else if(rent > GetPlayerGP(i))
                    {
                        Player[i][pPhousekey] = 255;
                        Player[i][pPaluguelkey] = 255;
                        SendClientMessage(i, COLOR_WHITE, "Vocк foi despejado.");
                        rent = 0;
                    }
                    HouseInfo[key][hTakings] = HouseInfo[key][hTakings]+rent;
                }

                new tmpintrate;
                if(key != 255)
                    tmpintrate = 3;
                else
                    tmpintrate = 1;

                BizzInfo[3][bProducts] = 200;
                BizzInfo[3][bTill] = 0;

                Player[i][pLogedTime] = 0;

                ConsumingMoney[i] = 1;

                Player[i][pExp]++;
                PlayerPlayMusic(i);
               
                SendClientMessage(i, COLOR_WHITE, "|_________ EXTRATO DO BANCO _________|");
                if(rent > 0)
                {
                    format(string, sizeof(string), "  Aluguel: R$ %d", rent);
                    SendClientMessage(i, COLOR_GREY, string);
                    GivePlayerGP(i, -rent);
                }

                if(Player[i][pMember] == 0 && Player[i][pJob] != DESEMPREGADO)
                {
                    format(string, sizeof(string), "  Salбrio: R$%d", JOB_SAL);
                    GivePlayerGP(i, JOB_SAL);
                }
                else if(Player[i][pMember] != 0)
                {
                    format(string, sizeof(string), "  Salбrio: R$%d", OrgsSalaries[Player[i][pMember]]);
                    GivePlayerGP(i, OrgsSalaries[Player[i][pMember]]);
                }
                SendClientMessage(i, COLOR_GREY, string);
                Player[i][pBank] -= Tax;

                if(Player[i][pJob] == DESEMPREGADO && Player[i][pMember] == 0)
                {
                    GivePlayerGP(i, 100);
                    SendClientMessage(i, COLOR_GREY, "  Seguro Desemprego: R$100");
                }
                if(Player[i][pMember] == TEAM_BOPE || Player[i][pMember] == TEAM_FA || Player[i][pMember] == TEAM_PM || Player[i][pMember] == TEAM_PF || Player[i][pMember] == TEAM_PREF || Player[i][pMember] == TEAM_DETRAN)
                {
                    GivePlayerGP(i, 500);
                    SendClientMessage(i, COLOR_GREY, "  Seguro Governo: R$500");
                }
                if(Player[i][pPhousekey] != 255)
                {
                    new ebill = (HouseInfo[Player[i][pPhousekey]][hValue]/2500)*(Player[i][pLevel]);
                    new wbill = (HouseInfo[Player[i][pPhousekey]][hValue]/5000)*(Player[i][pLevel]);
                    if(SBizzInfo[4][sbProducts] > 0)
                    {
                        SBizzInfo[4][sbTill] += ebill/2;
                        ExtortionSBiz(4, ebill/2);
                    }
                    if(SBizzInfo[4][sbProducts]>0)
                        SBizzInfo[4][sbProducts]--;

                    Player[i][pBank] -= ebill;


                    if(SBizzInfo[12][sbProducts] > 0)
                    {
                        SBizzInfo[12][sbTill] += wbill/2;
                        ExtortionSBiz(12, wbill/2);
                    }
                    if(SBizzInfo[12][sbProducts]>0)
                        SBizzInfo[12][sbProducts]--;

                    Player[i][pBank] -= wbill;

                    format(string, sizeof(string), "  Taxa elйtrica: R$ %d", ebill);
                    SendClientMessage(i, COLOR_GREY, string);
                    format(string, sizeof(string), "  Taxa de бgua: R$ %d", wbill);
                    SendClientMessage(i, COLOR_GREY, string);
                    SendClientMessage(i, COLOR_GREY, "  IPTU: R$ 100");
                    GivePlayerGP(i, -100);
                    SBizzInfo[19][sbTill] += 100;
                }
                if(Tax > 0)
                {
                    format(string, sizeof(string), "  Taxa de impostos: R$ %d", Tax);
                    SendClientMessage(i, COLOR_GREY, string);
                }
                interest = (Player[i][pBank]/1000)*(tmpintrate);
                if(Player[i][pBank] < 1000)
                    interest = 0;
                Player[i][pBank] = account+interest;
                format(string, sizeof(string), "  Juros: 0.%d por cento",tmpintrate);
                SendClientMessage(i, COLOR_GREY, string);
                format(string, sizeof(string), "  Juros Obtidos R$ %d", interest);
                SendClientMessage(i, COLOR_GREY, string);
                SendClientMessage(i, COLOR_GREY, "|--------------------------------------|");
                format(string, sizeof(string), "  Novo balanco: R$ %d", Player[i][pBank]);
                SendClientMessage(i, COLOR_GREY, string);
                new nxtlevel = Player[i][pLevel]+1;
                new expamount = nxtlevel*levelexp;
                if(Player[i][pExp] == expamount)
                    SendClientMessage(i, COLOR_LIGHTBLUE, "Vocк jб tem respeito suficiente, digite /adquirirnivel para ir ao prуximo level!!");

                GameTextForPlayer(i, "~y~dia de~n~~w~pagamento", 5000, 1);
                rent = 0;

                Player[i][pPayDayHad] += 1;
            }
            else
                SendClientMessage(i, COLOR_WHITE, "Vocк nгo jogou tempo suficiente para obter seu pagamento.");
        }
    }
    Checkprop();
    return 1;
}
O Do PayDay

Bom eu peguei esse codigo de um gm:
pawn Код:
public Adminmsg()
{
    for(new i = 0; i <= HighestID; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(AdminDuty[i] == 1 && Player[i][pAdmin] > 0)
            {
                //SetPlayerChatBubble(playerid, texto, cor, distвncia que aparece, tempo);
                new string[128];
                format(string, 128, "%s %s: Posso ajudar ?", AccountName(i), Player[i][pName]);
                SetPlayerChatBubble( i, string, COLOR_YELLOW, 50.0, 9000);
            }
            else if(AdminAfk[i] == 1 && Player[i][pAdmin] > 0)
            {
                new string[128];
                format(string, 128, "%s %s: Estou ausente e nгo posso responder.Use /relato e chame outro admin", AccountName(i), Player[i][pName]);
                SetPlayerChatBubble( i, string, COLOR_GREEN, 50.0, 9000);
            }
            else if(Player[i][pVIP] == 1 && VIP[i] == 1)
            {
                new string[128];
                format(string, 128, "%s: Doador Oficial ", Player[i][pName]);
                SetPlayerChatBubble( i, string, COLOR_GREEN, 50.0, 9000);
            }
        }
    }
}
So que coloquei no gm, e o negocio nao ficou aparecendo em cima do player ah algo errado ?
Reply
#2

Quote:
Originally Posted by mutante_br
Посмотреть сообщение
Bom gente, queria saber como faco para apaga uns object no samp, tipo pq tem uns object que atrapalha fazer algo, ai eu queria saber como faco :X
Й sу pesquisar "Remover objetos do SAMP" no ******, que vocк acha...
https://sampforum.blast.hk/showthread.php?tid=283007
Reply
#3

RemoveBuildingForPlayer
Reply
#4

vlw =D funfou agora

Mais como faco pra ajeita esse PayDay pra vip ganha mais rapido e ganha bonus ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)