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

pessoal

fis zuma armadilha

ela ta na frente da dp na prassinha

e um filter scripiti

eu vi um negosso desse tentei faser mais n ta funcionando

alguem pode me falar onde ta o erro pra eu mesmo concerta ?

Quote:

#include <a_samp>
#define FILTERSCRIPT2
#if defined FILTERSCRIPT2
new armadilha1;
new armadilha2;
new armadilha3;
new armadilha4;
new Armadilha;

public OnFilterScriptInit()
{
armadilha1 = CreateObject(971, 1483.99035645, -1688.18383789, 6.69180536, 0.00000000, 0.00000000,270.00000000); //object(subwaygate) (1)
armadilha2 = CreateObject(971, 1479.60742188, -1683.69921875, 6.69179153, 0.00000000, 0.00000000,0.00000000); //object(subwaygate) (2)
armadilha3 = CreateObject(971, 1475.35778809, -1688.19116211, 6.59178734, 0.00000000, 0.00000000, 270.00000000); //object(subwaygate) (3)
armadilha4 = CreateObject(971, 1479.76416016, -1692.57788086, 6.56682682, 0.00000000, 0.00000000, 180.00000000); //object(subwaygate) (4)
Armadilha = CreatePickup(1242, 2, 1480.4371337891, -1687.8758544922, 13.471883773804);
Armadilha = CreatePickup(1242, 2, 1480.4371337891, -1687.8758544922, 13.471883773804);
Armadilha = CreatePickup(1242, 2, 1480.4371337891, -1687.8758544922, 13.471883773804);
Armadilha = CreatePickup(1242, 2, 1480.4371337891, -1687.8758544922, 13.471883773804);


return 1;
}



public OnFilterScriptExit()
{
return 1;
}

#else
#endif


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

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == Armadilha)
{
MoveObject (armadilha1,1483.99035645, -1688.18383789, 16.566783905029);
MoveObject (armadilha2,1479.60742188, -1683.69921875, 16.566783905029);
MoveObject (armadilha3,1475.35778809, -1688.19116211, 16.566783905029);
MoveObject (armadilha4,1479.76416016, -1692.57788086, 16.566783905029);
return 1;
}
return 0;
}

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)