Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //---------------@@@@@@@----------@@@@@@--------@@@-----------@@@@@@@@@---------@@@@@@@@@@------@@@-------@@@------------@@@----------@@@@@@@----------@@@@@@
- //--------------@@@@@@@@@@-------@@@@@@@@-------@@@-----------@@@@@@@@@@@-------@@@@@@@@@@------@@@@------@@@----------@@@@@---------@@@---@@@-------@@@----@@@
- //-------------@@@-----@@@@-----@@@----@@@------@@@-----------@@@------@@@------@@@-------------@@@@@-----@@@------------@@@---------@@@---@@@------@@@------@@@
- //-------------@@@--------------@@@----@@@------@@@-----------@@@-------@@@-----@@@-------------@@@@@@----@@@------------@@@---------@@@---@@@--------------@@@
- //-------------@@@----@@@@------@@@----@@@------@@@-----------@@@-------@@@-----@@@@@@@@@@------@@@-@@@---@@@------------@@@---------@@@---@@@------------@@@@
- //-------------@@@------@@@-----@@@----@@@------@@@-----------@@@-------@@@-----@@@@@@@@@@------@@@--@@@--@@@------------@@@---------@@@---@@@--------------@@@
- //-------------@@@------@@@-----@@@----@@@------@@@-----------@@@-------@@@-----@@@-------------@@@---@@@-@@@------------@@@---------@@@---@@@------@@@------@@@
- //-------------@@@------@@@-----@@@----@@@------@@@-----------@@@------@@@------@@@-------------@@@----@@@@@@------------@@@---------@@@---@@@-------@@@----@@@
- //--------------@@@@@@@@@@-------@@@@@@@@-------@@@@@@@@@@----@@@@@@@@@@@-------@@@@@@@@@@------@@@-----@@@@@----------@@@@@@@--------@@@@@@@----------@@@@@@
- //---------------@@@@@@@@---------@@@@@@--------@@@@@@@@@@----@@@@@@@@@@--------@@@@@@@@@@------@@@------@@@@
- /////////////////////////////////////////////
- // CКАЧЕНО С TOPGTA.RU //
- /////////////////////////////////////////////
- #include <a_samp>
- new neon[MAX_PLAYERS][2];
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp("/automenu", cmdtext, true, 10) == 0)
- {
- if(!IsPlayerInAnyVehicle(playerid))
- {
- return SendClientMessage(playerid,0xFFFFFFFF,"Вы должны быть в машине!");
- }
- else
- {
- ShowPlayerDialog(playerid,0,DIALOG_STYLE_LIST,"Авто-Меню","Открыть капот\nОткрыть багажник\nВключить свет\nВключить сигнализацию\nЗакрыть двери\nЗапустить мотор\nЗакрыть капот\nЗакрыть багажник\nВыключить свет\nВыключить сигнализацию\nОткрыть двери\nЗаглушить мотор\nНеон\nСменить номер\n","Выбрать","Отмена");
- return 1;
- }
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- new carid = GetPlayerVehicleID(playerid);
- new engine,lights,alarm,doors,bonnet,boot,objective;
- if(dialogid == 0)
- {
- if(response)
- {
- if(listitem == 0)//капот отк
- {
- GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(carid,engine,lights,alarm,doors,true,boot,objective);
- }
- else if(listitem == 1)//багажник отк
- {
- GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,true,objective);
- }
- else if(listitem == 2)//свет вкл
- {
- GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(carid,engine,true,alarm,doors,bonnet,boot,objective);
- }
- else if(listitem == 3)//сигнал вкл
- {
- GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(carid,engine,lights,true,doors,bonnet,boot,objective);
- }
- else if(listitem == 4)//двери блок
- {
- GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(carid,engine,lights,alarm,true,bonnet,boot,objective);
- }
- else if(listitem == 5)//мотор старт
- {
- GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(carid,true,lights,alarm,doors,bonnet,boot,objective);
- }
- else if(listitem == 6)//капот зак
- {
- GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(carid,engine,lights,alarm,doors,false,boot,objective);
- }
- else if(listitem == 7)//багажник зак
- {
- GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,false,objective);
- }
- else if(listitem == 8)//свет выкл
- {
- GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(carid,engine,false,alarm,doors,bonnet,boot,objective);
- }
- else if(listitem == 9)//сигнал выкл
- {
- GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(carid,engine,lights,false,doors,bonnet,boot,objective);
- }
- else if(listitem == 10)//двери откр
- {
- GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(carid,engine,lights,alarm,false,bonnet,boot,objective);
- }
- else if(listitem == 11)//мотор стоп
- {
- GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
- SetVehicleParamsEx(carid,false,lights,alarm,doors,bonnet,boot,objective);
- }
- else if(listitem == 12)
- {
- ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Неоновая подсветка","{FF3300}Красный\n{0033CC}Синий\n{33FF00}Зелёный\n{FFFF00}Желтый\n{FEBFEF}Розовый\nБелый\nУдалить Неон","Выбрать","Отмена");
- }
- else if(listitem == 13)//смена номера
- {
- ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Смена номера","Введите номера авто в окошко","Готово","Отмена");
- return 1;
- }
- }
- }
- if(dialogid == 1)
- {
- if(response)
- {
- if(listitem == 0)
- {
- DestroyObject(neon[playerid][0]);
- DestroyObject(neon[playerid][1]);
- neon[playerid][0] = CreateObject(18647,0,0,0,0,0,0,100.0);
- neon[playerid][1] = CreateObject(18647,0,0,0,0,0,0,100.0);
- AttachObjectToVehicle(neon[playerid][0], GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(neon[playerid][1], GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- }
- else if(listitem == 1)
- {
- DestroyObject(neon[playerid][0]);
- DestroyObject(neon[playerid][1]);
- neon[playerid][0] = CreateObject(18648,0,0,0,0,0,0,100.0);
- neon[playerid][1] = CreateObject(18648,0,0,0,0,0,0,100.0);
- AttachObjectToVehicle(neon[playerid][0], GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(neon[playerid][1], GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- }
- else if(listitem == 2)
- {
- DestroyObject(neon[playerid][0]);
- DestroyObject(neon[playerid][1]);
- neon[playerid][0] = CreateObject(18649,0,0,0,0,0,0,100.0);
- neon[playerid][1] = CreateObject(18649,0,0,0,0,0,0,100.0);
- AttachObjectToVehicle(neon[playerid][0], GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(neon[playerid][1], GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- }
- else if(listitem==3)
- {
- DestroyObject(neon[playerid][0]);
- DestroyObject(neon[playerid][1]);
- neon[playerid][0] = CreateObject(18650,0,0,0,0,0,0,100.0);
- neon[playerid][1] = CreateObject(18650,0,0,0,0,0,0,100.0);
- AttachObjectToVehicle(neon[playerid][0], GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(neon[playerid][1], GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- }
- else if(listitem==4)
- {
- DestroyObject(neon[playerid][0]);
- DestroyObject(neon[playerid][1]);
- neon[playerid][0] = CreateObject(18651,0,0,0,0,0,0,100.0);
- neon[playerid][1] = CreateObject(18651,0,0,0,0,0,0,100.0);
- AttachObjectToVehicle(neon[playerid][0], GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(neon[playerid][1], GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- }
- else if(listitem==5)
- {
- DestroyObject(neon[playerid][0]);
- DestroyObject(neon[playerid][1]);
- neon[playerid][0] = CreateObject(18652,0,0,0,0,0,0,100.0);
- neon[playerid][1] = CreateObject(18652,0,0,0,0,0,0,100.0);
- AttachObjectToVehicle(neon[playerid][0], GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- AttachObjectToVehicle(neon[playerid][1], GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
- }
- else if(listitem==6)
- {
- DestroyObject(neon[playerid][0]);
- DestroyObject(neon[playerid][1]);
- }
- }
- }
- if(dialogid == 2)
- {
- if(response)
- {
- if(!strlen(inputtext))
- {
- ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Смена номера","Введите номера авто в окошко","Готово","Отмена");
- return 1;
- }
- new Float:x,Float:y,Float:z,Float:ang;
- SetVehicleNumberPlate(GetPlayerVehicleID(playerid), inputtext);
- GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
- GetVehicleZAngle(GetPlayerVehicleID(playerid),ang);
- SetVehicleToRespawn(GetPlayerVehicleID(playerid));
- SetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
- PutPlayerInVehicle(playerid,GetPlayerVehicleID(playerid),0);
- SetVehicleZAngle(GetPlayerVehicleID(playerid),ang);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement