Jump to content

Recommended Posts

Posted

Salut, vreau sa adaug toate joburile in GPS imi poate spune careva cum ? :)

My WebSite GamingZone.Ro

 

 

 

Posted (edited)

Pai una dintre variante e sa faci un dialog in care sa adaugi un checkpoint pentru fiecare job.

Edited by Transkrey

Ofer servicii de web designer/developer(contact me pentru portofoliu etc)

Metode de plata: Paysafecard,Skrill,PayPal,Bitcoin

Ofer si servicii de Penetration Testing.

Vand si VPN-uri. 5 euro pe luna

Skype: live:mrtunne.tkcode

Discord: https://mrtunne.info/discord

Posted (edited)

Daca esti incepator si nu ai joburile in baza de date poti face asa:

 

CMD:jobs(playerid, params[])
{
  if(CP[playerid] == 0 && FindTime[playerid] == 0)
  {
       ShowPlayerDialog(playerid, DIALOG_JOBS, DIALOG_STYLE_LIST, "Server:jobs", "job1 \n job2 etc...", "Select", "Cancel");
  }
  return 1;
}

 

case DIALOG_JOBS:
        {
            if(!response)
            {
                hidePlayerDialog(playerid);
            }
            else
            {
                new Float: playerPos[3];
                GetPlayerPos(playerid, playerPos[0], playerPos[1], playerPos[2]);
                switch(listitem)
                {
                    case 0:
                    {
                        SetPlayerCheckpoint(playerid, coordonate job, 3.0);
                        playerVariables[playerid][pCheckpoint] = 1;
                        SCM(playerid, COLOR_YELLOW, "A checkpoint has been set on the job1");
                    }

 case 1:
                    {
                        SetPlayerCheckpoint(playerid, coordonate job2, 3.0);
                        playerVariables[playerid][pCheckpoint] = 1;
                        SCM(playerid, COLOR_YELLOW, "A checkpoint has been set on the job2");
                    }

             }

}

}

 

 

 

Edited by TrueCross

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.