Jump to content
  • 0

Ajutor comanda /engine


LuciaN

Question

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

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

[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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.