OnPlayerEnterVehicle problem
#1

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
Reply
#2

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

No, it doesn't.

The script is in the top of the OnPlayerEnterVehicle.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)