Jump to content

va e greu sa ma ajutati si pe mn ? ai de capu meu


DanyBoSS

Recommended Posts

Salut , am adaugat script-ul de a nu putea folosi masini fara licenta .. dar  cand intru intr-o masina imi zice ca nu am licenta , de asemenea cand dau /examen la dmv ma scoate din masina si zice ca nu am licenta.. iar acea masina este pentru cei care dau de examen

asa si cand vreau sa dau de permis pt navigat / pilotaj

SCRIPT:          if(IsABoat(newcar))
        {
            if(PlayerInfo[playerid][pBoatLic] < 1)
            {
                SendClientMessage(playerid, COLOR_WHITE, "Ne pare rau, dar nu ai licenta de navigat!");
                   RemovePlayerFromVehicle(playerid);
            }
        }
         else if(IsACar(newcar))
        {
            if(PlayerInfo[playerid][pCarLic] < 1)
            {
                SendClientMessage(playerid, COLOR_WHITE, "Ne pare rau, dar nu ai licenta de condus!");
                RemovePlayerFromVehicle(playerid);
            }
        }
        else if(IsAPlane(newcar))
        {
            if(PlayerInfo[playerid][pFlyLic] < 1)
            {
                SendClientMessage(playerid, COLOR_WHITE, "Ne pare rau, dar nu ai licenta de pilotaj!");
                RemovePlayerFromVehicle(playerid);
            }
        }

Link to comment
Share on other sites

E simplu.. definesti o variabila care sa ii arate prezenta in DMV.

In cele din urma pui in codul ala un if ca daca variabila aceea are nu stiu ce valoare sa nu faca nimic si sa il lase in vehicul.

Am sa iti fac si o reprezentatie:

new Licensing[MAX_PLAYERS];

//In comanda folositi Licensing[jucator(ex.)] = 1;

//In functie puneti asa if(Licensing[jucator(ex.)] == 1) { }

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.