Easy Engine system
#7

pawn Код:
CMD:engineon(playerid, params)
{
    if(IsPlayerInAnyVehicle(playerid))
   {
    new engine, lights, alarm, doors, bonnet, boot, objective, vehicleid = GetPlayerVehicleID(playerid);  
    GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
    if( engine = 0)
    {
    SetVehicleParamsEx(vehicleid, 1, lights, alarm, doors, bonnet, boot, objective);
    }
    else return SendClientMessage(playerid, -1, "Your Vehicle's Engine Is Already On.");
    }
    else return SendClientMessage(playerid, -1, "You Need to Be In A Vehicle To Use This Command");
}
Reply


Messages In This Thread
Easy Engine system - by Jesper00 - 01.12.2013, 11:41
Re: Easy Engine system - by dannyk0ed - 01.12.2013, 11:42
Re: Easy Engine system - by Jesper00 - 01.12.2013, 11:50
Re: Easy Engine system - by Mitchy - 01.12.2013, 11:54
Re: Easy Engine system - by Jesper00 - 01.12.2013, 11:56
Re: Easy Engine system - by Mitchy - 01.12.2013, 11:59
Re: Easy Engine system - by newbie scripter - 01.12.2013, 12:02
Re: Easy Engine system - by Mitchy - 01.12.2013, 12:05
Re: Easy Engine system - by Jesper00 - 01.12.2013, 12:05

Forum Jump:


Users browsing this thread: 2 Guest(s)