ajuda (Roubo Animlist)
#1

Olб Galera, Sou o Petrick Schoba, Gostaria de ajuda de vocкs, Motivo: Quando eu dou /roubar na lotйrica a mochila de dinheiro fica escura e quando o tempo do roubo passa o animlist continua roubando lб, gostaria que vcs me ajuda-se porfavor.
PHP код:
SendClientMessageToAll(COLOR_RED"{FF8C00}*(------------------------ {7FFFD4}Atenзгo: Tentativa de Roubo ------------------------)");
            
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
            
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.");
            
ApplyAnimation(playerid"BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
            
SetPlayerCriminal(playerid,255"Tentativa de Roubo a Lotйrica");
            
roubando[playerid] = 1;
            
ProvocoLot[playerid] = 1;
            
roubolot 1;
            
temporoubolot 1;
            
SetTimer("Aroubo"2200000);
            
tempolot SetTimerEx("RouboLot"400000"i"playerid);
            return 
1
Reply
#2

o Anime ainda fica lб? use

ClearAnimations
Reply
#3

Quote:
Originally Posted by Digao
Посмотреть сообщение
o Anime ainda fica lб? use

ClearAnimations
Mais eu nгo sei onde coloca r

" ClearAnimations "
Reply
#4

Coloca na Public onde o cara consegue roubar ou nгo a loterica

Este foro requiere que tъ esperes 120 segundos entre mensajes. Por favor intenta de nuevo en 87 segundos.
Reply
#5

Quote:
Originally Posted by Digao
Посмотреть сообщение
Coloca na Public onde o cara consegue roubar ou nгo a loterica

Este foro requiere que tъ esperes 120 segundos entre mensajes. Por favor intenta de nuevo en 87 segundos.
Mais Vocк Poderia me dizer qual й o nome ou onde eu acho йsta public ? Manda seu msn pramin pq to com hamachi , ai vocк pd me ajuda melhor.
Reply
#6

Vou mandar msn por PM,

mais creio que a public seja esta

pawn Код:
RouboLot
mande-a
Reply
#7

Quote:
Originally Posted by Digao
Посмотреть сообщение
Vou mandar msn por PM,

mais creio que a public seja esta

pawn Код:
RouboLot
mande-a
Sim й estб: public RouboLot(playerid)
Reply
#8

Conseguiu colocar? caso nгo consiga mande a public.

Este foro requiere que tъ esperes 120 segundos entre mensajes. Por favor intenta de nuevo en 13 segundos.
Reply
#9

Quote:
Originally Posted by Digao
Посмотреть сообщение
Conseguiu colocar? caso nгo consiga mande a public.

Este foro requiere que tъ esperes 120 segundos entre mensajes. Por favor intenta de nuevo en 13 segundos.
Olha йsta й a public ?:

PHP код:
public RouboLot(playerid)
{
    
KillTimer(tempolot);
    if(!
PlayerToPoint(8.0,playerid,820.6042,8.3990,1004.1962))
    {
        
format(gstringsizeof(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(playeridCOLOR_GREY"Vocк nгo estб no cofre da Lotйrica.");
        
ProvocoLot[playerid] = 0roubando[playerid] = 0roubolot 0KillTimer(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(gstringsizeof(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] = 0roubolot 0ProvocoLot[playerid] = 0;
            }
            if (
PlayerInfo[i][pLider] == var032 || PlayerInfo[i][pMembro] == var032)
            {
                
SetPlayerCriminal(i,255"Assalto a Lotйrica");
                
GivePlayerMoney(igrana);
                
format(gstringsizeof(gstring), "Vocк e os %s roubaram $%d do cofre da Lotйrica!",NomeORG(playerid), grana);
                
SendClientMessage(iCOLOR_YELLOWgstring);
            }
        }
    }
    return 
1;

Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)