Jump to content
  • 0

Ajutor comanda /engine


Question

Posted

Salut tuturor am si eu o intrebare asi dorii daca ma poate ajuta cineva sa rezolv problema cu /engine. Adica cand dau /engine si porneste motorul sa consume benzina si cand dau din nou /engine sa nu mai consume. Am facut pana acuma tot numai nu stiu chestia cu consumul de benzina cum sa fac. Please Help me.

[img width=222 height=100]http://www.speedtest.net/result/734520190.pn

10 answers to this question

Recommended Posts

Posted

Ar fi mai usor daca ai pune comanda actuala aici ...

rpg.reality-gaming.ro

Posted

http://pastebin.com/kvbDbtQH aceasta este comanda ce trebuie sa adaug ?

[img width=222 height=100]http://www.speedtest.net/result/734520190.pn

Posted

[pawn]if(IsAPlane(vehicle) || IsABoat(vehicle) || IsABmx(vehicle) || IsABus(vehicle) || TruckerCar(vehicle)) { Gas[vehicle]++; }[/pawn] Aici modifica cu asta

[pawn]if(IsAPlane(vehicle) || IsABoat(vehicle) || IsABmx(vehicle) || IsABus(vehicle) || TruckerCar(vehicle) || engineOn[vehicle] == 0) { Gas[vehicle]++; }[/pawn]

rpg.reality-gaming.ro

Posted

Pune comanda asta:

if(strcmp(cmd, "/engine", true) == 0 || strcmp(cmd, "/e", true) == 0)

            {

                new vid = GetPlayerVehicleID(playerid);

          if(IsPlayerConnected(playerid))

            {

        if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)

{

                                    if (gEngine[playerid] == 0)

                                    {

                                            GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~w~Engine ~g~~h~Start", 2000, 5);

                                            PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);

                                            GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);

                            SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);

                            gEngine[playerid] = 1;

                                    }

                                    else if (gEngine[playerid] == 1)

                                    {

                                    GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~w~Engine ~r~~h~Stop", 2000, 5);

                                            PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);

                                            GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);

                            SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);

                            gEngine[playerid] = 0;

                                    }

                            }

          }

            return 1;

        }

Daca ti-am fost de ajutor +1 Respect!Multumesc

Posted

Mersi angel functioneaza daca ai vreo idee cum pot sa fac in asa fel incat daca e /engine on  sa consume chiar daca playerul nu e in masina iti raman recunoscator.

[img width=222 height=100]http://www.speedtest.net/result/734520190.pn

Posted

Problema rezolvata mersi mult angel si Leon. Se poate inchide acest topic. Multumesc !

[img width=222 height=100]http://www.speedtest.net/result/734520190.pn

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.