/*              <<Команды for 0.3c by Justo_O>>
Command created by Justo_O
Filterscript made by Justo_O
*/
#include <a_samp>
#include <a_objects>

#define BLUE 0x0000BBAA

#define FILTERSCRIPT
new cmd[250];
new playerid;
public OnFilterScriptInit()
#pragma tabsize 0
{
	print("___________________________________");
	print("Load FS Command only 0.3c by Justo_O");
	print("___________________________________");
//========================[only 0.3c]=============================================
new engine,lights,alarm,doors,bonnet,boot,objective;
        if(strcmp(cmd, "/startengine",true) == 0)
     {
              new vid = GetPlayerVehicleID(playerid);
              if(vid != INVALID_VEHICLE_ID)
        {
                  GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
                  SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
              }
              return 1;
     }
     if(strcmp(cmd, "/stopengine",true) == 0)
     {
              new vid = GetPlayerVehicleID(playerid);
              if(vid != INVALID_VEHICLE_ID)
        {
                  GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
                  SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
              }
     }
     if(strcmp(cmd, "/lighton",true) == 0)
     {
              new vid = GetPlayerVehicleID(playerid);
              if(vid != INVALID_VEHICLE_ID)
        {
                  GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
                  SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
              }
              return 1;
     }
     if(strcmp(cmd, "/lightoff",true) == 0)
     {
              new vid = GetPlayerVehicleID(playerid);
              if(vid != INVALID_VEHICLE_ID)
        {
                  GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
                  SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
              }
     }
     if(strcmp(cmd, "/alarmon",true) == 0)
     {
              new vid = GetPlayerVehicleID(playerid);
              if(vid != INVALID_VEHICLE_ID)
        {
                  GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
                  SetVehicleParamsEx(vid,engine,lights,VEHICLE_PARAMS_ON,doors,bonnet,boot,objective);
              }
              return 1;
     }
     if(strcmp(cmd, "/alarmoff",true) == 0)
     {
              new vid = GetPlayerVehicleID(playerid);
              if(vid != INVALID_VEHICLE_ID)
        {
                  GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
                  SetVehicleParamsEx(vid,engine,lights,VEHICLE_PARAMS_OFF,doors,bonnet,boot,objective);
              }
     }
     if(strcmp(cmd, "/bonneton",true) == 0)
     {
              new vid = GetPlayerVehicleID(playerid);
              if(vid != INVALID_VEHICLE_ID)
        {
                  GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
                  SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_ON,boot,objective);
              }
              return 1;
     }
     if(strcmp(cmd, "/bonnetmoff",true) == 0)
     {
              new vid = GetPlayerVehicleID(playerid);
              if(vid != INVALID_VEHICLE_ID)
        {
                  GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
                  SetVehicleParamsEx(vid,engine,lights,alarm,doors,VEHICLE_PARAMS_OFF,boot,objective);
              }
     }
     if(strcmp(cmd, "/booton",true) == 0)
     {
              new vid = GetPlayerVehicleID(playerid);
              if(vid != INVALID_VEHICLE_ID)
        {
                  GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
                  SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_ON,objective);
              }
              return 1;
     }
     if(strcmp(cmd, "/bootoff",true) == 0)
     {
              new vid = GetPlayerVehicleID(playerid);
              if(vid != INVALID_VEHICLE_ID)
        {
                  GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
                  SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,VEHICLE_PARAMS_OFF,objective);
              }
     }
     if(strcmp(cmd, "/objectiveon",true) == 0)
     {
              new vid = GetPlayerVehicleID(playerid);
              if(vid != INVALID_VEHICLE_ID)
        {
                  GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
                  SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,VEHICLE_PARAMS_ON);
              }
              return 1;
     }
     if(strcmp(cmd, "/objectiveff",true) == 0)
     {
              new vid = GetPlayerVehicleID(playerid);
              if(vid != INVALID_VEHICLE_ID)
        {
                  GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
                  SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,VEHICLE_PARAMS_OFF);
              }
     }
//======================[only 0.3c]========================================
return 1;
}

public OnFilterScriptExit()
{
	return 1;
}
