Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define DIALOG_CAROPTIONS 9846
- if(dialogid == DIALOG_CAROPTIONS)
- {
- if(response)
- {
- if(listitem == 0)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
- if(engine == 0 || engine == -1)
- {
- if(Gorivo[GetPlayerVehicleID(playerid)] <= 0) return SCM(playerid,-1, "{FF4040}GRESKA:{FFFFFF}Nemate dovolno gorivo, nemozete da go startuvate motorot.");
- format(string,sizeof(string), "|%s go stava klucot na bravata i se obiduva da go zapali motorot na voziloto.", GetName(playerid));
- ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SetTimerEx("StartingTheVehicle",3000,0,"i",playerid);
- PaliMotor[vehicleid] = 1;
- Potrosnja[vehicleid] = 1;
- Kilometraza[vehicleid] = 1;
- }
- else if(engine == 1)
- {
- SetVehicleParamsEx(GetPlayerVehicleID(playerid), 0, 0, alarm, doors, bonnet, boot, objective);
- format(string,sizeof(string), "|%s go vrti klucot na levo i go gasi motorot na voziloto.", GetName(playerid));
- ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- Potrosnja[vehicleid] = 0;
- Kilometraza[vehicleid] = 0;
- }
- }
- }
- if(listitem == 1)
- {
- if(Svetla[playerid] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "|%s gi vklucuva svetlata.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SendClientMessage(playerid, -1, "{0049FF}SVETLA | {FFFFFF}Gi vklucivte svetlata.");
- GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine , lights , alarm , doors , bonnet , boot , objective);
- SetVehicleParamsEx(GetPlayerVehicleID(playerid) , engine , 1 , alarm , doors , bonnet , boot , objective ) ;
- Svetla[playerid] = 1;
- }
- else
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "|%s gi isklucuva svetlata.", sendername);
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SendClientMessage(playerid, -1, "{0049FF}SVETLA | {FFFFFF}Gi isklucivte svetlata.");
- GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine , lights , alarm , doors , bonnet , boot , objective);
- SetVehicleParamsEx(GetPlayerVehicleID(playerid) , engine , 0 , alarm , doors , bonnet , boot , objective ) ;
- Svetla[playerid] = 0;
- }
- }
- if(listitem == 2)
- {
- if(Haulba[playerid] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "|%s ja otvara haulbata.", sendername);
- ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SendClientMessage(playerid, -1, "{0049FF}HAULBA | {FFFFFF}Ja otvorivte haulbata.");
- GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine , lights , alarm , doors , bonnet , boot , objective);
- SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine , lights , alarm , doors , 1 , boot , objective);
- Haulba[playerid] = 1;
- }
- else
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "|%s ja zatvara haulbata.", sendername);
- ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SendClientMessage(playerid, -1, "{0049FF}HAULBA | {FFFFFF}Ja zatvorivte haulbata.");
- GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine , lights , alarm , doors , bonnet , boot , objective);
- SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine , lights , alarm , doors , 0 , boot , objective);
- Haulba[playerid] = 0;
- }
- }
- if(listitem == 3)
- {
- if(Gepeek[playerid] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "|%s go otvara gepekot.", sendername);
- ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SendClientMessage(playerid, -1, "{0049FF}GEPEK | {FFFFFF}Go otvorivte gepekot na voziloto.");
- GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
- SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,1,objective);
- Gepeek[playerid] = 1;
- }
- else
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "|%s go zatvara gepekot.", sendername);
- ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SendClientMessage(playerid, -1, "{0049FF}GEPEK | {FFFFFF}Go zatvorivte gepekot na voziloto.");
- GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine , lights , alarm , doors , bonnet , boot , objective);
- SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine , lights , alarm , doors , bonnet , 0 , objective);
- Gepeek[playerid] = 0;
- }
- }
- if(listitem == 4)
- {
- if(Pojas[playerid] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- SCMF(playerid,COLOR_WHITE,"{0049FF}POJAS | {FFFFFF}Go stavivte pojasot.");
- format(string, sizeof(string), "|%s go zakaci negoviot sigurosen pojas.", sendername);
- ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- Pojas[playerid] = 1;
- }
- else
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- SCMF(playerid,COLOR_WHITE,"{0049FF}POJAS | {FFFFFF}Go otkacivte pojasot.");
- format(string, sizeof(string), "|%s go otkaci negoviot sigurosen pojas.", sendername);
- ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- Pojas[playerid] = 0;
- }
- }
- if(listitem == 5)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(Prozorci[playerid] == 0)
- {
- SetVehicleParamsCarWindows(GetPlayerVehicleID(playerid), 0, 0, 0, 0);
- Prozorci[playerid] = 1;
- SCM(playerid, -1, "{0049FF}PROZORCI | {FFFFFF}Gi otvorivte prozorcite na voziloto.");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "|%s gi otvori prozorcite na voziloto.", sendername);
- ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- else
- {
- SetVehicleParamsCarWindows(GetPlayerVehicleID(playerid), 1, 1, 1, 1);
- Prozorci[playerid] = 0;
- SCM(playerid, -1, "{0049FF}PROZORCI | {FFFFFF}Gi zatvorivte prozorcite na voziloto.");
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "|%s gi zatvori prozorcite na voziloto.", sendername);
- ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- }
- }
- }
- return 1;
- }
- if(newkeys & KEY_SUBMISSION)
- {
- new playerstate = GetPlayerState(playerid);
- if(playerstate == PLAYER_STATE_DRIVER)
- {
- SPD(playerid, DIALOG_CAROPTIONS, DIALOG_STYLE_LIST, "{0049FF}Izberete", "Motor [{6EF83C}ON{FFFFFF}/{FF4040}OFF{FFFFFF}]\nSvetla [{6EF83C}ON{FFFFFF}/{FF4040}OFF{FFFFFF}]\nHaulba [{6EF83C}ON{FFFFFF}/{FF4040}OFF{FFFFFF}]\nGepek [{6EF83C}ON{FFFFFF}/{FF4040}OFF{FFFFFF}]\nPojas [{6EF83C}ON{FFFFFF}/{FF4040}OFF{FFFFFF}]\nProzorci [{6EF83C}ON{FFFFFF}/{FF4040}OFF{FFFFFF}]", "Izberi", "Izlez");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment