[Pedido] ajuda no /roubar
#1

Pessoal bom dia,

como eu aumento no meu /roubar o Nнvel de Procura. Bom no meu GM a pessoa que roubar Loteria/Banco e outros, sу ganha 1 Nнvel de procura, tanto quem estб roubando como as pessoas em volta.

Outra dъvida, alguйm tem algum tutorial como explodir um portгo / porta?

flw!!!
Reply
#2

Se vocк postar o comando, fica mais fбcil de ajudar vocк.
Reply
#3

PHP код:
//=======================[NOVO ROUBAR]========================
    
if(strcmp(cmd,"/roubar",true)==0)
    {
        if(
PlayerInfo[playerid][pMembro] != && PlayerInfo[playerid][pLider] != 5
        
&& PlayerInfo[playerid][pMembro] != 14 && PlayerInfo[playerid][pLider] != 14
        
&& PlayerInfo[playerid][pMembro] != 17 && PlayerInfo[playerid][pLider] != 17
        
&& PlayerInfo[playerid][pMembro] != 18 && PlayerInfo[playerid][pLider] != 18
        
&& 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] != 24 && PlayerInfo[playerid][pLider] != 24
        
&& GetPlayerOrg(playerid) != && GetPlayerOrg(playerid) != 12
        
&& GetPlayerOrg(playerid) != 13    && GetPlayerOrg(playerid) != 15
        
&& GetPlayerOrg(playerid) != 23)
        {
            
SendClientMessage(playerid,COLOR_GREY,"Vocк nгo pode assaltar !");
            return 
true;
        }
        if(
roubando[playerid] == 1)
        {
               
SendClientMessage(playeridCOLOR_GRAD5"Vocк ja estб roubando algum lugar.");
            return 
true;
        }
        if(
PlayerToPoint(2.0,playerid2144.4177,1641.5360,993.5761))
        {
            if(
roubobanco == 1)
            {
                   
SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nesse cofre.");
                return 
true;
            }
            if(
temporoubobanco == 1)
            {
                   
SendClientMessage(playerid,COLOR_GREY,"Jб roubaram o cofre do banco espere 3 minutos para roubar de novo !");
                return 
true;
            }
            
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
            
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto ao Banco{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
            
format(stringsizeof(string), "%s e os %s estгo tentando roubar o cofre banco! ID:[%d]"playernameNomeORG(playerid) , playerid);
            
SendClientMessageToAll(GetPlayerColor(playerid), string);
            
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 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;
            
Controle(playerid0);
            
SetPlayerPos(playerid2144.3711,1641.4792,993.5761);
            
SetPlayerFacingAngle(playerid,1.2666);
            
SetTimer("Aroubo"2200000);
            
SetTimerEx("AnimRouboBanco"9000"i"playerid);
            
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010);
            
tempobanco SetTimerEx("RouboBanco"400000"i"playerid);
            
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000);
            
SetTimerEx("AcabarMochila"1200000"i"playerid);
            return 
true;
        }
        else if(
PlayerToPoint(2.0,playerid,820.6042,8.3990,1004.1962))
        {
            if(
roubolot == 1)
            {
                   
SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nesse cofre.");
                return 
true;
            }
            if(
temporoubolot == 1)
            {
                   
SendClientMessage(playerid,COLOR_GREY,"Jб roubaram o cofre da Lotйrica espere 3 minutos para roubar de novo !");
                return 
true;
            }
            
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
            
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Lotйrica{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
            
format(stringsizeof(string), "%s e os %s estгo tentando roubar o cofre da Lotйrica! ID:[%d]"playernameNomeORG(playerid) , playerid);
            
SendClientMessageToAll(GetPlayerColor(playerid), string);
            
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 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;
            
Controle(playerid0);
            
SetPlayerPos(playerid820.9382,8.4020,1004.1957);
            
SetPlayerFacingAngle(playerid,91.2409);
            
SetTimer("Aroubo2"2200000);
            
tempolot SetTimerEx("RouboLot"400000"i"playerid);
             
SetTimerEx("AnimRouboLot"9000"i"playerid);
            
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010);
               
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000);
            
SetTimerEx("AcabarMochila"1200000"i"playerid);
            return 
