22.03.2010, 17:01
pawn Код:
if(strcmp("/lift", cmdtext, true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 50, -2464.9296875,1522.9167480469,27.570457458496))
{
if(lift == 0)
{
MoveObject(boatlift,-2464.9296875,1522.9167480469,27.570457458496, 2.0);
lift = 1;
}
else if(lift == 1)
{
MoveObject(boatlift, -2464.9296875,1522.9167480459,6.1990437507629, 2.0);
lift = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_BLUE, "You Are Not Close Enough To The Lift(San Fierro Freight Boat)");
}
return 1;
}