[help]simple dialog, plz help me!
#1

first i dont so good in english,
so if you dont understand me,
I repair and explain my self better

ok so,
i trying to do dialog menu of teleports,
Something that i write /teleports
and this open dialog menu
and in the dialog Written: (Example)
tele1
tele2
tele3
tele4
tele5
tele6
tele7

if i Click on tele1 it's
open another dialog that ther Written:
airport
sf
lv
ls

if i click on airport i teleport to ther
same to sf, lv, ls (Teleport to all his)

(if i click on tele2, open another dialog Similar and This continues until )


i hope you understand me,
this is very hard! (english)

believe me, i looking for this alot of time
Reply
#2

This will help you http://forum.sa-mp.com/showthread.ph...ight=make+menu
Reply
#3

if someone do code like what i say it be better because my english bad and it's hard to understand the Tutorial
Reply
#4

you can make dialogs,

https://sampforum.blast.hk/showthread.php?tid=109610

many simple.

regards.
Reply
#5

Quote:
Originally Posted by TheGarfield
Посмотреть сообщение
you can make dialogs,

https://sampforum.blast.hk/showthread.php?tid=109610

many simple.

regards.
"if someone do code like what i say it be better because my english bad and it's hard to understand the Tutorial"
Reply
#6

It's kind of a long code to make it all, and save all the TPs, but here's an example script:

pawn Код:
CMD:menu( playerid, params[ ] ) {
    ShowPlayerDialog( playerid, 657, DIALOG_STYLE_LIST, "Dialog title", "Dialog option 1 \n Dialog option 2 \n Dialog option 3", "Close", "" );
    return 1;
}

public OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] ) {
    if( dialogid == 657 ) {
        switch( listitem ) {
            case 0: { // Option 1
                SendClientMessage( playerid, -1, "message 1" );
            }
            case 1: { // Option 2
                SendClientMessage( playerid, -1, "message 2" );
            }
            case 2: { // Option 3
                SendClientMessage( playerid, -1, "message 3" );
            }
            // 3 goes for option 4, 4 for option 5, etc...
        }
    }
    return 1;
}
Reply
#7

You can translate SA-MP Wiki pages ^_^

****** Translate

****** Translate: Wiki SA-MP: ShowPlayerDialog [SPANISH]

Chose the language you prefer.
Reply
#8

again, someone have code like that?
Reply
#9

I'd make it if you save the teleports and give the cords...
Reply
#10

i understand correctly ?
give you the code to Each one from the teleport?
Reply
#11

Give me the X, Y and Z of the teleports. (airport, sf, etc.)
Reply
#12

if you do the command /teleports
this open you dialog that ther wrait:
Stunt zones1
Stunt zones2
Stunt zones3
DM zones
TuneGarages
TrainStations
Truck Stop
Other zones1


if you click on Stunt zones1 it's open you:

Big Jump
-594.1223,904.4135,432.5000
-594.1223,904.4135,432.5000

Big Jump 2
-639.9559,2328.1963,135.0000
-662.6028,2306.1809,136.0709

Los Santos Tower
1537.1813,-1364.6439,1882.5000
1541.3605,-1363.4252,1882.5000

Building Jump
-2882.8174,-3074.8611,83.0000
-2882.8174,-3074.8611,81.0000

Wall Ride
-803.5533,1833.4768,7.0000
-803.5533,1833.4768,7.0000

Las Vegas Airport
1299.8621,1378.2822,10.3751

San Fierro Airport
-1373.3844,-258.4916,14.0000
-1373.3844,-258.4916,14.0000

if you click on Stunt zones2 it's open you:

Skate Park
1920.3247,-1402.8632,13.5703

Way To Death
996.6433,2787.8489,1067.7532
1065.7683,2781.0957,1070.5000

Stadium
-1478.6078,1646.1399,1052.5313
-1486.8704,1642.6029,1060.6719

Monster Crash
-2383.9839,2909.5325,362.3510
-2379.1731,2956.5103,361.9797

FreeWay
-2847.1392,2185.9849,799.5908
-2838.7273,2199.9253,801.7857

Dead Jump
-673.3708,-3024.7944,705.3344
-678.4291,-3077.5681,705.6073

if you click on Stunt zones3 it's open you:

Upside Down
391.1825,-82.5999,558.1525
355.8427,-78.0696,558.4254

Aqua Park
284.4926,-1863.2415,2.8927

if you click on TrainStations it's open you:

LS
1734.6804,-1944.9839,13.5646

SF
-1965.7423,161.1771,27.6875

LV
1430.7799,2653.1604,11.3926

LV2
2848.7876,1293.9376,11.3906


if you click on TuneGarages it's open you:

Tune1
-1935.9851,231.7287,34.1563
-1935.9851,231.7287,34.1563

Tune2
-2709.7312,217.4238,4.1797
-2709.7312,217.4238,4.1797

Tune3
2386.8020,1036.3203,10.8203
2386.8020,1036.3203,10.8203

Tune4
2644.9768,-2030.9032,13.5540
2644.9768,-2030.9032,13.5540



if you click on Truck Stops it's open you:

LasVegas Truck Stop
661.4391,1718.3545,7.1875

Chilliad Truck Stop
-1560.8802,-2735.1248,48.7435

DTruckStop
-314.5585,1773.8600,43.6406

if you click on OtherZones1 it's open you:

AA
402.8024,2534.6926,16.700
411.1637,2539.2366,16.5473

Home
-468.3654,2208.0317,46.4776
-468.3654,2208.0317,46.4776

Drag Race
1031.1125,-2297.4236,12.8004
1031.1125,-2297.4236,12.8004

Karting
2888.9099,1028.5667,17.0000
2888.9377,1026.1427,13.4755

Dirt
-1299.6615,-700.7803,1056.2037
-1295.2308,-694.4233,1056.4128

AdminCastle
-2891.6179,-76.7571,4.0496
-2899.2368,-76.9977,4.1619

PinkAutos
-1623.2146,1227.1677,7.0391
-1620.0802,1221.2664,7.1875

Drift
-309.9550,1560.8075,75.3594


if you do this you the king!
Reply
#13

Help me, please !

UP
Reply
#14

I changed up my mind, I was making it for 30 minutes then I had to go somewhere, dude, to make that you'd need like 45 minutes for all the sub-categories. Use ****** translate and use the EXAMPLE I gave you. I ain't wasting my precious time for this. Stop being lazy please.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)