[Ajuda] BUG no roubar
#1

Esse bug sу acontece na Loja de Armas 2, o player termina de roubar e o anime nгo acaba !!!

pawn Код:
if(rouboloja2 == 1)
            {
                SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma tentativa de roubo nessa loja.");
                return 1;
            }
            if(temporouboloja2 == 1)
            {
                SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Loja de Armas 2 espere 15 minutos para roubar de novo !");
                return 1;
            }
            GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
            format(string, sizeof(string), "%s e os %s estouraram o cofre da Loja de Armas 2 e estгo roubando !", playername, NomeORG(playerid) , playerid);
            SendClientMessageToAll(GetPlayerColor(playerid), string);
            SendClientMessage(playerid, COLOR_GRAD5, "Espere 60 segundos para terminar de roubar a Loja de Armas 2.");
            SetPlayerCriminal(playerid,255, "Tentativa de Roubo a Loja de Armas 2");
            roubando[playerid] = 1;
            ProvocoLoja2[playerid] = 1;
            rouboloja2 = 1;
            temporouboloja2 = 1;
            SetTimer("Aroubo4", 220000, 0);
            tempoloja2 = SetTimerEx("RouboLoja2", 60000, 0, "i", playerid);
            new Float:x,Float:y,Float:z;
            GetPlayerPos(playerid,x,y,z);
            PlayerPlaySound(playerid, 1159, x, y, z);
            PlayerPlaySound(playerid, 1159, x, y, z);
            PlayerInfo[playerid][pDina] -= 1;
            TempoContagem[playerid] = SetTimerEx("ContagemRoubo", 1000, 1, "i", playerid);
            Contagem[playerid] = 59;
            return 1;
        }
        else if(PlayerToPoint(1.0,playerid,-1435.1572,1480.4320,1.8672))
        {
Porfavor, pelo menos me deem uma Luz.
Boas festas а todos.
Reply
#2

Onde й que a animaзгo й setada ? Nгo tou entendendo :S
Reply
#3

Aff nгo tem no /roubar.
Alguйm me ajuda a achar no GM? й GM da net ;/
Reply
#4

/roubar
pawn Код:
if(strcmp(cmd,"/roubar",true)==0)
    {
        if(PlayerInfo[playerid][pMembro] != 5 && PlayerInfo[playerid][pLider] != 5
        && PlayerInfo[playerid][pMembro] != 6 && PlayerInfo[playerid][pLider] != 6
        && PlayerInfo[playerid][pMembro] != 14 && PlayerInfo[playerid][pLider] != 14
        && PlayerInfo[playerid][pMembro] != 17 && PlayerInfo[playerid][pLider] != 17
        && PlayerInfo[playerid][pMembro] != 19 && PlayerInfo[playerid][pLider] != 19
        && PlayerInfo[playerid][pMembro] != 20 && PlayerInfo[playerid][pLider] != 20
        && PlayerInfo[playerid][pMembro] != 21 && PlayerInfo[playerid][pLider] != 21
        && PlayerInfo[playerid][pMembro] != 22 && PlayerInfo[playerid][pLider] != 22
        && PlayerInfo[playerid][pMembro] != 15 && PlayerInfo[playerid][pLider] != 15
        && PlayerInfo[playerid][pMembro] != 8 && PlayerInfo[playerid][pLider] != 8
        && PlayerInfo[playerid][pMembro] != 18 && PlayerInfo[playerid][pLider] != 18
        && PlayerInfo[playerid][pMembro] != 12 && PlayerInfo[playerid][pLider] != 12
        && PlayerInfo[playerid][pMembro] != 25 && PlayerInfo[playerid][pLider] != 25
        && PlayerInfo[playerid][pMembro] != 13 && PlayerInfo[playerid][pLider] != 13
        && PlayerInfo[playerid][pMembro] != 25 && PlayerInfo[playerid][pLider] != 25
        && PlayerInfo[playerid][pMembro] != 27 && PlayerInfo[playerid][pLider] != 27
        && PlayerInfo[playerid][pMembro] != 26 && PlayerInfo[playerid][pLider] != 26)
        {
            SendClientMessage(playerid,COLOR_GREY,"Vocк nгo pode Roubar um Banco/Navio/Loterica/Loja de Armas 1, 2");
            return 1;
        }
        if(roubando[playerid] == 1)
        {
            SendClientMessage(playerid, COLOR_GRAD5, "Vocк ja estб roubando algum lugar.");
            return 1;
        }
        if(PlayerInfo[playerid][pDina] == 0)
        {
            SendClientMessage(playerid, COLOR_GRAD5, "Vocк nгo tem uma Dinamite, compre de um Mafioso/Loja de Armas");
            return 1;
        }
        if(PlayerToPoint(1.0,playerid, 2141.4456,1641.9794,993.5761))
        {
            if(roubobanco == 1)
            {
                SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma tentativa de roubo nesse cofre.");
                return 1;
            }
            if(temporoubobanco == 1)
            {
                SendClientMessage(playerid,COLOR_GREY,"Jб roubaram o cofre do banco espere 15 minutos para roubar de novo !");
                return 1;
            }
            GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
            format(string, sizeof(string), "%s e os %s estouraram o cofre do Banco e estгo roubando !", playername, NomeORG(playerid) , playerid);
            SendClientMessageToAll(GetPlayerColor(playerid), string);
            SendClientMessage(playerid, COLOR_GRAD5, "Espere 60 segundos para terminar de roubar o banco.");
            SetPlayerCriminal(playerid,255, "Tentativa de Roubo ao Banco");
            roubando[playerid] = 1;
            ProvocoBanco[playerid] = 1;
            roubobanco = 1;
            temporoubobanco = 1;
            SetTimer("Aroubo", 220000, 0);
            tempobanco = SetTimerEx("RouboBanco", 60000, 0, "i", playerid);
            new Float:x,Float:y,Float:z;
            GetPlayerPos(playerid,x,y,z);
            PlayerPlaySound(playerid, 1159, x, y, z);
            PlayerPlaySound(playerid, 1159, x, y, z);
            PlayerInfo[playerid][pDina] -= 1;
            TempoContagem[playerid] = SetTimerEx("ContagemRoubo", 1000, 1, "i", playerid);
            Contagem[playerid] = 59;
            return 1;
        }
        else if(PlayerToPoint(1.0,playerid,820.6042,8.3990,1004.1962))
        {
            if(roubolot == 1)
            {
                SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma tentativa de roubo nesse cofre.");
                return 1;
            }
            if(temporoubolot == 1)
            {
                SendClientMessage(playerid,COLOR_GREY,"Jб roubaram o cofre da Lotйrica espere 15 minutos para roubar de novo !");
                return 1;
            }
            GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
            format(string, sizeof(string), "%s e os %s estouraram o cofre da Lotйrica e estгo roubando !", playername, NomeORG(playerid) , playerid);
            SendClientMessageToAll(GetPlayerColor(playerid), string);
            SendClientMessage(playerid, COLOR_GRAD5, "Espere 60 segundos para terminar de roubar a Lotйrica.");
            SetPlayerCriminal(playerid,255, "Tentativa de Roubo a Lotйrica");
            roubando[playerid] = 1;
            ProvocoLot[playerid] = 1;
            roubolot = 1;
            temporoubolot = 1;
            SetTimer("Aroubo2", 220000, 0);
            tempolot = SetTimerEx("RouboLot", 60000, 0, "i", playerid);
            new Float:x,Float:y,Float:z;
            GetPlayerPos(playerid,x,y,z);
            PlayerPlaySound(playerid, 1159, x, y, z);
            PlayerPlaySound(playerid, 1159, x, y, z);
            PlayerInfo[playerid][pDina] -= 1;
            TempoContagem[playerid] = SetTimerEx("ContagemRoubo", 1000, 1, "i", playerid);
            Contagem[playerid] = 59;
            return 1;
        }
        else if(PlayerToPoint(1.0,playerid,305.2067,-169.4358,999.5938))
        {
            if(rouboloja1 == 1)
            {
                SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma tentativa de roubo nessa loja.");
                return 1;
            }
            if(temporouboloja1 == 1)
            {
                SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Loja de Armas 1 espere 15 minutos para roubar de novo !");
                return 1;
            }
            GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
            format(string, sizeof(string), "%s e os %s estouraram o cofre da Loja de Armas 1 e estгo roubando !", playername, NomeORG(playerid) , playerid);
            SendClientMessageToAll(GetPlayerColor(playerid), string);
            SendClientMessage(playerid, COLOR_GRAD5, "Espere 60 segundos para terminar de roubar a Loja de Armas 1.");
            SetPlayerCriminal(playerid,255, "Tentativa de Roubo a Loja de Armas 1");
            roubando[playerid] = 1;
            ProvocoLoja1[playerid] = 1;
            rouboloja1 = 1;
            temporouboloja1 = 1;
            SetTimer("Aroubo3", 220000, 0);
            tempoloja1 = SetTimerEx("RouboLoja1", 60000, 0, "i", playerid);
            new Float:x,Float:y,Float:z;
            GetPlayerPos(playerid,x,y,z);
            PlayerPlaySound(playerid, 1159, x, y, z);
            PlayerPlaySound(playerid, 1159, x, y, z);
            PlayerInfo[playerid][pDina] -= 1;
            TempoContagem[playerid] = SetTimerEx("ContagemRoubo", 1000, 1, "i", playerid);
            Contagem[playerid] = 59;
            return 1;
        }
        else if(PlayerToPoint(1.0,playerid,304.1000,-126.8000,1003.2999))
        {
            if(rouboloja2 == 1)
            {
                SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma tentativa de roubo nessa loja.");
                return 1;
            }
            if(temporouboloja2 == 1)
            {
                SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Loja de Armas 2 espere 15 minutos para roubar de novo !");
                return 1;
            }
            GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
            format(string, sizeof(string), "%s e os %s estouraram o cofre da Loja de Armas 2 e estгo roubando !", playername, NomeORG(playerid) , playerid);
            SendClientMessageToAll(GetPlayerColor(playerid), string);
            SendClientMessage(playerid, COLOR_GRAD5, "Espere 60 segundos para terminar de roubar a Loja de Armas 2.");
            SetPlayerCriminal(playerid,255, "Tentativa de Roubo a Loja de Armas 2");
            roubando[playerid] = 1;
            ProvocoLoja2[playerid] = 1;
            rouboloja2 = 1;
            temporouboloja2 = 1;
            SetTimer("Aroubo4", 220000, 0);
            tempoloja2 = SetTimerEx("RouboLoja2", 60000, 0, "i", playerid);
            new Float:x,Float:y,Float:z;
            GetPlayerPos(playerid,x,y,z);
            PlayerPlaySound(playerid, 1159, x, y, z);
            PlayerPlaySound(playerid, 1159, x, y, z);
            PlayerInfo[playerid][pDina] -= 1;
            TempoContagem[playerid] = SetTimerEx("ContagemRoubo", 1000, 1, "i", playerid);
            Contagem[playerid] = 59;
            return 1;
        }
        else if(PlayerToPoint(1.0,playerid,-1435.1572,1480.4320,1.8672))
        {
      if(roubodeposito == 1)
            {
                SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma tentativa de roubo nesse cofre.");
                return 1;
            }
            if(temporoubodeposito == 1)
            {
                SendClientMessage(playerid,COLOR_GREY,"Jб roubaram o cofre do Navio espere 15 minutos para roubar de novo !");
                return 1;
            }
            GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
            format(string, sizeof(string), "%s e os %s estouraram o cofre do Navio e estгo roubando !", playername, NomeORG(playerid) , playerid);
            SendClientMessageToAll(GetPlayerColor(playerid), string);
            SendClientMessage(playerid, COLOR_GRAD5, "Espere 60 segundos para terminar de roubar o Navio.");
            SetPlayerCriminal(playerid,255, "Tentativa de Roubo ao Navio");
            roubando[playerid] = 1;
            ProvocoDeposito[playerid] = 1;
            roubodeposito = 1;
            temporoubodeposito = 1;
            SetTimer("Aroubo6", 220000, 0);
            tempodeposito = SetTimerEx("RouboDeposito", 60000, 0, "i", playerid);
            new Float:x,Float:y,Float:z;
            GetPlayerPos(playerid,x,y,z);
            PlayerPlaySound(playerid, 1159, x, y, z);
            PlayerPlaySound(playerid, 1159, x, y, z);
            PlayerInfo[playerid][pDina] -= 1;
            TempoContagem[playerid] = SetTimerEx("ContagemRoubo", 2000, 1, "i", playerid);
            Contagem[playerid] = 59;
            return 1;
        }
        else if(PlayerToPoint(1.0,playerid,947.1464,-41.6903,1001.1166))
        {
            if(rouboprefe == 1)
            {
                SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma tentativa de roubo no Puteiro.");
                return 1;
            }
            if(temporouboprefe == 1)
            {
                SendClientMessage(playerid,COLOR_GREY,"Jб roubaram o Puteiro espere 15 minutos para roubar de novo !");
                return 1;
            }
            GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
            format(string, sizeof(string), "%s e os %s estouraram o cofre do Puteiro e estгo roubando !", playername, NomeORG(playerid) , playerid);
            SendClientMessageToAll(GetPlayerColor(playerid), string);
            SendClientMessage(playerid, COLOR_GRAD5, "Espere 60 segundos para terminar de roubar o Puteiro.");
            SetPlayerCriminal(playerid,255, "Tentativa de Roubo ao Puteiro");
            roubando[playerid] = 1;
            ProvocoPrefe[playerid] = 1;
            rouboprefe = 1;
            temporouboprefe = 1;
            SetTimer("Aroubo5", 220000, 0);
            tempoprefe = SetTimerEx("RouboPrefe", 60000, 0, "i", playerid);
            new Float:x,Float:y,Float:z;
            GetPlayerPos(playerid,x,y,z);
            PlayerPlaySound(playerid, 1159, x, y, z);
            PlayerPlaySound(playerid, 1159, x, y, z);
            PlayerInfo[playerid][pDina] -= 1;
            TempoContagem[playerid] = SetTimerEx("ContagemRoubo", 1000, 1, "i", playerid);
            Contagem[playerid] = 59;
            return 1;
        }
        if(PlayerToPoint(1.0,playerid, 1268.0264,-1671.1017,13.5839))
        {
            if(roubobcentral == 1)
            {
                SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma tentativa de roubo nesse cofre.");
                return 1;
            }
            if(temporoubobcentral == 1)
            {
                SendClientMessage(playerid,COLOR_GREY,"Jб roubaram o cofre do banco central espere 15 minutos para roubar de novo !");
                return 1;
            }
            GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
            format(string, sizeof(string), "%s e os %s Estouraram o Cofre do Banco Central e Estгo Tentando Roubar! ID:[%d]", playername, NomeORG(playerid) , playerid);
            SendClientMessageToAll(GetPlayerColor(playerid), string);
            SendClientMessage(playerid, COLOR_GRAD5, "Espere 60 segundos para terminar de roubar o banco central.");
            SetPlayerCriminal(playerid,255, "Tentativa de Roubo ao Banco Central");
            roubando[playerid] = 1;
            ProvocoBcentral[playerid] = 1;
            roubobcentral = 1;
            temporoubobcentral = 1;
            SetTimer("Aroubo7", 220000, 0);
            tempobcentral = SetTimerEx("RouboBcentral", 60000, 0, "i", playerid);
            new Float:x,Float:y,Float:z;
            GetPlayerPos(playerid,x,y,z);
            PlayerPlaySound(playerid, 1159, x, y, z);
            PlayerPlaySound(playerid, 1159, x, y, z);
            PlayerInfo[playerid][pDina] -= 1;
            TempoContagem[playerid] = SetTimerEx("ContagemRoubo", 1000, 1, "i", playerid);
            Contagem[playerid] = 59;
            return 1;
        }
    else
        {
            SendClientMessage(playerid, COLOR_GREY, "Vocк nгo esta em um Banco/Loterica/Loja de Armas 1, 2 !");
            return 1;
        }
        //return 1;
    }
Reply
#5

Passa por exemplo a public RouboBanco e ContagemRoubo
Reply
#6

Public RouboBanco junto com as outras:
pawn Код:
public RouboBanco(playerid)
{
    KillTimer(tempobanco);
    if(!IsACop(playerid))
    if(!PlayerToPoint(8.0,playerid,2141.4456,1641.9794,993.5761))
    {
        format(gstring, sizeof(gstring), "%s e os %s nгo conseguiram roubar o cofre do Banco ! ID:[%d]", PlayerName(playerid), NomeORG(playerid), playerid);
        SendClientMessageToAll(GetPlayerColor(playerid), gstring);
        RemovePlayerAttachedObject(playerid,4);
        SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб no cofre do banco.");
        ProvocoBanco[playerid] = 0; roubando[playerid] = 0; roubobanco = 0; KillTimer(tempobanco); temporoubobanco = 0;
        ClearAnimations(playerid);
        KillTimer(TempoContagem[playerid]);
        return 1;
    }
    ForPlayers(i)
    {
        if(PlayerToPoint(10.0,i,2141.4456,1641.9794,993.5761))
        if(!IsACop(playerid))
        {
            if(ProvocoBanco[playerid] == 1)
            {
                format(gstring, sizeof(gstring), "%s e os %s Conseguiram Roubar o Cofre do Banco ! ID:[%d]", PlayerName(playerid), NomeORG(playerid), playerid);
                SendClientMessageToAll(GetPlayerColor(playerid), gstring);
                roubando[playerid] = 0; roubobanco = 0; ProvocoBanco[playerid] = 0;
                RemovePlayerAttachedObject(playerid,4);
                KillTimer(TempoContagem[playerid]);
            }
            if(!IsACop(i))
            {
                SetPlayerCriminal(i,255, "Roubo ao Banco");
                format(gstring, sizeof(gstring), "Vocк e os %s roubaram [R$:45000] do cofre do Banco !",NomeORG(playerid));
                SendClientMessage(i, COLOR_YELLOW, gstring);
                GivePlayerMoney(i, 45000);
                ClearAnimations(i);
                RemovePlayerAttachedObject(i,4);
            }
        }
    }
    return 1;
}
public RouboLot(playerid)
{
    KillTimer(tempolot);
    if(!IsACop(playerid))
    if(!PlayerToPoint(8.0,playerid,820.6042,8.3990,1004.1962))
    {
        format(gstring, sizeof(gstring), "%s e os %s nгo conseguiram roubar o cofre da Lotйrica ! ID:[%d]", PlayerName(playerid), NomeORG(playerid), playerid);
        SendClientMessageToAll(GetPlayerColor(playerid), gstring);
        RemovePlayerAttachedObject(playerid,4);
        SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб no cofre da Lotйrica.");
        ProvocoLot[playerid] = 0; roubando[playerid] = 0; roubolot = 0; KillTimer(tempolot); temporoubolot = 0;
        ClearAnimations(playerid);
        KillTimer(TempoContagem[playerid]);
        return 1;
    }
    ForPlayers(i)
    {
        if(PlayerToPoint(5.0,i,820.6042,8.3990,1004.1962))
        if(!IsACop(playerid))
        {
            if(ProvocoLot[playerid] == 1)
            {
                format(gstring, sizeof(gstring), "%s e os %s conseguiram roubar o cofre da Lotйrica ! ID:[%d]", PlayerName(playerid), NomeORG(playerid), playerid);
                SendClientMessageToAll(GetPlayerColor(playerid), gstring);
                roubando[playerid] = 0; roubolot = 0; ProvocoLot[playerid] = 0;
                RemovePlayerAttachedObject(playerid,4);
                KillTimer(TempoContagem[playerid]);
            }
            if(!IsACop(i))
            {
                SetPlayerCriminal(i,255, "Roubo a Lotйrica");
                format(gstring, sizeof(gstring), "Vocк e os %s roubaram [R$:30000] do cofre da Lotйrica !",NomeORG(playerid));
                SendClientMessage(i, COLOR_YELLOW, gstring);
                GivePlayerMoney(i, 30000);
                ClearAnimations(i);
                RemovePlayerAttachedObject(i,4);
            }
        }
    }
    return 1;
}
public RouboLoja1(playerid)
{
    KillTimer(tempoloja1);
    if(!IsACop(playerid))
    if(!PlayerToPoint(8.0,playerid,305.2067,-169.4358,999.5938))
    {
        format(gstring, sizeof(gstring), "%s e os %s nгo conseguiram roubar a Loja de Armas 1 ! ID:[%d]", PlayerName(playerid), NomeORG(playerid), playerid);
        SendClientMessageToAll(GetPlayerColor(playerid), gstring);
        SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб na Loja de Armas 1.");
        RemovePlayerAttachedObject(playerid,4);
        ProvocoLoja1[playerid] = 0; roubando[playerid] = 0; rouboloja1 = 0; KillTimer(tempoloja1); temporouboloja1 = 0;
        ClearAnimations(playerid);
        KillTimer(TempoContagem[playerid]);
        return 1;
    }
    ForPlayers(i)
    {
        if(PlayerToPoint(8.0,i,305.2067,-169.4358,999.5938))
        if(!IsACop(playerid))
        {
            if(ProvocoLoja1[playerid] == 1)
            {
                format(gstring, sizeof(gstring), "%s e os %s conseguiram roubar a Loja de Armas 1 ! ID:[%d]", PlayerName(playerid), NomeORG(playerid), playerid);
                SendClientMessageToAll(GetPlayerColor(playerid), gstring);
                roubando[playerid] = 0; rouboloja1 = 0; ProvocoLoja1[playerid] = 0;
                RemovePlayerAttachedObject(playerid,4);
                KillTimer(TempoContagem[playerid]);
            }
            if(!IsACop(i))
            {
                SetPlayerCriminal(i,255, "Roubo a Loja de Armas 1");
                format(gstring, sizeof(gstring), "Vocк e os %s roubaram [R$:15000] da Loja de Armas 1!",NomeORG(playerid));
                SendClientMessage(i, COLOR_YELLOW, gstring);
                GivePlayerMoney(i, 15000);
                GivePlayerWeapon(i, 24, 200);
                GivePlayerWeapon(i, 29, 150);
                GivePlayerWeapon(i, 25, 150);
                GivePlayerWeapon(i, 31, 150);
                RemovePlayerAttachedObject(playerid,4);
                ClearAnimations(i);
                RemovePlayerAttachedObject(i,4);
            }
        }
    }
    return 1;
}
public RouboDeposito(playerid)
{
    KillTimer(tempodeposito);
    if(!PlayerToPoint(8.0,playerid,-1435.1572,1480.4320,1.8672))
    if(!IsACop(playerid))
    {
        format(gstring, sizeof(gstring), "%s e os %s nгo conseguiram roubar o Navio ! ID:[%d]", PlayerName(playerid), NomeORG(playerid), playerid);
        SendClientMessageToAll(GetPlayerColor(playerid), gstring);
        RemovePlayerAttachedObject(playerid,4);
        SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб no Navio.");
        ProvocoDeposito[playerid] = 0; roubando[playerid] = 0; roubodeposito = 0; KillTimer(tempodeposito); temporoubodeposito = 0;
        ClearAnimations(playerid);
        KillTimer(TempoContagem[playerid]);
        return 1;
    }
    ForPlayers(i)
    {
        if(PlayerToPoint(8.0,i,-1435.1572,1480.4320,1.8672))
        if(!IsACop(playerid))
        {
            if(ProvocoDeposito[playerid] == 1)
            {
                format(gstring, sizeof(gstring), "%s e os %s conseguiram roubar o Navio  ! ID:[%d]", PlayerName(playerid), NomeORG(playerid), playerid);
                SendClientMessageToAll(GetPlayerColor(playerid), gstring);
                roubando[playerid] = 0; roubodeposito = 0; ProvocoDeposito[playerid] = 0;
                RemovePlayerAttachedObject(playerid,4);
                KillTimer(TempoContagem[playerid]);
            }
            if(!IsACop(i))
            {
                SetPlayerCriminal(i,255, "Roubo ao Navio");
                format(gstring, sizeof(gstring), "Vocк e os %s roubaram [R$:65000] do cofre do Navio!",NomeORG(playerid));
                SendClientMessage(i, COLOR_YELLOW, gstring);
                GivePlayerMoney(i, 65000);
                ClearAnimations(i);
                RemovePlayerAttachedObject(i,4);
            }
        }
    }
    return 1;
}
public RouboPrefe(playerid)
{
    KillTimer(tempoprefe);
    if(!IsACop(playerid))
    if(!PlayerToPoint(8.0,playerid,947.1464,-41.6903,1001.1166))
    {
        format(gstring, sizeof(gstring), "%s e os %s nгo conseguiram roubar o Puteiro ! ID:[%d]", PlayerName(playerid), NomeORG(playerid), playerid);
        SendClientMessageToAll(GetPlayerColor(playerid), gstring);
        RemovePlayerAttachedObject(playerid,4);
        SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб no Puteiro.");
        ProvocoPrefe[playerid] = 0; roubando[playerid] = 0; rouboprefe = 0; KillTimer(tempoprefe); temporouboprefe = 0;
        ClearAnimations(playerid);
        KillTimer(TempoContagem[playerid]);
        return 1;
    }
    ForPlayers(i)
    {
        if(PlayerToPoint(8.0,i,947.1464,-41.6903,1001.1166))
        if(!IsACop(playerid))
        {
            if(ProvocoPrefe[playerid] == 1)
            {
                format(gstring, sizeof(gstring), "%s e os %s conseguiram roubar o cofre do Puteiro ! ID:[%d]", PlayerName(playerid), NomeORG(playerid), playerid);
                SendClientMessageToAll(GetPlayerColor(playerid), gstring);
                roubando[playerid] = 0; rouboprefe = 0; ProvocoPrefe[playerid] = 0;
                RemovePlayerAttachedObject(playerid,4);
                KillTimer(TempoContagem[playerid]);
            }
            if(!IsACop(i))
            {
                SetPlayerCriminal(i,255, "Roubo ao Puteiro");
                GivePlayerWeapon(i, 10, 1);
                format(gstring, sizeof(gstring), "Vocк e os %s roubaram [R$:28000] do cofre do Puteiro!",NomeORG(playerid));
                SendClientMessage(i, COLOR_YELLOW, gstring);
                GivePlayerMoney(i, 28000);
                ClearAnimations(i);
                RemovePlayerAttachedObject(i,4);
            }
        }
    }
    return 1;
}
public RouboBcentral(playerid)
{
    KillTimer(tempobcentral);
    if(!IsACop(playerid))
    if(!PlayerToPoint(8.0,playerid,1268.0264,-1671.1017,13.5839))
    {
        format(gstring, sizeof(gstring), "%s e os %s nгo conseguiram roubar o cofre do Banco Central ! ID:[%d]", PlayerName(playerid), NomeORG(playerid), playerid);
        SendClientMessageToAll(GetPlayerColor(playerid), gstring);
        RemovePlayerAttachedObject(playerid,4);
        SendClientMessage(playerid, COLOR_GREY, "Vocк nгo estб no cofre do banco.");
        ProvocoBcentral[playerid] = 0; roubando[playerid] = 0; roubobcentral = 0; KillTimer(tempobcentral); temporoubobcentral = 0;
        ClearAnimations(playerid);
        KillTimer(TempoContagem[playerid]);
        return 1;
    }
    ForPlayers(i)
    {
        if(PlayerToPoint(10.0,i,1268.0264,-1671.1017,13.5839))
        if(!IsACop(playerid))
        {
            if(ProvocoBcentral[playerid] == 1)
            {
                format(gstring, sizeof(gstring), "%s e os %s conseguiram roubar o cofre do Banco Central ! ID:[%d]", PlayerName(playerid), NomeORG(playerid), playerid);
                SendClientMessageToAll(GetPlayerColor(playerid), gstring);
                roubando[playerid] = 0; roubobcentral = 0; ProvocoBcentral[playerid] = 0;
                RemovePlayerAttachedObject(playerid,4);
                KillTimer(TempoContagem[playerid]);
            }
            if(!IsACop(i))
            {
                SetPlayerCriminal(i,255, "Roubo ao Banco Central");
                format(gstring, sizeof(gstring), "Vocк e os %s roubaram [R$:65980] do cofre do Banco Central !",NomeORG(playerid));
                SendClientMessage(i, COLOR_YELLOW, gstring);
                GivePlayerMoney(i, 65980);
                ClearAnimations(i);
                RemovePlayerAttachedObject(i,4);
            }
        }
    }
    return 1;
}
public Aroubo()
{
    temporoubobanco = 0;
}
public Aroubo2()
{
    temporoubolot = 0;
}
public Aroubo3()
{
    temporouboloja1 = 0;
}
public Aroubo4()
{
    temporouboloja2 = 0;
}
public Aroubo5()
{
    temporouboprefe = 0;
}
public Aroubo6()
{
    temporoubodeposito = 0;
}
public Aroubo7()
{
    temporoubobcentral = 0;
}
Public ContagemRoubo:

pawn Код:
public ContagemRoubo(playerid)
{
    new string[70];
    format(string, sizeof(string), "~w~Tempo para roubar:~n~~r~%d Segundos.", Contagem[playerid]);
    GameTextForPlayer(playerid, string, 1500, 3);
    if(Contagem[playerid] == 0)
    {
        KillTimer(TempoContagem[playerid]);

    }
    Contagem[playerid]--;
}
Reply
#7

Pow, alguйm poderia me ajudar porfavor?
Reply
#8

:0:v
Reply
#9

Procure no gm por 'public RouboLoja2' caso nгo encontre, eu crio uma para vocк.
Reply
#10

Quote:
Originally Posted by GReeN_WOoD
Посмотреть сообщение
Procure no gm por 'public RouboLoja2' caso nгo encontre, eu crio uma para vocк.
Nгo tem a public :S
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)