13.08.2010, 19:41
Hello, I made this with PlayerToPoint but it is not compiling.
pawn Код:
dcmd_opengate(playerid, params[])
{
{
#pragma unused params
if (PlayerToPoint(5.0, playerid, 1593.70690918, -1638.02673340,12.91628456))
MoveObject(LSPD, 1593.70690918, -1638.02673340,12.91628456, 2.00);
SetTimer("close", 7000, 0);//gate will be closed for 7 seconds
SendClientMessage(playerid, COLOR_WHITE ,"You are opening a Gate it will close in 7 seconds");
return 1;
}
else if(PlayerToPoint(5.0, playerid, 1415.57385254, -1652.72680664, 12.63281250))
{
MoveObject(LF, 1415.57385254, -1652.72680664, 12.63281250, 2.00);
SetTimer("closeLF", 7000, 0);
SendClientMessage(playerid, COLOR_WHITE ,"You are opening a Gate it will close in 7 seconds");
return 1;
}
return 1;
}