Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /************************
- * *
- * 2 - variklis *
- * 4 - bagažinė *
- * 6 - kapotas *
- * 8 - šviesos *
- * *
- ************************/
- #include <a_samp>
- // Kūrė Stuneris
- /* Nūtrynęs kreditus scripto autoriumi netapsi! */
- new engine, lights, alarm, doors, bonnet, boot, objective;
- public OnFilterScriptInit()
- {
- ManualVehicleEngineAndLights();
- print("\n\n\n");
- print(" _______________________________________________________________");
- print(" mValdymas by Stuneis sėkmingai užkrautas. Malonaus naudojimo ;)");
- print(" ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯");
- print("\n\n\n");
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- if(newstate == PLAYER_STATE_DRIVER)
- {
- SendClientMessage(playerid, 0x00FF00FF, "_____|{FF0000}mValdymas by Stuneris naudojimas{00FF00}|_____");
- SendClientMessage(playerid, 0x00FF00FF, "Spausk {FF0000}8 {00FF00}norėdamas {FF0000}įjungti/išjungti {00FF00}šviesas.");
- SendClientMessage(playerid, 0x00FF00FF, "Spausk {FF0000}2 {00FF00}norėdamas {FF0000}įjungti/išjungti {00FF00}variklį.");
- SendClientMessage(playerid, 0x00FF00FF, "Spausk {FF0000}6 {00FF00}norėdamas {FF0000}atidaryti/uždaryti {00FF00}kapotą.");
- SendClientMessage(playerid, 0x00FF00FF, "Spausk {FF0000}4 {00FF00}norėdamas {FF0000}atidaryti/uždaryti {00FF00}bagažinę.");
- }
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- new vid = GetPlayerVehicleID(playerid);
- GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
- if(newkeys == KEY_ANALOG_UP)
- {
- if(lights == 1)
- {
- SetVehicleParamsEx(vid,engine,0,alarm,doors,bonnet,boot,objective);
- SendClientMessage(playerid, 0xFF9900FF, "Šviesos {FF0000}išjungtos.");
- }
- else if(lights == -1||lights == 0)
- {
- SetVehicleParamsEx(vid,engine,1,alarm,doors,bonnet,boot,objective);
- SendClientMessage(playerid, 0xFF9900FF, "Šviesos {FF0000}įjungtos.");
- }
- }
- if(newkeys == KEY_ANALOG_DOWN)
- {
- if(engine == 1)
- {
- SetVehicleParamsEx(vid,0,lights,alarm,doors,bonnet,boot,objective);
- SendClientMessage(playerid, 0xFF9900FF, "Variklis {FF0000}užgesintas.");
- }
- else if(engine == -1||engine == 0)
- {
- SetVehicleParamsEx(vid,1,lights,alarm,doors,bonnet,boot,objective);
- SendClientMessage(playerid, 0xFF9900FF, "Variklis {FF0000}užvestas.");
- }
- }
- if(newkeys == KEY_ANALOG_LEFT)
- {
- if(boot == 1)
- {
- SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,0,objective);
- SendClientMessage(playerid, 0xFF9900FF, "Bagažinė {FF0000}uždaryta.");
- }
- else if(boot == -1||boot == 0)
- {
- SetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,1,objective);
- SendClientMessage(playerid, 0xFF9900FF, "Bagažinė {FF0000}atidaryta.");
- }
- }
- if(newkeys == KEY_ANALOG_RIGHT)
- {
- if(bonnet == 1)
- {
- SetVehicleParamsEx(vid,engine,lights,alarm,doors,0,boot,objective);
- SendClientMessage(playerid, 0xFF9900FF, "Kapotas {FF0000}uždarytas.");
- }
- else if(bonnet == -1||bonnet == 0)
- {
- SetVehicleParamsEx(vid,engine,lights,alarm,doors,1,boot,objective);
- SendClientMessage(playerid, 0xFF9900FF, "Kapotas {FF0000}atidarytas.");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement