#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; } |
new armadilha[4];
new Pickups[4];
Pickups[0]
Pickups[1]
Pickups[2]
Pickups[3]
C:\Users\Marlon\Desktop\Expiriongames\filterscript s\armadilha2.pwn(3 : warning 202: number of arguments does not match definition C:\Users\Marlon\Desktop\Expiriongames\filterscript s\armadilha2.pwn(39) : warning 202: number of arguments does not match definition C:\Users\Marlon\Desktop\Expiriongames\filterscript s\armadilha2.pwn(40) : warning 202: number of arguments does not match definition C:\Users\Marlon\Desktop\Expiriongames\filterscript s\armadilha2.pwn(41) : warning 202: number of arguments does not match definition C:\Users\Marlon\Desktop\Expiriongames\filterscript s\armadilha2.pwn(52) : warning 202: number of arguments does not match definition C:\Users\Marlon\Desktop\Expiriongames\filterscript s\armadilha2.pwn(53) : warning 202: number of arguments does not match definition C:\Users\Marlon\Desktop\Expiriongames\filterscript s\armadilha2.pwn(54) : warning 202: number of arguments does not match definition C:\Users\Marlon\Desktop\Expiriongames\filterscript s\armadilha2.pwn(55) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 8 Warnings. |
#include <a_samp>
#define FILTERSCRIPT2
#if defined FILTERSCRIPT2
new kArmadilha[ 4 ];
new kAr;
public OnFilterScriptInit()
{
kArmadilha[ 0 ] = CreateObject( 971, 1483.99035645, -1688.18383789, 6.69180536, 0.00000000, 0.00000000,270.00000000 ); //object(subwaygate) (1)
kArmadilha[ 1 ] = CreateObject( 971, 1479.60742188, -1683.69921875, 6.69179153, 0.00000000, 0.00000000,0.00000000 ); //object(subwaygate) (2)
kArmadilha[ 2 ] = CreateObject( 971, 1475.35778809, -1688.19116211, 6.59178734, 0.00000000, 0.00000000, 270.00000000 ); //object(subwaygate) (3)
kArmadilha[ 3 ] = CreateObject( 971, 1479.76416016, -1692.57788086, 6.56682682, 0.00000000, 0.00000000, 180.00000000 ); //object(subwaygate) (4)
kArm = CreatePickup( 1242, 2, 1480.4371337891, -1687.8758544922, 13.471883773804 );
return true;
}
public OnFilterScriptExit() { return true; }
#else
#endif
public OnPlayerCommandText( playerid, cmdtext[] )
{
if( !strcmp(cmdtext, "/armadilha2", true ) )
{
MoveObject( kArmadilha[ 0 ], 1483.99035645, -1688.18383789, 6.69180536, 3 );
MoveObject( kArmadilha[ 1 ], 1479.60742188, -1683.69921875, 6.69179153, 3 );
MoveObject( kArmadilha[ 2 ], 1475.35778809, -1688.19116211, 6.59178734, 3 );
MoveObject( kArmadilha[ 3 ], 1479.76416016, -1692.57788086, 6.56682682, 3 );
SendClientMessage( playerid, 0x0000000F, "Armadilha desarmada" );
return true;
}
return false;
}
public OnPlayerPickUpPickup( playerid, pickupid )
{
if( pickupid == kArm )
{
MoveObject( kArmadilha[ 0 ], 1483.99035645, -1688.18383789, 16.566783905029, 3 );
MoveObject( kArmadilha[ 1 ], 1479.60742188, -1683.69921875, 16.566783905029, 3 );
MoveObject( kArmadilha[ 2 ], 1475.35778809, -1688.19116211, 16.566783905029, 3 );
MoveObject( kArmadilha[ 3 ], 1479.76416016, -1692.57788086, 16.566783905029, 3 );
return true;
}
return true;
}
#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;
}