Combining Commands
#3

Quote:
Originally Posted by DaRk_RaiN
Посмотреть сообщение
pawn Код:
CMD:e(playerid, params[])
{
        if(GetPlayerState(playerid) != 2)return SendClientMessage(playerid, GREY, "You can't start a started car.");
        new vehicle = GetPlayerVehicleID(playerid);
        if(Engine[vehicle] == 0)
        {
            new engine, lights, alarm, doors, bonnet, boot, objective;
            GetVehicleParamsEx(vehicle, engine, lights, alarm, doors, bonnet, boot, objective);
            Engine[vehicle] = 1;
            SetVehicleParamsEx(vehicle, 1, lights, alarm, doors, bonnet, boot, 0);
        }
        else if(Engine[vehicle] == 1)
        {
            new engine, lights, alarm, doors, bonnet, boot, objective;
            Engine[vehicle] = 0;
            GetVehicleParamsEx(vehicle, engine, lights, alarm, doors, bonnet, boot, objective);
            SetVehicleParamsEx(vehicle, 0, lights, alarm, doors, bonnet, boot, 0);
        }
    return 1;
}
Thank you

Do you perhaps know how to make it so if you /hotwire you can't /e?
Reply


Messages In This Thread
Combining Commands - by xXRealLegitXx - 15.02.2013, 08:18
Re: Combining Commands - by DaRk_RaiN - 15.02.2013, 08:39
Re: Combining Commands - by xXRealLegitXx - 15.02.2013, 08:49
Re: Combining Commands - by DaRk_RaiN - 15.02.2013, 09:14
Re: Combining Commands - by xXRealLegitXx - 15.02.2013, 09:36
Re: Combining Commands - by xXRealLegitXx - 15.02.2013, 09:40
Re: Combining Commands - by DaRk_RaiN - 15.02.2013, 09:40
Re: Combining Commands - by Da_Noob - 15.02.2013, 10:05
Re: Combining Commands - by xXRealLegitXx - 15.02.2013, 10:16
Re: Combining Commands - by xXRealLegitXx - 15.02.2013, 10:19

Forum Jump:


Users browsing this thread: 3 Guest(s)