true;
        }
        else if(
PlayerToPoint(2.0,playerid,268.50671881.7822, -30.1831))
        {
            if(
rouboloja1 == 1)
            {
                   
SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nessa loja.");
                return 
true;
            }
            if(
temporouboloja1 == 1)
            {
                   
SendClientMessage(playerid,COLOR_GREY,"Jб roubaram o Arsenal do Exйrcito espere 3 minutos para roubar de novo !");
                return 
true;
            }
            
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
            
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto ao Arsenal do Exйrcito{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
            
format(stringsizeof(string), "%s e os %s estгo tentando roubar o Arsenal do Exйrcito! ID:[%d]"playernameNomeORG(playerid) , playerid);
            
SendClientMessageToAll(GetPlayerColor(playerid), string);
            
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar o Arsenal do Exйrcito.");
            
SetPlayerCriminal(playerid,255"Tentativa de Roubo ao Arsenal do Exйrcito");
            
roubando[playerid] = 1;
            
ProvocoLoja1[playerid] = 1;
            
rouboloja1 1;
            
temporouboloja1 1;
            
Controle(playerid0);
            
SetPlayerPos(playerid268.50671881.7822, -30.1831);
            
SetPlayerFacingAngle(playerid,178.6149);
            
SetTimer("Aroubo3"2200000);
            
tempoloja1 SetTimerEx("RouboLoja1"400000"i"playerid);
             
SetTimerEx("AnimRouboLoja"9000"i"playerid);
            
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010);
               
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000);
            
SetTimerEx("AcabarMochila"1200000"i"playerid);
            return 
true;
        }
        else if(
PlayerToPoint(2.0,playerid,294.8272,-57.8448,1001.5156))
        {
            if(
rouboloja2 == 1)
            {
                   
SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nessa loja.");
                return 
true;
            }
            if(
temporouboloja2 == 1)
            {
                   
SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Ammu Nation espere 3 minutos para roubar de novo !");
                return 
true;
            }
            
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
            
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Ammu Nation{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
            
format(stringsizeof(string), "%s e os %s estгo tentando roubar a Ammu Nation! ID:[%d]"playernameNomeORG(playerid) , playerid);
            
SendClientMessageToAll(GetPlayerColor(playerid), string);
            
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar a Ammu Nation.");
            
SetPlayerCriminal(playerid,255"Tentativa de Roubo a Ammu Nation");
            
roubando[playerid] = 1;
            
ProvocoLoja2[playerid] = 1;
            
rouboloja2 1;
            
temporouboloja2 1;
            
Controle(playerid0);
            
SetPlayerPos(playerid294.8029,-57.8727,1001.5156);
            
SetPlayerFacingAngle(playerid,356.5900);
            
SetTimer("Aroubo4"2200000);
            
tempoloja2 SetTimerEx("RouboLoja2"400000"i"playerid);
             
SetTimerEx("AnimRouboAmmu"9000"i"playerid);
            
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010);
               
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000);
            
SetTimerEx("AcabarMochila"1200000"i"playerid);
            return 
true;
        }
        
//========== BINCO ==================================================================================
            
else if(PlayerToPoint(2.0,playerid,211.3917,-96.1839,1005.2578))
            {
            if(
roubobinco == 1)
            {
                   
SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nessa Loja de Roupas.");
                return 
true;
            }
            if(
temporoubobinco == 1)
            {
                   
SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Binco espere 3 minutos para roubar de novo !");
                return 
true;
            }
            
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
            
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Binco{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
            
format(stringsizeof(string), "%s e os %s estгo tentando roubar a Binco ! ID:[%d]"playernameNomeORG(playerid) , playerid);
            
SendClientMessageToAll(GetPlayerColor(playerid), string);
            
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar a Binco.");
            
SetPlayerCriminal(playerid,255"Tentativa de Roubo a Loja de Roupas");
            
roubando[playerid] = 1;
            
ProvocoBinco[playerid] = 1;
            
roubobinco 1;
            
temporoubobinco 1;
            
Controle(playerid0);
            
SetPlayerPos(playerid211.3817,-96.1272,1005.2578);
            
SetPlayerFacingAngle(playerid,2.5667);
            
SetTimer("Aroubo6"2200000);
            
tempobinco SetTimerEx("RouboBinco"400000"i"playerid);
             
SetTimerEx("AnimRouboBinco"9000"i"playerid);
            
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010);
               
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000);
            
SetTimerEx("AcabarMochila"1200000"i"playerid);
            return 
true;
        }
        
//================= ZIP =========================================================================
              
