17.08.2010, 17:19
Do you see anything wrong with this command?
pawn Код:
dcmd_opengate(playerid, params[])
{
#pragma unused params
if (PlayerToPoint(50.0, playerid, 1593.70690918, -1638.02673340, 12.91628456))
{
MoveObject(LSPD, 1593.70690918, -1638.02673340,12.91628456, 5.00);
SetTimer("closeLSPD", 10000, 0);
SendClientMessage(playerid, COLOR_RED, "[INFO] You are opening a gate it will close automaticly");
return 1;
}
else if(PlayerToPoint(50.0, playerid, 1141.51489258, -1213.32067871, 19.88671112))
{
MoveObject(LF, 1141.51489258, -1213.32067871, 19.88671112, 5.00);
SetTimer("closeLF", 10000, 0);
SendClientMessage(playerid, COLOR_RED, "[INFO] You are opening a gate it will close automaticly");
return 1;
}
return 0;
}