[Ajuda] Morrer e ser preso
#1

No meu Serv agora quando o cara morre , mesmo sem a policia matar , sem nem ter policia on , morre e vai preso .. pq ?

Ai a public OnPlayerDeath

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    //TextDrawHideForPlayer(playerid, TextDinheiro[playerid]);
    //HOMICIDIO AO MATAR
    if(IsAGang(killerid) && IsAMember(killerid) && IsACivil(killerid))
    {
    WantedPoints[killerid] += 1;
    SetPlayerWantedLevel(killerid, WantedPoints[playerid]);
    SetPlayerCriminal(killerid,255, "Homicнdio de primeiro grau");
    Hospital[playerid] = 1;
    }
    //HOMICIDIO AO MATAR
    //empresa
    SBizzInfo[14][sbTill] += 50;
    ExtortionSBiz(14, 50);
    //empresa

    PlayerInfo[killerid][pKills] += 1;
    PlayerInfo[playerid][pDeaths] += 1;
    Hospital[playerid] = 1;
    SendClientMessage(killerid, COLOR_NOTICIA, "(caso o player morto tivesse armas) Use /parma para pegar as armas do chгo.");

    if(PlayerNoEvento[playerid] == 1 && (Evento == 1))
    {
        PlayerNoEvento[playerid] = 0;
        SendClientMessage(playerid, COLOR_NOTICIA, "[Evento] Vocк morreu no evento e saiu dele.");
    }
    if(IsPlayerInMorro(playerid))
    {
        MorreuNoMorro[playerid] = 1;
        SetTimerEx("MorreuMorroTimer", 600000, false, "i", playerid);
    }
    if(IsPlayerInFarol(playerid))
    {
        MorreuNoFarol[playerid] = 1;
        SetTimerEx("MorreuFarolTimer", 600000, false, "i", playerid);
    }
    if(IsPlayerInCemiterio(playerid))
    {
        MorreuNoCemiterio[playerid] = 1;
        SetTimerEx("MorreuCemiterioTimer", 600000, false, "i", playerid);
    }
    if(IsPlayerInPraia(playerid))
    {
        MorreuNoPraia[playerid] = 1;
        SetTimerEx("MorreuPraiaTimer", 600000, false, "i", playerid);
    }
    if(IsPlayerInShop(playerid))
    {
        MorreuNoShop[playerid] = 1;
        SetTimerEx("MorreuShopTimer", 600000, false, "i", playerid);
    }
    if(IsPlayerInSkate(playerid))
    {
        MorreuNoSkate[playerid] = 1;
        SetTimerEx("MorreuSkateTimer", 600000, false, "i", playerid);
    }
    if(IsPlayerInPier(playerid))
    {
        MorreuNoPier[playerid] = 1;
        SetTimerEx("MorreuPierTimer", 600000, false, "i", playerid);
    }
    if(IsPlayerInAero(playerid))
    {
        MorreuNoAero[playerid] = 1;
        SetTimerEx("MorreuAeroTimer", 600000, false, "i", playerid);
    }
    if(IsPlayerInGzMafia1(playerid))
    {
        MorreuNoGzMafia1[playerid] = 1;
        SetTimerEx("MorreuGzMafia1Timer", 600000, false, "i", playerid);
    }
    if(IsPlayerInGzMafia2(playerid))
    {
        MorreuNoGzMafia2[playerid] = 1;
        SetTimerEx("MorreuGzMafia2Timer", 600000, false, "i", playerid);
    }
    if(IsPlayerInComplexo(playerid))
    {
        MorreuNoComplexo[playerid] = 1;
        SetTimerEx("MorreuComplexoTimer", 600000, false, "i", playerid);
    }
    if(IsPlayerInGzMafia3(playerid))
    {
        MorreuNoGzMafia3[playerid] = 1;
        SetTimerEx("MorreuGzMafia3Timer", 600000, false, "i", playerid);
    }

