[ajuda] roubar
#1

eu queria saber, tipo eu to robando a prefeitura, com a minha gangue, eu qria colocar quando um cop matar quem roubou acabar o roubo entendem ?

pawn Код:
//=================[NOVO ROUBAR]================
    if(ProvocoBanco[playerid] == 1)
    {
        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);
        ProvocoBanco[playerid] = 0; roubando[playerid] = 0; roubobanco = 0; KillTimer(tempobanco); temporoubobanco = 0;
    }
    if(ProvocoLot[playerid] == 1)
    {
        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);
        ProvocoLot[playerid] = 0; roubando[playerid] = 0; roubolot = 0; KillTimer(tempolot); temporoubolot = 0;
    }
    if(ProvocoLoja1[playerid] == 1)
    {
        format(gstring, sizeof(gstring), "%s e os %s nгo conseguiram roubar o cofre da Loja de Armas 1! ID:[%d]", PlayerName(playerid), NomeORG(playerid) , playerid);
        SendClientMessageToAll(GetPlayerColor(playerid), gstring);
        ProvocoLoja1[playerid] = 0; roubando[playerid] = 0; rouboloja1 = 0; KillTimer(tempoloja1); temporouboloja1 = 0;
    }
    if(ProvocoLoja2[playerid] == 1)
    {
        format(gstring, sizeof(gstring), "%s e os %s nгo conseguiram roubar o cofre da Loja de Armas 2! ID:[%d]", PlayerName(playerid), NomeORG(playerid) , playerid);
        SendClientMessageToAll(GetPlayerColor(playerid), gstring);
        ProvocoLoja2[playerid] = 0; roubando[playerid] = 0; rouboloja2 = 0; KillTimer(tempoloja2); temporouboloja2 = 0;
    }
    if(ProvocoPrefe[playerid] == 1)
    {
        format(gstring, sizeof(gstring), "%s e os %s nгo conseguiram roubar o cofre da Prefeitura! ID:[%d]", PlayerName(playerid), NomeORG(playerid) , playerid);
        SendClientMessageToAll(GetPlayerColor(playerid), gstring);
        ProvocoPrefe[playerid] = 0; roubando[playerid] = 0; rouboprefe = 0; KillTimer(tempoprefe); temporouboprefe = 0;
    }
//=======================[FIM ROUBAR]========================
esse codigo fica na public onplayerdeath

se tiver outros comandos me falem pra eu postar dnv
Reply
#2

Seu codigo ja nгo estб setando roubando pra 0? ou seja o roubo para pelo que eu entendi '-'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)