IsPlayerInVehicle
#6

Try OnPlayerStateChange:

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER) // Player entered a vehicle as a driver
    {
        new vehicleid = GetPlayerVehicleID(playerid);
        if(vehicleid >= 596 || vehicleid <= 599) return SetPlayerWantedLevel(playerid, 4);
    }
    return 1;
}
I don't see why the first method shouldn't work, are you sure you're in vehicle ID's 596, 597, 598 and/or 599? Try that anyway from above.
Reply


Messages In This Thread
IsPlayerInVehicle - by AnonScripter - 23.09.2013, 20:45
Re: IsPlayerInVehicle - by DanishHaq - 23.09.2013, 20:47
Re: IsPlayerInVehicle - by AnonScripter - 23.09.2013, 20:54
Re: IsPlayerInVehicle - by DanishHaq - 23.09.2013, 20:56
Re: IsPlayerInVehicle - by AnonScripter - 23.09.2013, 21:09
Re: IsPlayerInVehicle - by DanishHaq - 23.09.2013, 21:12
Re: IsPlayerInVehicle - by AnonScripter - 23.09.2013, 21:19
Re: IsPlayerInVehicle - by Konstantinos - 23.09.2013, 21:44
Re: IsPlayerInVehicle - by AnonScripter - 23.09.2013, 22:18
Re: IsPlayerInVehicle - by PT - 23.09.2013, 22:47

Forum Jump:


Users browsing this thread: 1 Guest(s)