Rotating smashbar
#3

Код:
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
}
Still try.
Reply


Messages In This Thread
Rotating smashbar - by m4karow - 01.12.2018, 18:21
Re: Rotating smashbar - by m4karow - 10.12.2018, 18:01
Re: Rotating smashbar - by Bombaci - 10.12.2018, 19:00
Re: Rotating smashbar - by m4karow - 12.12.2018, 16:07
Re: Rotating smashbar - by David (Sabljak) - 12.12.2018, 16:31
Re: Rotating smashbar - by Bombaci - 12.12.2018, 17:59
Re: Rotating smashbar - by Bombaci - 12.12.2018, 18:56
Re: Rotating smashbar - by ReshiramZekrom - 13.12.2018, 08:47
Re: Rotating smashbar - by Bombaci - 13.12.2018, 12:26
Re: Rotating smashbar - by m4karow - 13.12.2018, 15:49
Re: Rotating smashbar - by Threshold - 13.12.2018, 15:59
Re: Rotating smashbar - by m4karow - 13.12.2018, 16:19
Re: Rotating smashbar - by Threshold - 14.12.2018, 01:40
Re: Rotating smashbar - by m4karow - 14.12.2018, 06:31
Re: Rotating smashbar - by Bombaci - 14.12.2018, 15:02
Re: Rotating smashbar - by NaS - 14.12.2018, 17:26
Re: Rotating smashbar - by m4karow - 14.12.2018, 18:38
Re: Rotating smashbar - by NaS - 14.12.2018, 19:38
Re: Rotating smashbar - by m4karow - 15.12.2018, 05:30
Re: Rotating smashbar - by Threshold - 15.12.2018, 08:38

Forum Jump:


Users browsing this thread: 2 Guest(s)