if(dialogid==6002)
{
if(response)
{
if(listitem==0)
{
migalki[GetPlayerVehicleID(playerid)][0] = CreateObject(18646,0,0,0,0,0,0,100.0);
AttachObjectToVehicle(migalki[GetPlayerVehicleID(playerid)][0], GetPlayerVehicleID(playerid), -0.0, -0.2, 0.75, 1.0, 1.0, 1.0);
SendClientMessage(playerid, 0xFFFFFFAA, "Âû óñòàíîâèëè ìèãàëêè íà êðûøó");
new str[256];
for(new i = 0;i<MAX_PLAYERS;i++)
{
if(PlayerInfo[pAdmin]>0)
{
SendClientMessage(i,COLOR_YELLOW,str);
}
}
}
if(listitem==1)
{
DestroyObject(migalki[GetPlayerVehicleID(playerid)][0]);
DestroyObject(migalki[GetPlayerVehicleID(playerid)][1]);
migalki[GetPlayerVehicleID(playerid)][0] = CreateObject(18646,0,0,0,0,0,0,100.0);
migalki[GetPlayerVehicleID(playerid)][1] = CreateObject(18646,0,0,0,0,0,0,100.0);
AttachObjectToVehicle(migalki[GetPlayerVehicleID(playerid)][0], GetPlayerVehicleID(playerid), -0.4, 2.2, 0.1, 1.0, 1.0, 1.0);
AttachObjectToVehicle(migalki[GetPlayerVehicleID(playerid)][1], GetPlayerVehicleID(playerid), 0.4, 2.2, 0.1, 1.0, 1.0, 1.0);
SendClientMessage(playerid, 0xFFFFFFAA, "Âû óñòàíîâèëè ìèãàëêè íà êàïîò");
new str[256];
for(new i = 0;i<MAX_PLAYERS;i++)
{
if(PlayerInfo[pAdmin]>0)
{
SendClientMessage(i,COLOR_YELLOW,str);
}
}
}
if(listitem==2)
{
DestroyObject(migalki[GetPlayerVehicleID(playerid)][0]);
DestroyObject(migalki[GetPlayerVehicleID(playerid)][1]);
migalki[GetPlayerVehicleID(playerid)][0] = CreateObject(18646,0,0,0,0,0,0,100.0);
migalki[GetPlayerVehicleID(playerid)][1] = CreateObject(18646,0,0,0,0,0,0,100.0);
AttachObjectToVehicle(migalki[GetPlayerVehicleID(playerid)][0], GetPlayerVehicleID(playerid), -0.8, -1.8, 0.3, 1.0, 1.0, 1.0);
AttachObjectToVehicle(migalki[GetPlayerVehicleID(playerid)][1], GetPlayerVehicleID(playerid), 0.8, -1.8, 0.3, 1.0, 1.0, 1.0);
SendClientMessage(playerid, 0xFFFFFFAA, "Âû óñòàíîâèëè ìèãàëêè íà áàãàæíèê");
new str[256];
for(new i = 0;i<MAX_PLAYERS;i++)
{
if(PlayerInfo[pAdmin]>0)
{
SendClientMessage(i,COLOR_YELLOW,str);
}
}
}
if(listitem==3)
{
DestroyObject(migalki[GetPlayerVehicleID(playerid)][0]);
DestroyObject(migalki[GetPlayerVehicleID(playerid)][1]);
migalki[GetPlayerVehicleID(playerid)][0] = CreateObject(18646,0,0,0,0,0,0,100.0);
AttachObjectToVehicle(migalki[GetPlayerVehicleID(playerid)][0], GetPlayerVehicleID(playerid), 0.0, 0.9, 0.3, 1.0, 1.0, 1.0);
SendClientMessage(playerid, 0xFFFFFFAA, "Âû óñòàíîâèëè ìèãàëêè â êàáèíó");
new str[256];
for(new i = 0;i<MAX_PLAYERS;i++)
{
if(PlayerInfo[pAdmin]>0)
{
SendClientMessage(i,COLOR_YELLOW,str);
}
}
}
if(listitem==4)
{
DestroyObject(migalki[GetPlayerVehicleID(playerid)][0]);
DestroyObject(migalki[GetPlayerVehicleID(playerid)][1]);
SendClientMessage(playerid, 0xFFFFFFAA, "Âû Óäàëèëè âñå ìèãàëêè");
new str[256];
for(new i = 0;i<MAX_PLAYERS;i++)
{
if(PlayerInfo[pAdmin]>0)
{
SendClientMessage(i,COLOR_YELLOW,str);
}
}
}
}
return 0;
}