how to create Teleport Menu Dialog

MalikeiraOPoder

Active member
Joined
Mar 16, 2019
Messages
100
Reaction score
2
Hello , I would like to learn how to make a teleport menu like this video :


Someone can modify for me and add teleport to SF, LS, LV ? Please !!!
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,161
Solutions
5
Reaction score
894
Location
Lithuania
Just watch video and do same ...

PHP:
{$CLEO .cs}
0000:


REPEAT
   WAIT 0
UNTIL 0AFA:  SAMP_IS_READY 

0B34: "Dialog" @Show

WHILE TRUE
   WAIT 0

IF
23@ == TRUE
THEN  
   0AC6: 16@ = label @TEXT offset  
   0B3B: samp show_dialog id 1000 caption "Servers" text 16@ button_1 "OK" button_2 "CLOSE" style 2  
   23@ = FALSE
END

IF 
0B3C: samp is_dialog_responded id 1000 button 17@ list_item 18@ input_text 0
THEN
    IF 
    17@ == 1 // OK button
    THEN
        IF 
        18@ == 0
        THEN 
            0AF8: "selected element 0 " -1
        END
    END

    IF 
    17@ == 1 // OK button
    THEN
        IF 
        18@ == 1
        THEN 
            0AF8: "selected element 1 " -1
        END
    END

    IF 
    17@ == 1 // OK button
    THEN
        IF 
        18@ == 2
        THEN 
            0AF8: "selected element 2 " -1
        END
    END

    IF 
    17@ == 1 // OK button
    THEN
        IF 
        18@ == 3
        THEN 
            0AF8: "selected element 3 " -1
        END
    END

    IF 
    17@ == 1 // OK button
    THEN
        IF 
        18@ == 4
        THEN 
            0AF8: "selected element 4 " -1
        END
    END

END /// END 0B3C: samp is_dialog_responded id 1000 button 17@ list_item 18@ input_text 0
   
END /// END WHILE TRUE

:TEXT
hex
"{FFFFFF}NUMBER 0 " A
"{009900}NUMBER 1" A
"{009900}NUMBER 2" A
"{B00003}NUMBER 3" A 
"{B00003}NUMBER 4" A 
00                         
end

:Show
0B12: 23@ = 23@ XOR TRUE 
0B43:
 
Top