//      DropWeapons(playerid);
    Hospital[playerid] = 1;
    Conce[playerid] = 0;
    new killerteam = gTeam[killerid];
    new playercash;
    new victimteam;
    new Assassino[MAX_PLAYER_NAME];
    new Vitima[MAX_PLAYER_NAME];
    new caller = Mobile[playerid];
    GetPlayerName(killerid, Assassino, sizeof(Assassino));
    GetPlayerName(playerid, Vitima, sizeof(Vitima));
    new string[256];
    new Float:px,Float:py,Float:pz;
    GetPlayerPos(playerid, px, py, pz);
    burgerexit[playerid] = 0;
    PlayerInfo[playerid][pInvWeapon] = 0;
    PlayerInfo[playerid][pInvAmmo] = 0;
    //gPlayerSpawned[playerid] = 0;
    PlayerInfo[playerid][pLocal] = 255;
    PlayerInfo[playerid][pSeatBelt] = 0;
    ClearCrime(playerid);


    if(killerid != 255)
    {
        if(PlayerInfo[killerid][pMember] != 3)
        {
            if(GetPlayerState(killerid) == 2)
            {
                SendClientMessage(killerid, COLOR_YELLOW, "Nгo abuse de DRIVE-BY !");
                format(string, sizeof(string), "Atencгo: [%d]%s fez drive-by em %s!!!", killerid,Assassino,Vitima);
                SendClientMessageToAll(COLOR_YELLOW, string);
                return 1;
            }
        }
    }

    //EM CORRIDA
    if (gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11)
    {
        DisablePlayerCheckpoint(playerid);
        gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
    }

    //GANGZONE MORTE

    //GUERRA
    if(EstaNaGuerraFAAQ[killerid] == 1  && EstaNaGuerraFAAQ[playerid] == 1 )
    {
        new killername[MAX_PLAYER_NAME];
        new victimname[MAX_PLAYER_NAME];
        GetPlayerName(killerid, killername, sizeof(killername));
        GetPlayerName(playerid, victimname, sizeof(killername));
        //AQ x FA
        if(PlayerInfo[killerid][pMember] == 3 && PlayerInfo[playerid][pMember] == 22)
        {
            PontosFA += 1;
            SendClientMessage(killerid,  COLOR_YELLOW, "Vocк matou um inimigo na Guerra. Vc й PHODA!!");
            Hospital[playerid] = 1;
            format(string,128,"O Soldado FA %s matou o adversario %s na Guerra e somou 1 ponto para sua Equipe.",killername,victimname);
            SendClientMessageToAll(COLOR_GREEN, string);
        }
        else if(PlayerInfo[killerid][pMember] == 22 && PlayerInfo[playerid][pMember] == 3)
        {
            PontosAQ += 1;
            SendClientMessage(killerid,  COLOR_YELLOW, "Vocк matou um inimigo na Guerra. Vc й PHODA!!");
            Hospital[playerid] = 1;
            format(string,128,"O Terrorista %s matou o adversario %s na Guerra e somou 1 ponto para sua Equipe.",killername,victimname);
            SendClientMessageToAll(COLOR_GREEN, string);
        }
        //Hamas x AQ
        if(PlayerInfo[killerid][pMember] == 28 && PlayerInfo[playerid][pMember] == 22)
        {
            PontosHamas += 1;
            SendClientMessage(killerid,  COLOR_YELLOW, "Vocк matou um inimigo na Guerra. Vc й PHODA!!");
            Hospital[playerid] = 1;
            format(string,128,"O Terrorista %s matou o adversario %s na Guerra e somou 1 ponto para sua Equipe.",killername,victimname);
            SendClientMessageToAll(COLOR_GREEN, string);
        }
        else if(PlayerInfo[killerid][pMember] == 22 && PlayerInfo[playerid][pMember] == 28)
        {
            PontosAQ += 1;
            SendClientMessage(killerid,  COLOR_YELLOW, "Vocк matou um inimigo na Guerra. Vc й PHODA!!");
            Hospital[playerid] = 1;
            format(string,128,"O Terrorista %s matou o adversario %s na Guerra e somou 1 ponto para sua Equipe.",killername,victimname);
            SendClientMessageToAll(COLOR_GREEN, string);
        }
        //Hamas x FA
        if(PlayerInfo[killerid][pMember] == 28 && PlayerInfo[playerid][pMember] == 3)
        {
            PontosHamas += 1;
            SendClientMessage(killerid,  COLOR_YELLOW, "Vocк matou um inimigo na Guerra. Vc й PHODA!!");
            Hospital[playerid] = 1;
            format(string,128,"O Terrorista %s matou o adversario %s na Guerra e somou 1 ponto para sua Equipe.",killername,victimname);
            SendClientMessageToAll(COLOR_RED, string);
        }
        else if(PlayerInfo[killerid][pMember] == 3 && PlayerInfo[playerid][pMember] == 28)
        {
            PontosFA += 1;
            SendClientMessage(killerid,  COLOR_YELLOW, "Vocк matou um inimigo na Guerra. Vc й PHODA!!");
            Hospital[playerid] = 1;
            format(string,128,"O Soldado FA %s matou o adversario %s na Guerra e somou 1 ponto para sua Equipe.",killername,victimname);
            SendClientMessageToAll(COLOR_GREEN, string);
        }
        //MA x AQ
        if(PlayerInfo[killerid][pMember] == 31 && PlayerInfo[playerid][pMember] == 22)
        {
            PontosMA += 1;
            SendClientMessage(killerid,  COLOR_YELLOW, "Vocк matou um inimigo na Guerra. Vc й PHODA!!");
            Hospital[playerid] = 1;
            format(string,128,"O Soldado da Marinha %s matou o adversario %s na Guerra e somou 1 ponto para sua Equipe.",killername,victimname);
            SendClientMessageToAll(COLOR_GREEN, string);
        }
        else if(PlayerInfo[killerid][pMember] == 22 && PlayerInfo[playerid][pMember] == 31)
        {
            PontosAQ += 1;
            SendClientMessage(killerid,  COLOR_YELLOW, "Vocк matou um inimigo na Guerra. Vc й PHODA!!");
            Hospital[playerid] = 1;
            format(string,128,"O Terrorista %s matou o adversario %s na Guerra e somou 1 ponto para sua Equipe.",killername,victimname);
            SendClientMessageToAll(COLOR_RED, string);
        }
        //MA x Hamas
        if(PlayerInfo[killerid][pMember] == 31 && PlayerInfo[playerid][pMember] == 28)
        {
            PontosMA += 1;
            SendClientMessage(killerid,  COLOR_YELLOW, "Vocк matou um inimigo na Guerra. Vc й PHODA!!");
            Hospital[playerid] = 1;
            format(string,128,"O Soldado da Marinha %s matou o adversario %s na Guerra e somou 1 ponto para sua Equipe.",killername,victimname);
            SendClientMessageToAll(COLOR_GREEN, string);
        }
        else if(PlayerInfo[killerid][pMember] == 28 && PlayerInfo[playerid][pMember] == 31)
        {
            PontosHamas += 1;
            SendClientMessage(killerid,  COLOR_YELLOW, "Vocк matou um inimigo na Guerra. Vc й PHODA!!");
            Hospital[playerid] = 1;
            format(string,128,"O Terrorista %s matou o adversario %s na Guerra e somou 1 ponto para sua Equipe.",killername,victimname);
            SendClientMessageToAll(COLOR_RED, string);
        }
        //MA x FA
        if(PlayerInfo[killerid][pMember] == 31 && PlayerInfo[playerid][pMember] == 3)
        {
            PontosMA -= 1;
            SendClientMessage(killerid,  COLOR_YELLOW, "Vocк matou um Aliado na Guerra. Vocк Vacilou!!");
            Hospital[playerid] = 1;
            format(string,128,"O Soldado da Marinha %s matou o aliado %s na Guerra e perdeu 1 ponto de sua Equipe.",killername,victimname);
            SendClientMessageToAll(COLOR_GREEN, string);
        }
        else if(PlayerInfo[killerid][pMember] == 3 && PlayerInfo[playerid][pMember] == 31)
        {
            PontosFA -= 1;
            SendClientMessage(killerid,  COLOR_YELLOW, "Vocк matou um Aliado na Guerra. Vocк Vacilou!!");
            Hospital[playerid] = 1;
            format(string,128,"O Soldado da FA %s matou o aliado %s na Guerra e perdeu 1 ponto de sua Equipe.",killername,victimname);
            SendClientMessageToAll(COLOR_GREEN, string);
        }
    }
    //GUERRA

    //TELEFONEMA
    if(caller != 255)
    {
        if(caller < 255)
        {
            SendClientMessage(caller,  COLOR_YELLOW, " Ninguйm na linha...");
            CellTime[caller] = 0;
            CellTime[playerid] = 0;
            Mobile[caller] = 255;
        }
        Mobile[playerid] = 255;
        CellTime[playerid] = 0;
    }

    //PAINTBALL
    if(PlayerPaintballing[playerid] != 0)
    {
        PlayerPaintballKills[killerid] ++;
        if(PlayerPaintballKills[killerid] > PaintballWinnerKills)
        {
            PaintballWinner = killerid;
            PaintballWinnerKills = PlayerPaintballKills[killerid];
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    if(PlayerPaintballing[i] != 0)
                    {
                        format(string, sizeof(string), "%s estб liderando o paintball com %d pontos.",Assassino,PaintballWinnerKills);
                        SendClientMessage(i, COLOR_YELLOW, string);
                    }
                }
            }
        }
        return 1;
    }

    // MATAR PREFEITO
    if(PlayerInfo[playerid][pLeader] == 7)
    {
        format(string, sizeof(string), "[Atenзгo] O Prefeito %s foi assassinado por %s!!!", Vitima , Assassino);
        SendClientMessageToAll(COLOR_YELLOW2, string);
        return 1;
    }

    //CONTRATO
    if(PlayerInfo[playerid][pHeadValue] > 0)
    {
        if(IsPlayerConnected(killerid))
        {
            if(PlayerInfo[killerid][pMember] == 8 || PlayerInfo[killerid][pMember] == 30)
            {
                if(GoChase[killerid] == playerid)
                {
                    ConsumingMoney[killerid] = 1;
                    PC_DarDinheiro(killerid, PlayerInfo[playerid][pHeadValue]);
                    WantedPoints[playerid] += 1;
                    SetPlayerWantedLevel(playerid, WantedPoints[playerid]);
                    SetPlayerCriminal(killerid,255, "Homicнdio de primeiro grau");
                    PlayerInfo[playerid][pHeadValue] = 0;
                    GotHit[playerid] = 0;
                    GetChased[playerid] = 999;
                    GoChase[killerid] = 999;
                }
            }
        }
    }

    if(victimteam >= 4)
    {
        if(IsPlayerConnected(killerid))
        {
            new slice = 100; //$100
            playercash = PC_GetarDinheiro(playerid);
            if(gTeam[killerid] != 2 && gTeam[killerid] != 21)
            {
              WantedPoints[killerid] += 1;
            }
            if(SafeTime[playerid] <= 0)
            {
                if(gTeam[killerid] != gTeam[playerid])
                {
                    if(GetPlayerState(killerid) == 1)
                    {
                        //PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills] + 2;
                    }
                    else
                    {
                        //PlayerInfo[killerid][pKills]++;
                    }
                    //PlayerInfo[playerid][pKills]--;
                }
            }
            /*if(strlen(deathreason) > 0)
            {
                if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || gTeam[killerid] == gTeam[playerid])
                {
                    format(string, sizeof(string), ".: %s murdered %s. (%s) :.", Assassino, Vitima, deathreason);
                }
                else
                {
                    format(string, sizeof(string), ".: %s murdered %s. (%s) for R$ %d :.", Assassino, Vitima, deathreason, slice);
                }

            }*/

            else
            {
                if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill || gTeam[killerid] == gTeam[playerid]))
                {
                    format(string, sizeof(string), ".: %s murdered %s :.", Assassino, Vitima);
                }
                else
                {
                    format(string, sizeof(string), ".: %s murdered %s for R$ %d :.", Assassino, Vitima, slice);
                }
            }
            if (((gTeam[killerid]) == 1) || ((gTeam[killerid]) == 3 && civnokill) || (gTeam[killerid] == gTeam[playerid] && gTeam[playerid] != 4))
            {
                slice = 0;
            }
            if (((gTeam[killerid]) != 4) && ((gTeam[killerid]) == gTeam[playerid]))
            {
                slice = 0;
            }
            if (playercash > 0)
            {
                PC_DarDinheiro(playerid, -slice);
            }
            else
            {
                slice = slice+500;
            }
            PC_DarDinheiro(killerid, slice);
            PlayerPlaySound(killerid, 1083, 0.0, 0.0, 0.0);
            if (((gTeam[killerid]) >= 3) && reason != 49)
            {
                SetPlayerCriminal(killerid,255, "Homicнdio de primeiro grau");
                if(PlayerInfo[playerid][pLeader] == 7)
                {
                    PC_DarDinheiro(playerid, -500);
                    format(string, sizeof(string), "O prefeito foi assassinado por %s !!!", Assassino);
                    SendClientMessageToAll(COLOR_YELLOW2, string);
                    SendClientMessage(playerid, COLOR_GREY, "Vocк perdeu R$500 por morrer!");
                }
                if(PlayerToPoint(40.0, killerid, 245.9469,75.8629,1003.6406) || PlayerToPoint(40.0, killerid, 2003.3408,2288.0269,1011.1256))
                {
                    WantedPoints[killerid] = 0;
                    SetPlayerInterior(killerid, 0);
                    PlayerInfo[killerid][pInt] = 0;
                    PlayerInfo[killerid][pJailed] = 2;
                    Hospital[playerid] = 1;
                    PlayerInfo[killerid][pJailTime] = 600;
                    SetPlayerPos(killerid, 107.2300,1920.6311,18.5208);
                    SetPlayerWorldBounds(killerid, 337.5694,101.5826,1940.9759,1798.7453);
                    GameTextForPlayer(killerid, "~w~bem vindo ao ~n~~r~bangu, repense suas atitudes", 5000, 3);
                    format(string, 256, "[Servidor] %s foi para o bangu por matar em local proibido.", Assassino);
                    BroadCast(COLOR_OOC,string);
                }
            }
            else if (((gTeam[killerid]) == 3) && reason == 49)
            {
                SetPlayerCriminal(killerid,255, "Drive By");
            }
        }
    }

    else if (victimteam == 2)
    {
        if(IsPlayerConnected(killerid))
        {
            //COP MATA COP
            if (gTeam[killerid] == 2)
            {
                PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
                PC_DarDinheiro(killerid, -suecost);
                PC_DarDinheiro(playerid, suecost+100);//+100pays hospital bill
            }
            else
            {
                //format(string,128,".: %s murdered Officer %s (%s) :.",killer,name,deathreason);
            }
            if (gTeam[killerid] >= 3)
            {
                WantedPoints[killerid] += 1;
                if(reason != 49)
                {
                    SetPlayerCriminal(killerid,255, "Homicнdio de primeiro grau");
                    if(PlayerInfo[playerid][pLeader] == 7)
                    {
                        format(string, sizeof(string), "O prefeito foi assassinado por %s !!!", killerid);
                        SendClientMessageToAll(COLOR_YELLOW2, string);
                    }
                    if(PlayerToPoint(40.0, killerid, 245.9469,75.8629,1003.6406) || PlayerToPoint(40.0, killerid, 2003.3408,2288.0269,1011.1256))
                    {
                        new time;
                        WantedPoints[killerid] = 0;
                        SetPlayerInterior(killerid, 0);
                        PlayerInfo[killerid][pInt] = 0;
                        Hospital[playerid] = 1;
                        PlayerInfo[killerid][pJailed] = 2;
                        PlayerInfo[killerid][pJailTime] = time*60;
                        SetPlayerPos(killerid, 107.2300,1920.6311,18.5208);
                        SetPlayerWorldBounds(killerid, 337.5694,101.5826,1940.9759,1798.7453);
                        GameTextForPlayer(killerid, "~w~bem vindo ao ~n~~r~bangu, repense suas atitudes", 5000, 3);
                        format(string, 256, "[Servidor] %s foi para o bangu por matar em local proibido.", Assassino);
                        BroadCast(COLOR_OOC,string);
                    }
                }
                else if (reason == 49)
                {
                    SetPlayerCriminal(killerid,255, "Drive By");
                }
            }
            if(gTeam[killerid] >= 5 && SafeTime[playerid] <= 0)
            {
                if(GetPlayerState(killerid) == 1)
                {
                    //PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills]+2;
                }
                else
                {
                    //PlayerInfo[killerid][pKills]++;
                }
                WantedPoints[killerid]+=1;
            }
        }
    }

    else if (victimteam == 3)
    {
        if(IsPlayerConnected(killerid))
        {
            //COP MATAR CIVIL
            if ((gTeam[killerid]) == 2)
            {
                if(WantedPoints[playerid] < 1)
                {
                    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
                    PC_DarDinheiro(killerid, -suecost);
                    PC_DarDinheiro(playerid, suecost+100);//+100pays hospital bill
                }
            }
            else
            {
                WantedPoints[killerid] += 1;
            }
            if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason != 49)
            {
                SetPlayerCriminal(killerid,255, "Homicнdio de primeiro grau");
                if(PlayerInfo[playerid][pLeader] == 7)
                {
                    format(string, sizeof(string), "O prefeito foi assassinado por %s !!!", killerid);
                    SendClientMessageToAll(COLOR_YELLOW2, string);
                }
                if(PlayerToPoint(40.0, killerid, 245.9469,75.8629,1003.6406) || PlayerToPoint(40.0, killerid, 2003.3408,2288.0269,1011.1256))
                {
                    new time;
                    WantedPoints[killerid] = 0;
                    SetPlayerInterior(killerid, 0);
                    PlayerInfo[killerid][pInt] = 0;
                    PlayerInfo[killerid][pJailed] = 2;
                    PlayerInfo[killerid][pJailTime] = time*60;
                    Hospital[playerid] = 1;
                    SetPlayerPos(killerid, 107.2300,1920.6311,18.5208);
                    SetPlayerWorldBounds(killerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811
                    GameTextForPlayer(killerid, "~w~bem vindo ao ~n~~r~bangu, repense suas atitudes", 5000, 3);
                    format(string, 256, "[Servidor] %s foi para o bangu por matar em local proibido.", Assassino);
                    BroadCast(COLOR_OOC,string);
                }
            }
            else if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason == 49)
            {
                SetPlayerCriminal(killerid,255, "Drive By");
            }
        }
    }

    else if (victimteam == 1)
    {
        if(IsPlayerConnected(killerid))
        {
            if ((gTeam[killerid]) == 2)//COP MATANDO MEDICO
            {
                //format(string,128,".: Officer %s murdered Paramedic %s (%s) and was sued for R$ %d :.",killer,name,deathreason,suecost);
                PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
                PC_DarDinheiro(killerid, -suecost);
                Hospital[playerid] = 1;
                PC_DarDinheiro(playerid, suecost+100);//+100pays hospital bill
            }
            else if ((gTeam[killerid]) == 1)//MЙDICO MATANDO CIVIL
            {
                //format(string,128,".: Paramedic %s murdered %s (%s) and was sued for R$ %d :.",killer,name,deathreason,suecost);
                PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
                PC_DarDinheiro(killerid, -suecost);
                Hospital[playerid] = 1;
                PC_DarDinheiro(playerid, suecost+100);
            }
            else
            {

            }
            if (((gTeam[killerid]) == 4) && reason != 49)
            {
                SetPlayerCriminal(killerid,255, "Homicнdio de primeiro grau");
                if(PlayerInfo[playerid][pLeader] == 7)
                {
                    format(string, sizeof(string), "O prefeito foi assassinado por %s !!!", killerid);
                    SendClientMessageToAll(COLOR_YELLOW2, string);
                }
                if(PlayerToPoint(40.0, killerid, 245.9469,75.8629,1003.6406) || PlayerToPoint(40.0, killerid, 2003.3408,2288.0269,1011.1256))
                {
                    new time;
                    WantedPoints[killerid] = 0;
                    SetPlayerInterior(killerid, 0);
                    PlayerInfo[killerid][pInt] = 0;
                    PlayerInfo[killerid][pJailed] = 2;
                    Hospital[playerid] = 1;
                    PlayerInfo[killerid][pJailTime] = time*60;
                    SetPlayerPos(killerid, 107.2300,1920.6311,18.5208);
                    SetPlayerWorldBounds(killerid, 337.5694,101.5826,1940.9759,1798.7453);
                    GameTextForPlayer(killerid, "~w~bem vindo ao ~n~~r~bangu, repense suas atitudes", 5000, 3);
                    format(string, 256, "[Servidor] %s foi para o bangu por matar em local proibido.", Assassino);
                    BroadCast(COLOR_OOC,string);
                }
            }
            else if (((gTeam[killerid]) == 3) && reason == 49)
            {
                SetPlayerCriminal(killerid,255, "Drive By");
            }
        }
    }
    if(victimteam >= 3 && WantedPoints[playerid] > 0 && killerteam == 2)
    {
        SetPlayerFree(playerid,killerid, "Morto !");
    }
    Hospital[playerid] = 1;
    killerid = INVALID_PLAYER_ID;
    SetPlayerColor(playerid,COLOR_GRAD2);
    return 1;
}
Reply
#2

