light1[GetPlayerVehicleID(playerid)] = CreateObject(19419,-0.0089111328, 0.273193359, 1.4037838, 0.0, 0.0, 96.0);
light2[GetPlayerVehicleID(playerid)] = CreateObject(19419,-0.0089111328, 0.273193359, 1.4037838, 0.0, 0.0, 96.0);
light3[GetPlayerVehicleID(playerid)] = CreateObject(19419,-0.0089111328, 0.273193359, 1.4037838, 0.0, 0.0, 96.0);
light4[GetPlayerVehicleID(playerid)] = CreateObject(19419,-0.0089111328, 0.273193359, 1.4037838, 0.0, 0.0, 96.0);
light5[GetPlayerVehicleID(playerid)] = CreateObject(19419,-0.0089111328, 0.273193359, 1.4037838, 0.0, 0.0, 96.0);
AttachObjectToVehicle(light1[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), -0.0089111328, -0.5, 1.55, 0.0, 0.0, 0.0);
AttachObjectToVehicle(light2[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), -0.5, -0.5, 1.55, 0.0, 0.0, 0.0);
AttachObjectToVehicle(light3[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), 0.5, -0.5, 1.55, 0.0, 0.0, 0.0);
AttachObjectToVehicle(light4[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), -0.5, 2.75, 0.6, 0.0, 0.0, 0.0);
AttachObjectToVehicle(light5[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), 0.5, 2.75, 0.6, 0.0, 0.0, 0.0);
GameTextForPlayer(playerid,"~r~Luces de emergencias encendidas",5000, 1);
//SendClientMessage(playerid, COLOR_GREY, "Para encender la luz de emergencias usa /towluces otra vez!");
Olicht[GetPlayerVehicleID(playerid)] = 1;
}
else if(Olicht[GetPlayerVehicleID(playerid)] == 1)
{
DestroyObject(light1[GetPlayerVehicleID(playerid)]);
DestroyObject(light2[GetPlayerVehicleID(playerid)]);
DestroyObject(light3[GetPlayerVehicleID(playerid)]);
DestroyObject(light4[GetPlayerVehicleID(playerid)]);
DestroyObject(light5[GetPlayerVehicleID(playerid)]);
GameTextForPlayer(playerid,"~r~Luces de emergencias apagadas",5000, 1);
//SendClientMessage(playerid, COLOR_GREY, "Para apagar la luz de emergencias usa /towluces otra vez!");
Olicht[GetPlayerVehicleID(playerid)] = 0;