Ой всё...8B21: samp is_chat_closed тож не робит
Ой всё...8B21: samp is_chat_closed тож не робит
Всё, решил проблему) SB дату закинул, теперь опкоды работают)Ой всё...
{$CLEO}
{$INCLUDE SF}
0000: NOP
repeat
wait 0
until samp.Available()
0AA7: call_function 0x81E532 num_params 8 pop 0 | FALSE FALSE FALSE FALSE 0@v FALSE FALSE FALSE | 1@ |
0AC8: 1@ = allocate_memory_size 16
0AD3: 1@ = format "%d" 0@
IF 0039: 0@ == "24FDF734"
THEN
jump @open
ELSE
wait 5000
msg "{0bfb00}Cleo, no activated. Please deleted cleo." 0xFFFFFF
samp.CmdRet()
END
0A93: end_custom_thread
:open
03F0: enable_text_draw 1
wait 0
0@ = Actor.Health($PLAYER_ACTOR)
03E4: enable_text_draw_align_right 1
033F: set_text_draw_letter_size 0.5 0.8
0340: set_text_draw_RGBA 0 255 0 255
081C: draw_text_outline 1 RGBA 0 0 0 55
045A: draw_text_1number 584.0 68.0 GXT 'NUMBER' number 0@ // ~1~
-_- , такое точно работать не будет.Исходя из выше написанного крафтиком, я попытался сделать привязку, взял скрипт для теста хп, получил серийник по видео пикселя, хотя это можно было сделать проще через Cliense.exe, ну не суть, суть в том что привязка не работает хз почему. вот код
CLEO:{$CLEO} {$INCLUDE SF} 0000: NOP repeat wait 0 until samp.Available() 0AA7: call_function 0x81E532 num_params 8 pop 0 | FALSE FALSE FALSE FALSE 0@v FALSE FALSE FALSE | 1@ | 0AC8: 1@ = allocate_memory_size 16 0AD3: 1@ = format "%d" 0@ IF 0039: 0@ == "24FDF734" THEN jump @open ELSE wait 5000 msg "{0bfb00}Cleo, no activated. Please deleted cleo." 0xFFFFFF samp.CmdRet() END 0A93: end_custom_thread :open 03F0: enable_text_draw 1 wait 0 0@ = Actor.Health($PLAYER_ACTOR) 03E4: enable_text_draw_align_right 1 033F: set_text_draw_letter_size 0.5 0.8 0340: set_text_draw_RGBA 0 255 0 255 081C: draw_text_outline 1 RGBA 0 0 0 55 045A: draw_text_1number 584.0 68.0 GXT 'NUMBER' number 0@ // ~1~
{$CLEO .cs}
{$I SF}
0000:
while not SAMP.Available()
wait 100
end
0AA7: call_function 0x81E532 num_params 8 pop 0 | FALSE FALSE FALSE FALSE 0@v FALSE FALSE FALSE | 1@ |
0af8: "Полученный серийник: %x" -1 0@
if 0@ == {тут верный серийник, например 0xb17a32df}
then
0af8: "Cleo activated." 0x0bfb00
else
0af8: "Cleo no activated. Please deleted cleo." 0xfb0b00
0A93: end_custom_thread
end
//...тут скрипт
Из-за функции конверд 3д в 2д координаты. Автор походу забыл указать, что надо было делать проверку игрока на видимость на экране.Не знаю где можно спросить о таком, поэтому спрошу тут.
Кто-нибудь знает из - за чего WH может дублировать ники на 180 градусов?
Т.е Смотришь вперед где стоит вдалеке игрок - показывает его ник, поворачиваешься назад, там тоже его ник показывается, хотя сам игрок стоит там, куда я первоначально смотрел.
Мне кажется тут дело не в этом, потому что тот вх которым я ранее пользовался и начал дублировать ники на 180 градусов, хотя ранее такого не было. Может быть это из-за какого - то софта на компе?Из-за функции конверд 3д в 2д координаты. Автор походу забыл указать, что надо было делать проверку игрока на видимость на экране.
Добавь проверку на видимость игрока на экране, тебе же ясно сказали.Мне кажется тут дело не в этом, потому что тот вх которым я ранее пользовался и начал дублировать ники на 180 градусов, хотя ранее такого не было. Может быть это из-за какого - то софта на компе?
{$CLEO .cs}
0000: NOP
repeat
wait 0
until SAMP.Available()
0af8: "{ffffff}Универсальный автоцвет.{EE00EE}[uCVET]{FF0000}/cvhelp" color 0xffffff
0af8: "{ffffff}Автор {0000ff}[BH]Smile edited {00FF00}LokoLoyKoo" color 0xffffff
0af8: "{ffffff}Специально для {1C86EE}GalaxY-RPG." color 0xffffff
0AC6: 0@ = label @text offset
0B34: samp register_client_command "cvhelp" to_label @CMD
if 8AAB: file_exists "cleo\ucvet.ini"
then
0AF1: write_int 22 to_ini_file "cleo\ucvet.ini" section "COLOR" key "ARMY"
0AF1: write_int 94 to_ini_file "cleo\ucvet.ini" section "COLOR" key "LVLS"
0AF1: write_int 87 to_ini_file "cleo\ucvet.ini" section "COLOR" key "FBI"
0AF1: write_int 3 to_ini_file "cleo\ucvet.ini" section "COLOR" key "M4S"
0AF1: write_int 82 to_ini_file "cleo\ucvet.ini" section "COLOR" key "REPORTERI"
0AF1: write_int 45 to_ini_file "cleo\ucvet.ini" section "COLOR" key "TAX"
0AF1: write_int 93 to_ini_file "cleo\ucvet.ini" section "COLOR" key "BALLAS"
0AF1: write_int 17 to_ini_file "cleo\ucvet.ini" section "COLOR" key "GROVE"
0AF1: write_int 16 to_ini_file "cleo\ucvet.ini" section "COLOR" key "CORONOS"
0AF1: write_int 10 to_ini_file "cleo\ucvet.ini" section "COLOR" key "VAGOS"
0AF1: write_int 96 to_ini_file "cleo\ucvet.ini" section "COLOR" key "LAWYERS"
0AF1: write_int 59 to_ini_file "cleo\ucvet.ini" section "COLOR" key "RIFA"
0AF1: write_int 84 to_ini_file "cleo\ucvet.ini" section "COLOR" key "BK"
0AF1: write_int 4 to_ini_file "cleo\ucvet.ini" section "COLOR" key "SR"
0AF1: write_int 44 to_ini_file "cleo\ucvet.ini" section "COLOR" key "LCN"
0AF1: write_int 72 to_ini_file "cleo\ucvet.ini" section "COLOR" key "YAKUZA"
0AF1: write_int 85 to_ini_file "cleo\ucvet.ini" section "COLOR" key "TTM"
0AF1: write_int 6 to_ini_file "cleo\ucvet.ini" section "COLOR" key "RM"
0AF1: write_int 91 to_ini_file "cleo\ucvet.ini" section "COLOR" key "BIKERS"
1@ = 0
:ifdead
wait 0
if and
1@ == 1
Actor.Dead($PLAYER_ACTOR)
else_jump @ifdead
//-------------------------------------------------- ARMY
if
0B61: samp is_local_player_spawned
then
if or
02F2: actor $PLAYER_ACTOR model == #ARMY
02F2: actor $PLAYER_ACTOR model == #GUNGRL3
then
wait 7500
0AF0: 5@ = get_int_from_ini_file "CLEO\ucvet.ini" section "COLOR" key "ARMY"
0af9: "/cvet %d" 5@
end
end
end
// ------------------------------------------------- LVLS
if
0B61: samp is_local_player_spawned
then
if or
02F2: actor $PLAYER_ACTOR model == #LAPDM1
02F2: actor $PLAYER_ACTOR model == #LAPD1
02F2: actor $PLAYER_ACTOR model == #lvpd1
02F2: actor $PLAYER_ACTOR model == #WFYCLPD
02F2: actor $PLAYER_ACTOR model == 267
02F2: actor $PLAYER_ACTOR model == 266
02F2: actor $PLAYER_ACTOR model == 265
02F2: actor $PLAYER_ACTOR model == #CSHER
then
wait 7500
0AF0: 5@ = get_int_from_ini_file "CLEO\ucvet.ini" section "COLOR" key "LVLS"
0af9: "/cvet %d" 5@
end
end
// ------------------------------------------------- FBI
if
0B61: samp is_local_player_spawned
then
if or
02F2: actor $PLAYER_ACTOR model == #SWAT
02F2: actor $PLAYER_ACTOR model == #FBI
02F2: actor $PLAYER_ACTOR model == #BMYBOUN
02F2: actor $PLAYER_ACTOR model == #WMYBOUN
then
wait 7500
0AF0: 5@ = get_int_from_ini_file "CLEO\ucvet.ini" section "COLOR" key "FBI"
0af9: "/cvet %d" 5@
end
end
// ------------------------------------------------- M4C
if
0B61: samp is_local_player_spawned
then
if or
02F2: actor $PLAYER_ACTOR model == #WMOSCI
02F2: actor $PLAYER_ACTOR model == #LAEMT1
02F2: actor $PLAYER_ACTOR model == #LVEMT1
02F2: actor $PLAYER_ACTOR model == #SFEMT1
02F2: actor $PLAYER_ACTOR model == #BMOBAR
then
wait 7500
0AF0: 5@ = get_int_from_ini_file "CLEO\ucvet.ini" section "COLOR" key "M4S"
0af9: "/cvet %d" 5@
end
end
// ------------------------------------------------- REPORTERI
if
0B61: samp is_local_player_spawned
if or
02F2: actor $PLAYER_ACTOR model == 290
02F2: actor $PLAYER_ACTOR model == #SWMYST
02F2: actor $PLAYER_ACTOR model == 295
02F2: actor $PLAYER_ACTOR model == #WFYBU
02F2: actor $PLAYER_ACTOR model == #SOMYBU
then
wait 7500
0AF0: 5@ = get_int_from_ini_file "CLEO\ucvet.ini" section "COLOR" key "REPORTERI"
0af9: "/cvet %d" 5@
end
// ------------------------------------------------- TAX
if
0B61: samp is_local_player_spawned
if or
02F2: actor $PLAYER_ACTOR model == #WMYCD1
02F2: actor $PLAYER_ACTOR model == #BMOCD
02F2: actor $PLAYER_ACTOR model == #BMOSEC
02F2: actor $PLAYER_ACTOR model == #WMYPLT
02F2: actor $PLAYER_ACTOR model == #WMYCH
02F2: actor $PLAYER_ACTOR model == #WMYPLT
02F2: actor $PLAYER_ACTOR model == #VWFYCRP
then
wait 7500
0AF0: 5@ = get_int_from_ini_file "CLEO\ucvet.ini" section "COLOR" key "TAX"
0af9: "/cvet %d" 5@
end
// ------------------------------------------------- BALLAS
if
0B61: samp is_local_player_spawned
if or
02F2: actor $PLAYER_ACTOR model == #BMYDRUG
02F2: actor $PLAYER_ACTOR model == #BALLAS2
02F2: actor $PLAYER_ACTOR model == #BALLAS1
02F2: actor $PLAYER_ACTOR model == #BALLAS3
02F2: actor $PLAYER_ACTOR model == #BFYST
then
wait 7500
0AF0: 5@ = get_int_from_ini_file "CLEO\ucvet.ini" section "COLOR" key "BALLAS"
0af9: "/cvet %d" 5@
end
// ------------------------------------------------- GROVE
if
0B61: samp is_local_player_spawned
if or
02F2: actor $PLAYER_ACTOR model == #FAM1
02F2: actor $PLAYER_ACTOR model == #FAM3
02F2: actor $PLAYER_ACTOR model == #FAM2
02F2: actor $PLAYER_ACTOR model == 269
02F2: actor $PLAYER_ACTOR model == 271
02F2: actor $PLAYER_ACTOR model == 270
then
wait 7500
0AF0: 5@ = get_int_from_ini_file "CLEO\ucvet.ini" section "COLOR" key "GROVE"
0af9: "/cvet %d" 5@
end
// ------------------------------------------------- CORONOS
if
0B61: samp is_local_player_spawned
if or
02F2: actor $PLAYER_ACTOR model == #HMYCR
02F2: actor $PLAYER_ACTOR model == #VLA1
02F2: actor $PLAYER_ACTOR model == #VLA2
02F2: actor $PLAYER_ACTOR model == #VLA3
02F2: actor $PLAYER_ACTOR model == 292
02F2: actor $PLAYER_ACTOR model == #NURGRL3
then
wait 7500
0AF0: 5@ = get_int_from_ini_file "CLEO\ucvet.ini" section "COLOR" key "CORONOS"
0af9: "/cvet %d" 5@
end
// ------------------------------------------------- VAGOS
if
0B61: samp is_local_player_spawned
if or
02F2: actor $PLAYER_ACTOR model == #LSV1
02F2: actor $PLAYER_ACTOR model == #LSV2
02F2: actor $PLAYER_ACTOR model == #LSV3
02F2: actor $PLAYER_ACTOR model == #BFYRI
02F2: actor $PLAYER_ACTOR model == 273
then
wait 7500
0AF0: 5@ = get_int_from_ini_file "CLEO\ucvet.ini" section "COLOR" key "VAGOS"
0af9: "/cvet %d" 5@
end
// ------------------------------------------------- LAWYERS
if
0B61: samp is_local_player_spawned
if or
02F2: actor $PLAYER_ACTOR model == #WMYCLOT
02F2: actor $PLAYER_ACTOR model == #BMYRI
02F2: actor $PLAYER_ACTOR model == #OMYRI
02F2: actor $PLAYER_ACTOR model == #SWMYRI
02F2: actor $PLAYER_ACTOR model == #CROGRL3
02F2: actor $PLAYER_ACTOR model == #WMYVA
02F2: actor $PLAYER_ACTOR model == #VWMYBJD
then
wait 7500
0AF0: 5@ = get_int_from_ini_file "CLEO\ucvet.ini" section "COLOR" key "LAWYERS"
0af9: "/cvet %d" 5@
end
// ------------------------------------------------- RIFA
if
0B61: samp is_local_player_spawned
if or
02F2: actor $PLAYER_ACTOR model == #SFR1
02F2: actor $PLAYER_ACTOR model == #SFR2
02F2: actor $PLAYER_ACTOR model == #SFR3
02F2: actor $PLAYER_ACTOR model == #HFYRI
02F2: actor $PLAYER_ACTOR model == #VHMYCR
02F2: actor $PLAYER_ACTOR model == #HMYDRUG
then
wait 7500
0AF0: 5@ = get_int_from_ini_file "CLEO\ucvet.ini" section "COLOR" key "RIFA"
0af9: "/cvet %d" 5@
end
// ------------------------------------------------- BK
if
0B61: samp is_local_player_spawned
if or
02F2: actor $PLAYER_ACTOR model == #WBDYG1
02F2: actor $PLAYER_ACTOR model == #BMYPOL2
02F2: actor $PLAYER_ACTOR model == #BMYPOL1
02F2: actor $PLAYER_ACTOR model == #WBDYG2
02F2: actor $PLAYER_ACTOR model == #VBMYCR
02F2: actor $PLAYER_ACTOR model == #COPGRL3
02F2: actor $PLAYER_ACTOR model == 297
then
wait 7500
0AF0: 5@ = get_int_from_ini_file "CLEO\ucvet.ini" section "COLOR" key "BK"
0af9: "/cvet %d" 5@
end
// ------------------------------------------------- SR
if
0B61: samp is_local_player_spawned
if or
02F2: actor $PLAYER_ACTOR model == #BMYCR
02F2: actor $PLAYER_ACTOR model == #BMYTATT
02F2: actor $PLAYER_ACTOR model == #OMYST
02F2: actor $PLAYER_ACTOR model == #SWMYCR
02F2: actor $PLAYER_ACTOR model == 299
02F2: actor $PLAYER_ACTOR model == #HMYST
then
wait 7500
0AF0: 5@ = get_int_from_ini_file "CLEO\ucvet.ini" section "COLOR" key "SR"
0af9: "/cvet %d" 5@
end
// ------------------------------------------------- BIKERS
if
0B61: samp is_local_player_spawned
if or
02F2: actor $PLAYER_ACTOR model == #WMYCR
02F2: actor $PLAYER_ACTOR model == #BIKERA
02F2: actor $PLAYER_ACTOR model == #BIKERB
02F2: actor $PLAYER_ACTOR model == #MECGRL3
then
wait 7500
0AF0: 5@ = get_int_from_ini_file "CLEO\ucvet.ini" section "COLOR" key "BIKERS"
0af9: "/cvet %d" 5@
end
// ------------------------------------------------- LCN
if
0B61: samp is_local_player_spawned
if or
02F2: actor $PLAYER_ACTOR model == #WMYRI
02F2: actor $PLAYER_ACTOR model == #SHMYCR
02F2: actor $PLAYER_ACTOR model == #HMYRI
02F2: actor $PLAYER_ACTOR model == #VMAFF3
02F2: actor $PLAYER_ACTOR model == #VMAFF1
02F2: actor $PLAYER_ACTOR model == #MAFBOSS
02F2: actor $PLAYER_ACTOR model == #SWFYST
then
wait 7500
0AF0: 5@ = get_int_from_ini_file "CLEO\ucvet.ini" section "COLOR" key "LCN"
0af9: "/cvet %d" 5@
end
// ------------------------------------------------- YAKUZA
if
0B61: samp is_local_player_spawned
if or
02F2: actor $PLAYER_ACTOR model == #DNB2
02F2: actor $PLAYER_ACTOR model == #DNB1
02F2: actor $PLAYER_ACTOR model == #DNB3
02F2: actor $PLAYER_ACTOR model == #SOMYRI
02F2: actor $PLAYER_ACTOR model == #SOMYRI
02F2: actor $PLAYER_ACTOR model == #TRIBOSS
02F2: actor $PLAYER_ACTOR model == #SOFYRI
then
wait 7500
0AF0: 5@ = get_int_from_ini_file "CLEO\ucvet.ini" section "COLOR" key "YAKUZA"
0af9: "/cvet %d" 5@
end
// ------------------------------------------------- TTM
if
0B61: samp is_local_player_spawned
if or
02F2: actor $PLAYER_ACTOR model == #OMYRI
02F2: actor $PLAYER_ACTOR model == #TRIADA
02F2: actor $PLAYER_ACTOR model == #TRIADB
02F2: actor $PLAYER_ACTOR model == 294
02F2: actor $PLAYER_ACTOR model == 208
02F2: actor $PLAYER_ACTOR model == #SOFYBU
02F2: actor $PLAYER_ACTOR model == #SOMYST
then
wait 7500
0AF0: 5@ = get_int_from_ini_file "CLEO\ucvet.ini" section "COLOR" key "TTM"
0af9: "/cvet %d" 5@
end
// ------------------------------------------------- RM
if
0B61: samp is_local_player_spawned
if or
02F2: actor $PLAYER_ACTOR model == #VWMYCD
02F2: actor $PLAYER_ACTOR model == #MAFFB
02F2: actor $PLAYER_ACTOR model == 3
02F2: actor $PLAYER_ACTOR model == #MAFFA
02F2: actor $PLAYER_ACTOR model == #VMAFF2
02F2: actor $PLAYER_ACTOR model == 272
then
wait 7500
0AF0: 5@ = get_int_from_ini_file "CLEO\ucvet.ini" section "COLOR" key "RM"
0af9: "/cvet %d" 5@
end
:notdead
wait 0
if
not Actor.Dead($PLAYER_ACTOR)
else_jump @notdead
jump @ifdead
Ну давай.Давай посчитаем сколько у тебя закрытых if-конструкций, а сколько end'ов ты пропустил. А ещё посчитаем сколько правильно построенных.