Disable car moving, pushing
#5

pawn Код:
public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z, Float:vel_x, Float:vel_y, Float:vel_z)
{
        new Float: pos[3];
        GetTrunkPos(vehicleid, pos[0], pos[1], pos[2]);
        if(IsPlayerInRangeOfPoint(playerid, 4.5, pos[0], pos[1], pos[2]))
        {
                GetVehiclePos(vehicleid, pos[0], pos[1], pos[2]);
                SetVehiclePos(vehicleid, pos[2], pos[1], pos[2]);
        }
    return 1;
}
You can try doing something like this.
Reply


Messages In This Thread
Disable car moving, pushing - by bobsona - 04.01.2015, 14:15
Re: Disable car moving, pushing - by Sid_Alexander - 04.01.2015, 14:21
Re: Disable car moving, pushing - by Threshold - 04.01.2015, 15:19
Re: Disable car moving, pushing - by bobsona - 04.01.2015, 16:22
Re: Disable car moving, pushing - by Abagail - 04.01.2015, 16:24
Re: Disable car moving, pushing - by Lawbringer - 04.01.2015, 16:29
Re: Disable car moving, pushing - by bobsona - 04.01.2015, 16:42
Re: Disable car moving, pushing - by Threshold - 05.01.2015, 01:56
Re: Disable car moving, pushing - by Lordzy - 05.01.2015, 03:52

Forum Jump:


Users browsing this thread: 1 Guest(s)