[AJUDA] fis um codigo ( meu ) mais n ta funfando
#9

Funcionando 100% testado e aprovado pelo Seu Madruga =D
pawn Код:
#include <a_samp>
#define FILTERSCRIPT

new Armadilha[5];

public OnFilterScriptInit()
{
    print("Armadilha Carregada");
    Armadilha[0] = CreatePickup(1242, 2, 1480.3641,-1687.7157,14.0469);
    Armadilha[1] = CreateObject(971, 1483.99035645, -1688.18383789, 6.69180536, 0.00000000, 0.00000000,270.00000000);
    Armadilha[2] = CreateObject(971, 1479.60742188, -1683.69921875, 6.69179153, 0.00000000, 0.00000000,0.00000000);
    Armadilha[3] = CreateObject(971, 1475.35778809, -1688.19116211, 6.59178734, 0.00000000, 0.00000000, 270.00000000);
    Armadilha[4] = CreateObject(971, 1479.76416016, -1692.57788086, 6.56682682, 0.00000000, 0.00000000, 180.00000000);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, "/Armadilha2", true)==0)
    {
        MoveObject (Armadilha[1],1483.99035645, -1688.18383789, 6.69180536,5.0);
        MoveObject (Armadilha[2],1479.60742188, -1683.69921875, 6.69179153,5.0);
        MoveObject (Armadilha[3],1475.35778809, -1688.19116211, 6.59178734,5.0);
        MoveObject (Armadilha[4],1479.76416016, -1692.57788086, 6.56682682,5.0);
        SendClientMessage(playerid, 0x0000000F, "Armadilha desarmada");
        return 1;
    }
    return 0;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == Armadilha[0])
    {
        MoveObject (Armadilha[1],1483.99035645, -1688.18383789, 16.566783905029,5.0);
        MoveObject (Armadilha[2],1479.60742188, -1683.69921875, 16.566783905029,5.0);
        MoveObject (Armadilha[3],1475.35778809, -1688.19116211, 16.566783905029,5.0);
        MoveObject (Armadilha[4],1479.76416016, -1692.57788086, 16.566783905029,5.0);
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)