You can add this to this code - Форум Cheat-Master.ru
  • Страница 1 из 1
  • 1
Модератор форума: Admin_Bot, Admin_Bot2, Admin_Bot3, Admin_Bot4  
You can add this to this code
Ollydbg Дата: Суббота, 29.07.2017, 17:45 | Сообщение # 1
Новичок
Сообщений: 2
Статус: Offline
Add a dialog box to see all the contacts.
Add a function to the dialog box to call or send an SMS.

Fix these bugs:
When using the / vcontacto command and put anything as a name, it indicates a contact with the name that we put and a nonexistent number.
When you use the / gcontact command with a long name, it is saved with a limit.

The code below

[code]
{$CLEO .cs}

0662: "0000"
0662: "0000"

if not 32@ = SAMP.Base()
then 0A93: end_custom_thread
end
while not SAMP.Available()
wait 100
end

wait 500

0B34: samp register_client_command "gcontact" to_label @MIKEG_22 //save
0B34: samp register_client_command "vcontact" to_label @MIKEG_23 //view contact

:MIKEG_222
wait 0
jump @MIKEG_222

:MIKEG_22
wait 0
alloc 29@ 1480
SAMP.IsCommandTyped(3@)
if
0AD4: 29@ = scan_string 3@ format "%s %d" 5@v 4@
else_jump @MIKEG_599
0AF8: samp add_message_to_chat "Contact %s saved with number %d." color 0xFF00 5@v 4@
0AF1: write_int 4@ to_ini_file "cleo\contacts.ini" section 5@v key "number"
jump @MIKEG_888

:MIKEG_599
0AF8: samp add_message_to_chat "USE: /gcontacto [NAME] [NUMBER]" color 0xFF0000 //Save contact example
0AF8: samp add_message_to_chat "EXAMPLE: /gcontacto Carlos_Gonza 12345678" color 0xFF0000 /Save contact example

:MIKEG_888
SAMP.CmdRet

:MIKEG_23
alloc 29@ 480
SAMP.IsCommandTyped(3@)
wait 0
if
0AD4: 29@ = scan_string 3@ format "%s" 3@v
else_jump @MIKEG_277
0AF0: 15@ = get_int_from_ini_file "cleo\contacts.ini" section 3@v key "number"
0AF8: samp add_message_to_chat "Contact number %s is %d." color 0xFF00 3@v 15@
SAMP.CmdRet
jump @MIKEG_232

:MIKEG_277
0AF8: samp add_message_to_chat "USE: /vcontacto [NOMBRE]" color 0xFF0000 //See example contact
0AF8: samp add_message_to_chat "EXAMPLE: /vcontact Carlos_Gonza " color 0xFF0000 //See example contact

:MIKEG_232
SAMP.CmdRet


gg
[CM]Рафаэль Дата: Вторник, 14.11.2017, 18:32 | Сообщение # 2
Cheat-Master
Сообщений: 3080
Статус: Offline
for questions and help in editing scripts there are special topics
http://cheat-master.ru/forum/116-506250-1
http://cheat-master.ru/forum/116-506254-1
don't need to create a separate topic
search cleo scripts >> http://cheat-master.ru/forum/129-503918-1



Мой Shop
Официальный гарант

Контактные данные:
VK: vk.com/ali_benua
Skype: lvinyipen
Telegram: @AliBenua
ICQ: 552-090-283
  • Страница 1 из 1
  • 1
Поиск:
Статистика Форума
Лучшие пользователи
Admin [39113]

GеNius [7210]

[CM]Russel [5557]

kenlo763 [4952]

[CM]AGRESSOR [4639]

Snake_Firm [4452]

Сэс [4416]

Artem_Buero [4223]

[CM]Durman [3204]

[CM]Рафаэль [3080]

iMaddy [2855]

sky_Woker [2854]

getrekt [2745]

Новые пользователи
kr1sk0v [05:49]

hidirnshoki [19:11]

max_408 [17:47]

zr_perfonance [09:52]

dhcjcjcc [01:45]

Seriesfee [01:30]

ggrereTr6 [18:02]

IgromanPlay [12:55]

Ascentspd [01:46]

MrakCS [00:59]

Nikusrr [22:54]

grwrgwgeg32 [18:51]

davidik31 [18:34]