[Ajuda] Outros Locais para roubo
#3

Vocк terб que copiar e colar todo esse processo aqui, mas terб que adaptб-lo ao seu gosto. Melhor, adaptб-lo por conta do outro local
pawn Код:
if(PlayerToPoint(1.0,playerid, 354.9906,172.3177,1008.3794))
            {
                if(JaEstaRoubando[playerid] == 1)
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "Vocк ja estб roubando!");
                    return true;
                }
                if(storeexit[playerid] == 1717)// Pref LS (Commerce)
                {
                    if(TemGenteRoubandoLS == 1)
                    {
                        SendClientMessage(playerid, COLOR_GRAD1, "Alguem ja roubou este local recentemente");
                        return true;
                    }
                    SetTimer("RouboPrefLS", 400000, 0);
                    SetPlayerPos(playerid, 354.9906,172.3177,1008.3794);
                    SetPlayerFacingAngle(playerid, 93.9411);
                    JaEstaRoubando[playerid] = 1;
                    ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",1.0,1,0,0,0,0);
                    SetTimerEx("AnimRoubo", 500, 0, "i", playerid);
                    temporoubo[playerid] = SetTimerEx("RouboPref", 60000, 0, "i", playerid);
                    TemGenteRoubandoLS = 1;
                    format(string, sizeof(string), "[ROUBO] %s (ID: %d) estб tentando roubar o cofre da prefeitura de (Commerce - LS)!", PlayerName(playerid), playerid);
                    SendClientMessageToAll(COLOR_DBLUE, string);
                    SendClientMessage(playerid, COLOR_YELLOW, "Espere 1 minuto para roubar. USE: /parar para cancelar!");
                    SetPlayerCriminal(playerid,255,"tentativa de roubo");
                    ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",1.0,1,0,0,0,0);
                    return true;
                }
                if(storeexit[playerid] == 1718)//pref SF (Country Club)
                {
                    if(TemGenteRoubandoSF == 1)
                    {
                        SendClientMessage(playerid, COLOR_GRAD1, "Alguem ja roubou este local recentemente");
                        return true;
                    }
                    SetTimer("RouboPrefSF", 400000, 0);
                    SetPlayerPos(playerid, 354.9906,172.3177,1008.3794);
                    SetPlayerFacingAngle(playerid, 93.9411);
                    ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",1.0,1,0,0,0,0);
                    SetTimerEx("AnimRoubo", 500, 0, "i", playerid);
                    temporoubo[playerid] = SetTimerEx("RouboPref", 60000, 0, "i", playerid);
                    TemGenteRoubandoSF = 1;
                    JaEstaRoubando[playerid] = 1;
                    format(string, sizeof(string), "[ROUBO] %s (ID: %d) estб tentando roubar o cofre da prefeitura de (Country Club - SF)!", PlayerName(playerid), playerid);
                    SendClientMessageToAll(COLOR_DBLUE, string);
                    SendClientMessage(playerid, COLOR_YELLOW, "Espere 1 minuto para roubar. USE: /parar para cancelar!");
                    SetPlayerCriminal(playerid,255,"tentativa de roubo");
                    ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",1.0,1,0,0,0,0);
                    return true;
                }
                if(storeexit[playerid] == 1719)//pref SF (Downtown)
                {
                    if(TemGenteRoubandoSF2 == 1)
                    {
                        SendClientMessage(playerid, COLOR_GRAD1, "Alguem ja roubou este local recentemente");
                        return true;
                    }
                    SetTimer("RouboPrefSF2", 400000, 0);
                    SetPlayerPos(playerid, 354.9906,172.3177,1008.3794);
                    SetPlayerFacingAngle(playerid, 93.9411);
                    ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",1.0,1,0,0,0,0);
                    SetTimerEx("AnimRoubo", 500, 0, "i", playerid);
                    temporoubo[playerid] = SetTimerEx("RouboPref", 60000, 0, "i", playerid);
                    TemGenteRoubandoSF2 = 1;
                    JaEstaRoubando[playerid] = 1;
                    format(string, sizeof(string), "[ROUBO] %s (ID: %d) estб tentando roubar o cofre da prefeitura de (Downtown - SF)!", PlayerName(playerid), playerid);
                    SendClientMessageToAll(COLOR_DBLUE, string);
                    SendClientMessage(playerid, COLOR_YELLOW, "Espere 1 minuto para roubar. USE: /parar para cancelar!");
                    SetPlayerCriminal(playerid,255,"tentativa de roubo");
                    ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",1.0,1,0,0,0,0);
                    return true;
                }
                else// Pref LS (East Beach)
                {
                    if(TemGenteRoubandoLS2 == 1)
                    {
                        SendClientMessage(playerid, COLOR_GRAD1, "Alguem ja roubou este local recentemente");
                        return true;
                    }
                    SetTimer("RouboPrefLS2", 400000, 0);
                    SetPlayerPos(playerid, 354.9906,172.3177,1008.3794);
                    SetPlayerFacingAngle(playerid, 93.9411);
                    ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",1.0,1,0,0,0,0);
                    SetTimerEx("AnimRoubo", 500, 0, "i", playerid);
                    temporoubo[playerid] = SetTimerEx("RouboPref", 60000, 0, "i", playerid);
                    TemGenteRoubandoLS2 = 1;
                    JaEstaRoubando[playerid] = 1;
                    format(string, sizeof(string), "[ROUBO] %s (ID: %d) estб tentando roubar o cofre da prefeitura de (East Beach - LS)!", PlayerName(playerid), playerid);
                    SendClientMessageToAll(COLOR_DBLUE, string);
                    SendClientMessage(playerid, COLOR_YELLOW, "Espere 1 minuto para roubar. USE: /parar para cancelar!");
                    SetPlayerCriminal(playerid,255,"tentativa de roubo");
                    ApplyAnimation(playerid,"ROB_BANK","CAT_Safe_Rob",1.0,1,0,0,0,0);
                    return true;
                }
            }
Reply


Messages In This Thread
Outros Locais para roubo - by Kirikage - 29.10.2012, 05:42
Re: Outros Locais para roubo - by Bruno Bastos - 29.10.2012, 06:01
Re: Outros Locais para roubo - by Rodney Francalim - 29.10.2012, 12:24

Forum Jump:


Users browsing this thread: 1 Guest(s)