Unmovable vehicle [REP++]
#9

Quote:
Originally Posted by Sawalha
Посмотреть сообщение
Oh, just forgot this:
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)
{
    if(vehicleid == 320)
    {
           new Float:X, Float:Y, Float:Z;
           GetVehiclePos(320, X, Y, Z);
           if(X != new_x || Y != new_y || Z != new_z) return 0;
     }
     return 1;
}
Try it
I tried something like this:
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)
{
    if(vehicleid == 285)
    {
           new Float:X, Float:Y, Float:Z;
           GetVehiclePos(285, X, Y, Z); // tried with another vehicle
           if(X != 1043.8596)
           {
                SetVehicleToRespawnEx(285);
           }
     }
}
But nothing happens , the car isn't respawning , doh ..
Any ideeas !? Thanks.
Reply


Messages In This Thread
Unmovable vehicle [REP++] - by buburuzu19 - 07.12.2014, 17:07
Re: Unmovable vehicle [REP++] - by Sawalha - 07.12.2014, 17:13
Re : Unmovable vehicle [REP++] - by ManuelNeuer - 07.12.2014, 17:16
Re: Unmovable vehicle [REP++] - by buburuzu19 - 07.12.2014, 17:20
Re: Unmovable vehicle [REP++] - by Sawalha - 07.12.2014, 17:33
Re: Unmovable vehicle [REP++] - by M4D - 07.12.2014, 17:35
Re: Unmovable vehicle [REP++] - by buburuzu19 - 07.12.2014, 17:55
Re: Unmovable vehicle [REP++] - by buburuzu19 - 07.12.2014, 18:17
Re: Unmovable vehicle [REP++] - by buburuzu19 - 08.12.2014, 09:58
Re: Unmovable vehicle [REP++] - by buburuzu19 - 08.12.2014, 10:03

Forum Jump:


Users browsing this thread: 2 Guest(s)