else if(PlayerToPoint(2.0,playerid,162.1060,-79.8251,1001.8047))
            {
            if(
roubozip == 1)
            {
                   
SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nessa Loja de Roupas.");
                return 
true;
            }
            if(
temporoubozip == 1)
            {
                   
SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Zip espere 3 minutos para roubar de novo !");
                return 
true;
            }
            
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
            
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Zip{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
            
format(stringsizeof(string), "%s e os %s estгo tentando roubar a Zip ! ID:[%d]"playernameNomeORG(playerid) , playerid);
            
SendClientMessageToAll(GetPlayerColor(playerid), string);
            
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar a Zip.");
            
SetPlayerCriminal(playerid,255"Tentativa de Roubo a Loja de Roupas");
            
roubando[playerid] = 1;
            
ProvocoZip[playerid] = 1;
            
roubozip 1;
            
temporoubozip 1;
            
Controle(playerid0);
            
SetPlayerPos(playerid162.1254,-79.7925,1001.8047);
            
SetPlayerFacingAngle(playerid,269.5058);
            
SetTimer("Aroubo7"2200000);
            
tempozip SetTimerEx("RouboZip"400000"i"playerid);
             
SetTimerEx("AnimRouboZip"9000"i"playerid);
            
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010);
               
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000);
            
SetTimerEx("AcabarMochila"1200000"i"playerid);
            return 
true;
        }
     
//================= VICTIM =========================================================================
              
else if(PlayerToPoint(2.0,playerid,205.4029,-11.5629,1005.2109))
            {
            if(
roubovictim == 1)
            {
                   
SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nessa Loja de Roupas.");
                return 
true;
            }
            if(
temporoubovictim == 1)
            {
                   
SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Victim espere 3 minutos para roubar de novo !");
                return 
true;
            }
            
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
            
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Victim{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
            
format(stringsizeof(string), "%s e os %s estгo tentando roubar a Victim ! ID:[%d]"playernameNomeORG(playerid) , playerid);
            
SendClientMessageToAll(GetPlayerColor(playerid), string);
            
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar a Victim.");
            
SetPlayerCriminal(playerid,255"Tentativa de Roubo a Loja de Roupas");
            
roubando[playerid] = 1;
            
ProvocoVictim[playerid] = 1;
            
roubovictim 1;
            
temporoubovictim 1;
            
Controle(playerid0);
            
SetPlayerPos(playerid205.4959,-11.5585,1005.2109);
            
SetPlayerFacingAngle(playerid,90.3009);
            
SetTimer("Aroubo8"2200000);
            
SetTimerEx("AnimRouboVictim"9000"i"playerid);
            
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010);
               
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000);
            
SetTimerEx("AcabarMochila"1200000"i"playerid);
            return 
true;
        }
            else
            {
                
SendClientMessage(playeridCOLOR_GREY"Vocк nгo esta em um local de assalto !");
                return 
true;
            }
        
//return true;
    

Reply
#4

Acrescente isso aki em cada local de roubo:
pawn Код:
WantedPoints[playerid]+=2;
e na parte do seu GM em q aparece Nick_Sobrenome conseguiram roubar o cofre do banco, vc add isso tmb.
pawn Код:
WantedPoints[playerid]+=2;
OBS: o Numero 2, й o nivel q o player ira pega de procura, caso queira mais, sу aumente.
Reply
#5

Gutierrez_zikaloko, Obrigado funcionou, tem como colocar para as pessoas que participam do roubo ganhar 6 estrelas tambйm. Igual a pessoa que dar o comando /roubo.
Reply
#6

Melhor vocк usar assim
PHP код:
SetPlayerWantedLevel(playerid, (GetPlayerWantedLevel(playerid), + 1)); // aн neste + 1 vai ser a cada roubo cometido vai adicionar 1 level de procura a mais... vocк pode edita-lo. 
Reply
#7

Como adiciono dinamite, tipo quando um a pessoa tiver a dinamite ele pode dar /roubar. Se puderem me ajudar agradeзo, e Migueias Obrigado pela ajuda tambйm.
Reply
#8

Faзa uma verificaзгo utilizando o comparador If.

Exemplo:

pawn Код:
if(Dinamite[playerid] == true)
{
 // prossegue com o roubo.
}
     else
{
 // Manda mensagem falando que ele nгo tem uma dinamite.
}
Agora й so vocк ver qual a variбvel que identifica que ele tem ou nгo dinamite.
Reply
#9

Quote:
Originally Posted by escolano
Посмотреть сообщение
Gutierrez_zikaloko, Obrigado funcionou, tem como colocar para as pessoas que participam do roubo ganhar 6 estrelas tambйm. Igual a pessoa que dar o comando /roubo.
Tem sim, й sу postar estб parte aki do GM:
Nick_Sobrenome e os Nome da Org conseguiram roubar o cofre .......
Reply
#10

Outras Gangues e Terroristas nгo estгo ganhando o dinheiro e armas do roubo, sу os membros da gangue que deram /roubar. Alguйm sabe como resolver isso?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)