10.12.2018, 19:00
Код:
stock IsVehicleInObjectRangePoint(vehicleid,objectid,Float:x,Float:y,Float:z) { GetVehiclePos(vehicleid,Float:x,Float:y,Float:z); GetObjectPos(objectid,Float:x,Float:y,Float:z); } /*public function*/{ new Float:x,Float:y,Float:z; IsVehicleInObjectRangePoint(vehicleid,objectid,Float:x + 1 ^ - 1,Float:y + 1 ^ - 1,Float:z + 1 ^ - 1); { MoveObject(/*smashbar*/,Float:x,Float:Y,Float:z + 1); if(IsObjectMoving(objectid) && StopObject(/*smashbar*/) { MoveObject(/*smashbar*/,Float:x,Float:y,Float:z - 1); } } return 0; //not certain }