SA-MP Forums Archive
OnPlayerEnterVehicle problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerEnterVehicle problem (/showthread.php?tid=419574)



OnPlayerEnterVehicle problem - JustLuca - 01.03.2013

pawn Код:
if(DynamicCars[vehicleid][Chiusa] == 1)
    {
        SendClientMessage(playerid,-1,"[Portiere:] Il veicolo и chiuso.");
        new engine,lights,alarm,doors,bonnet,boot,objective;
        GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
        if(DynamicCars[vehicleid][Antifurto] == 1)
        {
            SetVehicleParamsEx(vehicleid,engine,lights,1,1,bonnet,boot,objective);
        }
        else
        {
            SetVehicleParamsEx(vehicleid,engine,lights,alarm,1,bonnet,boot,objective);
        }
        return 1;
    }
Why it works only when I press G and dont when I press F?
Its an annoying problem


Re: OnPlayerEnterVehicle problem - Bakr - 01.03.2013

Do you have any other code within that callback? Perhaps it is only checking if the person is a passenger.


Re: OnPlayerEnterVehicle problem - JustLuca - 04.03.2013

No, it doesn't.

The script is in the top of the OnPlayerEnterVehicle.