Ну давай.
{$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"
end
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
// ------------------------------------------------- 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
then
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
end
// ------------------------------------------------- TAX
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- BALLAS
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- GROVE
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- CORONOS
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- VAGOS
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- LAWYERS
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- RIFA
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- BK
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- SR
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- BIKERS
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- LCN
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- YAKUZA
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- TTM
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- RM
if 0B61: samp is_local_player_spawned
then
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
end
:notdead
wait 0
if
not Actor.Dead($PLAYER_ACTOR)
else_jump @notdead
jump @ifdead
:CMD
0B3B: samp show_dialog id 420 caption "{EE7600}Lawyer Script by LokoLoyKoo" text 0@ button_1 "OK" button_2 "Закрыть" style {DIALOG_STYLE_MSGBOX}0
0B43: samp cmd_ret
:text
hex
7B "54FF9F" 7D "Скрипт адаптирован под сервера GalaxY, любые предложения по улучшению скрипта принимаются" 20 7B "00BFFF" 7D "Skype - jimmy.yuma" A
7B "54FF9F" 7D "Цвета распределяются по скинам игрока." 20 7B "008B8B" 7D "Смотреть в ucvet.ini" 20 7B "90EE90" "Все настраивать тум"
7B "54FF9F" 7D "Авторы" 20 7B "ffffff" 7D "-" 20 "[BH]Smile edited to LokoLoyKoo" A
7B "54FF9F" 7D "Приятной игры" 00
Конструкции перрепроверь еще раз.Вроде бы сделал как вы сказали, но все равно не работает при спавне
CLEO:{$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" end 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 // ------------------------------------------------- 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 then 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 end // ------------------------------------------------- TAX if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- BALLAS if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- GROVE if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- CORONOS if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- VAGOS if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- LAWYERS if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- RIFA if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- BK if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- SR if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- BIKERS if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- LCN if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- YAKUZA if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- TTM if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- RM if 0B61: samp is_local_player_spawned then 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 end :notdead wait 0 if not Actor.Dead($PLAYER_ACTOR) else_jump @notdead jump @ifdead :CMD 0B3B: samp show_dialog id 420 caption "{EE7600}Lawyer Script by LokoLoyKoo" text 0@ button_1 "OK" button_2 "Закрыть" style {DIALOG_STYLE_MSGBOX}0 0B43: samp cmd_ret :text hex 7B "54FF9F" 7D "Скрипт адаптирован под сервера GalaxY, любые предложения по улучшению скрипта принимаются" 20 7B "00BFFF" 7D "Skype - jimmy.yuma" A 7B "54FF9F" 7D "Цвета распределяются по скинам игрока." 20 7B "008B8B" 7D "Смотреть в ucvet.ini" 20 7B "90EE90" "Все настраивать тум" 7B "54FF9F" 7D "Авторы" 20 7B "ffffff" 7D "-" 20 "[BH]Smile edited to LokoLoyKoo" A 7B "54FF9F" 7D "Приятной игры" 00
Не вижу я где, прекрасно все компилируется, но работает только после смерти а при спавне не хочет.Конструкции перрепроверь еще раз.
табуляция никак не влияет на компиляциюпрекрасно все компилируется
в 22 местахНе вижу я где
:START
wait 0
if
0AB0: key_pressed 98
jf @START
if
0AB1: call @nearid 0 retr_to fdist 0@ sid 1@
0B20: samp 9@ = actor_handle_by_samp_player_id 1@
jf @START
if or
02F2: not actor 9@ model == #SWAT
02F2: not actor 9@ model == #ARMY
02F2: not actor 9@ model == #WFYCLPD
then
0AF9: "/frisk %d" 1@
jump @START
else
0AF9: samp say_msg "Обыскиваешь законника же"
jump @START
end
jump @START
Если в 22-ух местах выдели эти места, я не вижу ихтабуляция никак не влияет на компиляцию
в 22 местах
Научись пользоваться табуляцией, у меня кровь из глазЕсли в 22-ух местах выдели эти места, я не вижу их
{$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 "1"
0AF1: write_int 94 to_ini_file "cleo\ucvet.ini" section "COLOR" key "2"
0AF1: write_int 87 to_ini_file "cleo\ucvet.ini" section "COLOR" key "3"
0AF1: write_int 3 to_ini_file "cleo\ucvet.ini" section "COLOR" key "4"
0AF1: write_int 82 to_ini_file "cleo\ucvet.ini" section "COLOR" key "5"
0AF1: write_int 45 to_ini_file "cleo\ucvet.ini" section "COLOR" key "6"
0AF1: write_int 93 to_ini_file "cleo\ucvet.ini" section "COLOR" key "7"
0AF1: write_int 17 to_ini_file "cleo\ucvet.ini" section "COLOR" key "8"
0AF1: write_int 16 to_ini_file "cleo\ucvet.ini" section "COLOR" key "9"
0AF1: write_int 10 to_ini_file "cleo\ucvet.ini" section "COLOR" key "10"
0AF1: write_int 96 to_ini_file "cleo\ucvet.ini" section "COLOR" key "11"
0AF1: write_int 59 to_ini_file "cleo\ucvet.ini" section "COLOR" key "12"
0AF1: write_int 84 to_ini_file "cleo\ucvet.ini" section "COLOR" key "13"
0AF1: write_int 4 to_ini_file "cleo\ucvet.ini" section "COLOR" key "14"
0AF1: write_int 44 to_ini_file "cleo\ucvet.ini" section "COLOR" key "15"
0AF1: write_int 72 to_ini_file "cleo\ucvet.ini" section "COLOR" key "16"
0AF1: write_int 85 to_ini_file "cleo\ucvet.ini" section "COLOR" key "17"
0AF1: write_int 6 to_ini_file "cleo\ucvet.ini" section "COLOR" key "18"
0AF1: write_int 91 to_ini_file "cleo\ucvet.ini" section "COLOR" key "19"
end
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 "1"
0af9: "/cvet %d" 5@
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 "2"
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 "3"
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
then
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
end
// ------------------------------------------------- TAX
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- BALLAS
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- GROVE
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- CORONOS
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- VAGOS
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- LAWYERS
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- RIFA
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- BK
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- SR
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- BIKERS
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- LCN
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- YAKUZA
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- TTM
if 0B61: samp is_local_player_spawned
then
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
end
// ------------------------------------------------- RM
if 0B61: samp is_local_player_spawned
then
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
end
:notdead
wait 0
if
not Actor.Dead($PLAYER_ACTOR)
else_jump @notdead
jump @ifdead
:CMD
0B3B: samp show_dialog id 420 caption "{EE7600}Lawyer Script by LokoLoyKoo" text 0@ button_1 "OK" button_2 "Закрыть" style {DIALOG_STYLE_MSGBOX}0
0B43: samp cmd_ret
:text
hex
7B "54FF9F" 7D "Скрипт адаптирован под сервера GalaxY, любые предложения по улучшению скрипта принимаются" 20 7B "00BFFF" 7D "Skype - jimmy.yuma" A
7B "54FF9F" 7D "Цвета распределяются по скинам игрока." 20 7B "008B8B" 7D "Смотреть в ucvet.ini" 20 7B "90EE90" "Все настраивать там"
7B "54FF9F" 7D "Авторы" 20 7B "ffffff" 7D "-" 20 "[BH]Smile edited to LokoLoyKoo" A
7B "54FF9F" 7D "Приятной игры" 00
end
У тебя в 1@ всегда 0. Скрипт зацикливается на первом условии.Вроде бы сделал как надо, но теперь даже после кила не работает.
CLEO:{$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 "1" 0AF1: write_int 94 to_ini_file "cleo\ucvet.ini" section "COLOR" key "2" 0AF1: write_int 87 to_ini_file "cleo\ucvet.ini" section "COLOR" key "3" 0AF1: write_int 3 to_ini_file "cleo\ucvet.ini" section "COLOR" key "4" 0AF1: write_int 82 to_ini_file "cleo\ucvet.ini" section "COLOR" key "5" 0AF1: write_int 45 to_ini_file "cleo\ucvet.ini" section "COLOR" key "6" 0AF1: write_int 93 to_ini_file "cleo\ucvet.ini" section "COLOR" key "7" 0AF1: write_int 17 to_ini_file "cleo\ucvet.ini" section "COLOR" key "8" 0AF1: write_int 16 to_ini_file "cleo\ucvet.ini" section "COLOR" key "9" 0AF1: write_int 10 to_ini_file "cleo\ucvet.ini" section "COLOR" key "10" 0AF1: write_int 96 to_ini_file "cleo\ucvet.ini" section "COLOR" key "11" 0AF1: write_int 59 to_ini_file "cleo\ucvet.ini" section "COLOR" key "12" 0AF1: write_int 84 to_ini_file "cleo\ucvet.ini" section "COLOR" key "13" 0AF1: write_int 4 to_ini_file "cleo\ucvet.ini" section "COLOR" key "14" 0AF1: write_int 44 to_ini_file "cleo\ucvet.ini" section "COLOR" key "15" 0AF1: write_int 72 to_ini_file "cleo\ucvet.ini" section "COLOR" key "16" 0AF1: write_int 85 to_ini_file "cleo\ucvet.ini" section "COLOR" key "17" 0AF1: write_int 6 to_ini_file "cleo\ucvet.ini" section "COLOR" key "18" 0AF1: write_int 91 to_ini_file "cleo\ucvet.ini" section "COLOR" key "19" end 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 "1" 0af9: "/cvet %d" 5@ 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 "2" 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 "3" 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 then 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 end // ------------------------------------------------- TAX if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- BALLAS if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- GROVE if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- CORONOS if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- VAGOS if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- LAWYERS if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- RIFA if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- BK if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- SR if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- BIKERS if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- LCN if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- YAKUZA if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- TTM if 0B61: samp is_local_player_spawned then 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 end // ------------------------------------------------- RM if 0B61: samp is_local_player_spawned then 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 end :notdead wait 0 if not Actor.Dead($PLAYER_ACTOR) else_jump @notdead jump @ifdead :CMD 0B3B: samp show_dialog id 420 caption "{EE7600}Lawyer Script by LokoLoyKoo" text 0@ button_1 "OK" button_2 "Закрыть" style {DIALOG_STYLE_MSGBOX}0 0B43: samp cmd_ret :text hex 7B "54FF9F" 7D "Скрипт адаптирован под сервера GalaxY, любые предложения по улучшению скрипта принимаются" 20 7B "00BFFF" 7D "Skype - jimmy.yuma" A 7B "54FF9F" 7D "Цвета распределяются по скинам игрока." 20 7B "008B8B" 7D "Смотреть в ucvet.ini" 20 7B "90EE90" "Все настраивать там" 7B "54FF9F" 7D "Авторы" 20 7B "ffffff" 7D "-" 20 "[BH]Smile edited to LokoLoyKoo" A 7B "54FF9F" 7D "Приятной игры" 00 end
{$CLEO}
{$INCLUDE SF}
0000:
repeat
wait 2000
until 0AFA: is_samp_available
while true
wait 0
if
00DF: actor $PLAYER_ACTOR driving
then
03C0: 4@ = actor $PLAYER_ACTOR car
0AB1: call_scm_func @Position 2 4@ 20 | 5@ 6@ 7@
0AB1: call_scm_func @Draw 3 5@ 6@ 7@
end
end
:Position
0A97: 25@ = 0@
0AC7: 26@ = var 26@ offset
0AA6: call_method 0x871EE4 struct 25@ num_params 3 pop 0 1 1@ 26@
0AB2: ret 3 26@ 27@ 28@
:Draw
0B55: convert_3D_coords 0@ 1@ 2@ to_screen 25@ 26@
0B70: render draw_polygon_pos 25@ 26@ size 10 10 corners 10 rotation 0 color 0xFFFFFFFF
0AB2: ret 0