13.08.2010, 20:37
pawn Код:
dcmd_opengate(playerid, params[])
{
#pragma unused params
if (IsPlayerInRangeOfPoint(playerid, 5.0,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(IsPlayerInRangeOfPoint(playerid, 5.0,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;
}