Quote:
Originally Posted by matheus_alcapone
Esta faltando return no comando.
|
Postei sу uma parte do comando! Aн vai todo ele.
pawn Код:
if (strcmp("/abrirporta", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0,1487.00000000,-1762.42504883,3284.23608398)) //Porta 0
{
MoveObject(door0,1487.00000000,-1762.42504883+1.25,3284.23608398,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "Porta 0 aberta!");
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1483.79003906,-1762.42504883,3284.23608398)) //Porta 1
{
MoveObject(door1,1483.79003906,-1762.42504883+1.25,3284.23608398,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "Porta 1 aberta!");
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1479.85998535,-1758.31994629,3284.23388672)) //Porta 2
{
MoveObject(door2,1479.85998535-1.25,-1758.31994629,3284.23388672,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "Porta 2 aberta!");
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1467.06701660,-1758.31994629,3284.23388672)) //Porta 3
{
MoveObject(door3,1467.06701660-1.25,-1758.31994629,3284.23388672,0.50);
SendClientMessage(playerid, 0xFFFFFFFF, "Porta 3 aberta!");
}
return 1;
}