OnPlayerEnterVehicle
#10

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        new vehicleid = GetPlayerVehicleID(playerid);
        new model = GetVehicleModel(vehicleid);
       
        switch(model)
        {
            case 481, 509, 510://Bikes, add more if you wish..
            {
                new engine, lights, alarm, doors, bonnet, boot, objective;
                GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
                SetVehicleParamsEx(vehicleid, VEHICLE_PARAMS_ON, lights, alarm, doors, bonnet, boot, objective);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
OnPlayerEnterVehicle - by SoFahim - 23.07.2015, 16:42
Re: OnPlayerEnterVehicle - by xVIP3Rx - 23.07.2015, 16:43
Re: OnPlayerEnterVehicle - by SoFahim - 23.07.2015, 16:47
Re: OnPlayerEnterVehicle - by xVIP3Rx - 23.07.2015, 16:49
Re: OnPlayerEnterVehicle - by SoFahim - 23.07.2015, 16:50
Re: OnPlayerEnterVehicle - by xVIP3Rx - 23.07.2015, 16:52
Re: OnPlayerEnterVehicle - by SoFahim - 23.07.2015, 16:57
Re: OnPlayerEnterVehicle - by xVIP3Rx - 23.07.2015, 17:32
Re: OnPlayerEnterVehicle - by SoFahim - 23.07.2015, 18:00
Re: OnPlayerEnterVehicle - by xVIP3Rx - 23.07.2015, 18:06

Forum Jump:


Users browsing this thread: 1 Guest(s)