Jump to content

Question

4 answers to this question

Recommended Posts

  • 0

Te duci la DIALOG_GPS sau cum il ai tu definit si pui la final \nRoll 

Dupa te duci la case Dialog_gps mergi la ultimul caz si mai adaugi unul si acolo pui SetPlayerCheckpoint(playerid, x, y ,z);

Link to post
Share on other sites
  • 0

Bun , depinde ce gamemode ai !

Daca ai gamemode burned :

Mergi la DIALOG_LOCATIONS, case 0 este prima selectie din dialog , case 1 este a 2-a selectie din dialog si tot asa | Pentru ca numerotatia incepe de la 0 !

La gamemode burned clasic sunt doar case 0 si case 2 ! Iti las mai jos ce trebuie sa copiezi in loc de dialog_locations !
 

        case DIALOG_LOCATIONS: {
            if(!response) return 1;
            if(CP[playerid] != 0) return ShowPlayerDialog(playerid, DIALOG_CHECKPOINT, DIALOG_STYLE_MSGBOX, "Checkpoint", "Ai deja un checkpoint activ.\nDoresti sa-l anulezi? Daca da, apasa pe 'Ok'.", "Ok", "Exit");
            switch(listitem) {
                case 0: {
                    new szDialog[1024], szDialog2[1024];
                    strcat(szDialog2, "Destinatie\tDistanta\n");
                    format(szDialog, 1024, "Dealership\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 1449.8494,-2287.2141,13.5469));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Banca\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 1462.5325,-1013.5137,26.8438));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "CNN (/ad)\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 648.3226,-1357.3953,13.5709));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Gun Shop\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 1367.8486,-1279.4406,13.5469));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Primarie\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 1481.1780,-1771.7753,18.7958));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Magazin 24/7\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 1352.3127,-1757.7538,13.5078));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Scoala de soferi (DMV)\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 1219.6554,-1812.7166,16.5938));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Magazin de haine\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 454.1170,-1478.0200,30.8142));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Cadou (/getgift)\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 398.5757,-1532.7467,32.2734));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Rent bike\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 1116.0431,-924.0679,42.9620));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Arena de evente\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 1671.7028,-1329.3607,17.4520));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Paintball\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 1310.0814,-1367.6973,13.5393));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Alahambra\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 1835.8772,-1681.9005,13.3714));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Burger Shot\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 1199.3329,-919.1213,43.1153));
                    strcat(szDialog2, szDialog);    
                    format(szDialog, 1024, "Sex Shop\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 1087.6583,-923.2074,43.3906));
                    strcat(szDialog2, szDialog);    
                    format(szDialog, 1024, "Arena de curse\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 2695.5701,-1704.6261,11.8438));
                    strcat(szDialog2, szDialog);    
                    format(szDialog, 1024, "Biserica LS\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 940.7791,-1085.5411,24.2962));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Pescarie\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 789.6079, -2097.8096, 3.8643));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Arena CS\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 2781.3123,-1812.4171,11.8438));
                    strcat(szDialog2, szDialog);    
                    format(szDialog, 1024, "Casino\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 2022.3240,1007.7017,10.8203));
                    strcat(szDialog2, szDialog);                        
                    ShowPlayerDialog(playerid, DIALOG_LOCATIONS2, DIALOG_STYLE_TABLIST_HEADERS, "Locatii", szDialog2, "Select", "Exit");            
                }
                case 1: {
                    CP[playerid] = 43;
                    SetPlayerCheckpointEx(playerid, -2712.9404,217.9960,4.2465, 5.0);
                }

                case 2: {

                CP[playerid] = 43;

                SetPlayerCheckpointEx(playerid, [aici pui coordonatele tale]);

              }
            }    
        }

Edited by RaulDume
Link to post
Share on other sites
  • 0

Degaba ii dai tot codu daca nu explici nimic

La 27.10.2019 la 0:22, RaulDume a spus:

Bun , depinde ce gamemode ai !

Daca ai gamemode burned :

Mergi la DIALOG_LOCATIONS, case 0 este prima selectie din dialog , case 1 este a 2-a selectie din dialog si tot asa | Pentru ca numerotatia incepe de la 0 !

La gamemode burned clasic sunt doar case 0 si case 2 ! Iti las mai jos ce trebuie sa copiezi in loc de dialog_locations !
 

        case DIALOG_LOCATIONS: {
            if(!response) return 1;
            if(CP[playerid] != 0) return ShowPlayerDialog(playerid, DIALOG_CHECKPOINT, DIALOG_STYLE_MSGBOX, "Checkpoint", "Ai deja un checkpoint activ.\nDoresti sa-l anulezi? Daca da, apasa pe 'Ok'.", "Ok", "Exit");
            switch(listitem) {
                case 0: {
                    new szDialog[1024], szDialog2[1024];
                    strcat(szDialog2, "Destinatie\tDistanta\n");
                    format(szDialog, 1024, "Dealership\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 1449.8494,-2287.2141,13.5469));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Banca\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 1462.5325,-1013.5137,26.8438));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "CNN (/ad)\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 648.3226,-1357.3953,13.5709));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Gun Shop\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 1367.8486,-1279.4406,13.5469));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Primarie\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 1481.1780,-1771.7753,18.7958));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Magazin 24/7\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 1352.3127,-1757.7538,13.5078));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Scoala de soferi (DMV)\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 1219.6554,-1812.7166,16.5938));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Magazin de haine\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 454.1170,-1478.0200,30.8142));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Cadou (/getgift)\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 398.5757,-1532.7467,32.2734));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Rent bike\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 1116.0431,-924.0679,42.9620));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Arena de evente\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 1671.7028,-1329.3607,17.4520));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Paintball\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 1310.0814,-1367.6973,13.5393));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Alahambra\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 1835.8772,-1681.9005,13.3714));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Burger Shot\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 1199.3329,-919.1213,43.1153));
                    strcat(szDialog2, szDialog);    
                    format(szDialog, 1024, "Sex Shop\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 1087.6583,-923.2074,43.3906));
                    strcat(szDialog2, szDialog);    
                    format(szDialog, 1024, "Arena de curse\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 2695.5701,-1704.6261,11.8438));
                    strcat(szDialog2, szDialog);    
                    format(szDialog, 1024, "Biserica LS\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 940.7791,-1085.5411,24.2962));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Pescarie\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 789.6079, -2097.8096, 3.8643));
                    strcat(szDialog2, szDialog);
                    format(szDialog, 1024, "Arena CS\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 2781.3123,-1812.4171,11.8438));
                    strcat(szDialog2, szDialog);    
                    format(szDialog, 1024, "Casino\t{CBFF96}%0.2fm\n", GetPlayerDistanceFromPoint(playerid, 2022.3240,1007.7017,10.8203));
                    strcat(szDialog2, szDialog);                        
                    ShowPlayerDialog(playerid, DIALOG_LOCATIONS2, DIALOG_STYLE_TABLIST_HEADERS, "Locatii", szDialog2, "Select", "Exit");            
                }
                case 1: {
                    CP[playerid] = 43;
                    SetPlayerCheckpointEx(playerid, -2712.9404,217.9960,4.2465, 5.0);
                }

                case 2: {

                CP[playerid] = 43;

                SetPlayerCheckpointEx(playerid, [aici pui coordonatele tale]);

              }
            }    
        }

Degeaba ii dai tot codul daca nu ii explici cum trebuie facut

Edit:Si daca nu are DIALOG_LOCATIONS ce face?

Edited by spy3
Link to post
Share on other sites
  • 0
Acum 1 oră, spy3 a spus:

Degaba ii dai tot codu daca nu explici nimic

Degeaba ii dai tot codul daca nu ii explici cum trebuie facut

Edit:Si daca nu are DIALOG_LOCATIONS ce face?

Daca nu are dialog locations , face in felul urmator :

Merge sus de tot si scrie #define DIALOG_LOCATIONS(aici e indiferent)

Dupa merge la orice comanda CMD, si adauga sub ea :
 

CMD:gps(playerid, params[])
{
    ShowPlayerDialog(playerid, DIALOG_LOCATIONS, DIALOG_STYLE_LIST, "Locatii", "Aici pune ce doreste !", "Select", "Exit");
}


Dupa merge la OnDialogResponse si adauga sub in felul urmator :

case DIALOG_LOCATIONS: {
    switch(listitem) {
        case 0 : SetPlayerCheckpoint(playerid, aici coordonatele !);
    }
}

Link to post
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
Answer this question...

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

  • Recently Browsing   0 members

    No registered users viewing this page.

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