UP Ajudem pf
Reply
#3

Perai to vendo aki
Reply
#4

n consigi acha o erro + continua vendo aki
Reply
#5

Serб q o Erro pode Ser aaqui ?
pawn Код:
if(newstate == PLAYER_STATE_WASTED)
    {
        if(WantedPoints[playerid] >= 1 )
        {
            //new price = WantedPoints[playerid] * 50;
            //new price = 500;
            new deadprice = 500;
            new count;
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                        if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pMember] == 14 || PlayerInfo[i][pMember] == 7 || PlayerInfo[i][pMember] == 29 && CrimInRange(30.0, playerid,i))
                        {
                            count = 1;
                            format(string, sizeof(string), "~w~Suspeito Procurado ~r~MORTO ~n~");
                            GameTextForPlayer(i, string, 5000, 1);
                            ConsumingMoney[i] = 1;
                            PlayerPlaySound(i, 1058, 0.0, 0.0, 0.0);
                            //if(GetPlayerMoney(playerid) >= price) { GivePlayerMoney(playerid, - price); GivePlayerMoney(i,price);
                            //}
                        }
                        /*else
                        {
                        SendClientMessage(i, COLOR_YELLOW, "<< O suspeito nгo teve como pagar a dнvida aos oficiais >>");
                        }*/

                        if(PlayerInfo[i][pMember] == 21 && CrimInRange(30.0, playerid,i)) //Bope prender
                            {
                            count = 3;
                            format(string, sizeof(string), "~w~Suspeito Procurado ~r~MORTO ~n~");
                            GameTextForPlayer(i, string, 5000, 1);
                            ConsumingMoney[i] = 1;
                            PlayerPlaySound(i, 1058, 0.0, 0.0, 0.0);
                            //if(GetPlayerMoney(playerid) >= price) { GivePlayerMoney(playerid, - price); GivePlayerMoney(i,price);
                            //}
                            //else { SendClientMessage(i, COLOR_YELLOW, "<< O suspeito nгo teve como pagar a dнvida aos oficiais >>"); }
                        }
                        /*else
                        {
                        SendClientMessage(i, COLOR_YELLOW, "<< O suspeito nгo teve como pagar a dнvida aos oficiais >>");
                        }*/

                        if(PlayerInfo[i][pMember] == 31 || PlayerInfo[i][pMember] == 3 && CrimInRange(30.0, playerid,i)) //Marinha prender
                        {
                            count = 4;
                            format(string, sizeof(string), "~w~Suspeito Procurado ~r~MORTO ~n~");
                            GameTextForPlayer(i, string, 5000, 1);
                            ConsumingMoney[i] = 1;
                            PlayerPlaySound(i, 1058, 0.0, 0.0, 0.0);
                            //if(GetPlayerMoney(playerid) >= price) { GivePlayerMoney(playerid, - price); GivePlayerMoney(i,price);
                            //}
                            //else { SendClientMessage(i, COLOR_YELLOW, "<< O suspeito nгo teve como pagar a dнvida aos oficiais >>"); }
                        }
                        /*else
                        {
                        SendClientMessage(i, COLOR_YELLOW, "<< O suspeito nгo teve como pagar a dнvida aos oficiais >>");
                        }*/

                        if(PlayerInfo[i][pMember] == 2 && CrimInRange(30.0, playerid,i)) //Policia Federal prender
                        {
                            count = 5;
                            format(string, sizeof(string), "~w~Suspeito Procurado ~r~MORTO ~n~");
                            GameTextForPlayer(i, string, 5000, 1);
                            ConsumingMoney[i] = 1;
                            PlayerPlaySound(i, 1058, 0.0, 0.0, 0.0);
                            //if(GetPlayerMoney(playerid) >= price) { GivePlayerMoney(playerid, - price); GivePlayerMoney(i,price);
                            //}
                            //else { SendClientMessage(i, COLOR_YELLOW, "<< O suspeito nгo teve como pagar a dнvida aos oficiais >>"); }
                        }
                        /*else
                        {
                        SendClientMessage(i, COLOR_YELLOW, "<< O suspeito nгo teve como pagar a dнvida aos oficiais >>");
                        }*/

                        if(PlayerInfo[i][pMember] == 32 && CrimInRange(30.0, playerid,i)) //G.A.T.E prender
                        {
                            count = 6;
                            format(string, sizeof(string), "~w~Suspeito Procurado ~r~MORTO ~n~");
                            GameTextForPlayer(i, string, 5000, 1);
                            ConsumingMoney[i] = 1;
                            PlayerPlaySound(i, 1058, 0.0, 0.0, 0.0);
                            //if(GetPlayerMoney(playerid) >= price) { GivePlayerMoney(playerid, - price); GivePlayerMoney(i,price);
                            //}
                            //else { SendClientMessage(i, COLOR_YELLOW, "<< O suspeito nгo teve como pagar a dнvida aos oficiais >>"); }
                        }//else { SendClientMessage(i, COLOR_YELLOW, "<< O suspeito nгo teve como pagar a dнvida aos oficiais >>"); }
            }
        }
            if(count == 1)
            {
                PlayerInfo[playerid][pWantedDeaths] += 1;
                PlayerInfo[playerid][pJailed] = 1;
                PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(240);
                PlayerInfo[playerid][pJailTimeTotal] = (WantedPoints[playerid])*(240);
                format(string, sizeof(string), "Vocк estб preso na DP por %d segundos e perdeu R$ %d por cometer crimes.", PlayerInfo[playerid][pJailTime], deadprice);
                SendClientMessage(playerid, COLOR_OOC, string);
                WantedPoints[playerid] = 0;
                SetPlayerWantedLevel(playerid, WantedPoints[playerid]);
            }
            if(count == 3)
            {
                PlayerInfo[playerid][pWantedDeaths] += 1;
                PlayerInfo[playerid][pJailed] = 4;
                PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(240);
                PlayerInfo[playerid][pJailTimeTotal] = (WantedPoints[playerid])*(240);
                format(string, sizeof(string), "Vocк estб preso por %d segundos e perdeu R$ %d por cometer crimes.", PlayerInfo[playerid][pJailTime], deadprice);
                SendClientMessage(playerid, COLOR_OOC, string);
                WantedPoints[playerid] = 0;
                SetPlayerWantedLevel(playerid, WantedPoints[playerid]);
            }
            if(count == 4)
            {
                PlayerInfo[playerid][pWantedDeaths] += 1;
                PlayerInfo[playerid][pJailed] = 99;
                PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(240);
                PlayerInfo[playerid][pJailTimeTotal] = (WantedPoints[playerid])*(240);
                format(string, sizeof(string), "Vocк estб preso por %d segundos e perdeu R$ %d por cometer crimes.", PlayerInfo[playerid][pJailTime], deadprice);
                SendClientMessage(playerid, COLOR_OOC, string);
                WantedPoints[playerid] = 0;
                SetPlayerWantedLevel(playerid, WantedPoints[playerid]);
            }
            if(count == 5)
            {
                PlayerInfo[playerid][pWantedDeaths] += 1;
                PlayerInfo[playerid][pJailed] = 3;
                PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(240);
                PlayerInfo[playerid][pJailTimeTotal] = (WantedPoints[playerid])*(240);
                format(string, sizeof(string), "Vocк estб preso por %d segundos e perdeu R$ %d por cometer crimes.", PlayerInfo[playerid][pJailTime], deadprice);
                SendClientMessage(playerid, COLOR_OOC, string);
                WantedPoints[playerid] = 0;
                SetPlayerWantedLevel(playerid, WantedPoints[playerid]);
            }
            if(count == 6)
            {
                PlayerInfo[playerid][pWantedDeaths] += 1;
                PlayerInfo[playerid][pJailed] = 32;
                PlayerInfo[playerid][pJailTime] = (WantedPoints[playerid])*(240);
                PlayerInfo[playerid][pJailTimeTotal] = (WantedPoints[playerid])*(240);
                format(string, sizeof(string), "Vocк estб preso por %d segundos e perdeu R$ %d por cometer crimes.", PlayerInfo[playerid][pJailTime], deadprice);
                SendClientMessage(playerid, COLOR_OOC, string);
                WantedPoints[playerid] = 0;
                SetPlayerWantedLevel(playerid, WantedPoints[playerid]);
            }
        }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)