ajuda (Roubo Animlist)
#10

Sim,

tente assim у:

pawn Код:
public RouboLot(playerid)
{
    KillTimer(tempolot);
    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);
        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;
        return 1;
    }
    ForPlayers(i)
    {
        new grana = 1000 + random(6000);
        if(PlayerToPoint(5.0,i,820.6042,8.3990,1004.1962))
        {
            new var032=0;
            if (PlayerInfo[playerid][pLider] != 0) { var032 = PlayerInfo[playerid][pLider]; }
            else if (PlayerInfo[playerid][pMembro] != 0) { var032 = PlayerInfo[playerid][pMembro]; }
            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;
            }
            if (PlayerInfo[i][pLider] == var032 || PlayerInfo[i][pMembro] == var032)
            {
                SetPlayerCriminal(i,255, "Assalto a Lotйrica");
                GivePlayerMoney(i, grana);
                format(gstring, sizeof(gstring), "Vocк e os %s roubaram $%d do cofre da Lotйrica!",NomeORG(playerid), grana);
                SendClientMessage(i, COLOR_YELLOW, gstring);
                ClearAnimations(i);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
ajuda (Roubo Animlist) - by Petrick™ - 16.08.2012, 18:52
Respuesta: ajuda (Roubo Animlist) - by Digao - 16.08.2012, 18:53
Re: Respuesta: ajuda (Roubo Animlist) - by Petrick™ - 16.08.2012, 18:55
Respuesta: ajuda (Roubo Animlist) - by Digao - 16.08.2012, 18:57
Re: Respuesta: ajuda (Roubo Animlist) - by Petrick™ - 16.08.2012, 18:59
Respuesta: ajuda (Roubo Animlist) - by Digao - 16.08.2012, 19:04
Re: Respuesta: ajuda (Roubo Animlist) - by Petrick™ - 16.08.2012, 19:08
Respuesta: ajuda (Roubo Animlist) - by Digao - 16.08.2012, 19:10
Re: Respuesta: ajuda (Roubo Animlist) - by Petrick™ - 16.08.2012, 19:13
Respuesta: ajuda (Roubo Animlist) - by Digao - 16.08.2012, 19:18

Forum Jump:


Users browsing this thread: 2 Guest(s)