MalikeiraOPoder
Active member
- Joined
- Mar 16, 2019
- Messages
- 100
- Reaction score
- 2
sup my homies, i need a help, idk how to do that shit..
i want a EditBox to change my activation to open a Dialog..
i want to put when i chooser a code and press in "Apply" it will close my dialog and to open i need to type new code..
example : Default code is "nugg" and i changed to "pussi" when i press Apply, it will close my dialog and i will need to type pussi to open...
is here below my code how example...
@Opcode.eXe @springfield @monday @Zin etc...
i want a EditBox to change my activation to open a Dialog..
i want to put when i chooser a code and press in "Apply" it will close my dialog and to open i need to type new code..
example : Default code is "nugg" and i changed to "pussi" when i press Apply, it will close my dialog and i will need to type pussi to open...
is here below my code how example...
PHP:
{$CLEO}
0000:
repeat
wait 0
until Samp.Available()
Dialog.Create(1@, "")
Dialog.SetRECT(1@, 100, 100, 335, 100)
Dialog.AddButton(1@, 1, "{00ff00}Apply", 5, 5, 80, 22)
Dialog.AddEditBox(1@, 2, "nugg" ,105 ,5, 200, 35)
Dialog.SetVisible(1@, 0)
while true
wait 0
if
0ADC: test_cheat "nugg" // To change that shit
then
if
30@ == false
then
30@ = true
else
30@ = false
end
end
if
30@ == true
then
if
0AB0: 88
then
0B12: 0@ = 0@ XOR 1
if
0@ == true
then
wait 200
Dialog.SetVisible(1@, 1)
SAMP.ToggleCursor(1)
else
wait 200
Dialog.SetVisible(1@,0)
SAMP.ToggleCursor(0)
end
end
end
if Dialog.IsVisible(1@)
then
0B81: dialog 1@ pop_event_to 2@ control_id_to 3@
if 3@ == 1
then
alloc 16@ 200
0B89: dialog 1@ get_control 2 text_to 19@
if
0AD4: 16@ = scan_string 16@ format "%s" 19@
then
//something here, i think
end
free 16@
end
end
END
@Opcode.eXe @springfield @monday @Zin etc...
Last edited: