Требуется помощь в склейке CLEO

Статус
В этой теме нельзя размещать новые ответы.

Renzzs

Известный
Автор темы
71
21
Здарова народ,нуждаюсь в помощи,не могу соединить 2 скрипта в один,исходники оставлю ниже.
Вот эту коллизию,нужно вкатать в скрипт,что ниже.
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP
if
0@ = SAMP.Base()
jf @Noname_20
0A93: end_custom_thread

:Noname_20
wait 100
SAMP.Available
jf @Noname_20
0B34: samp register_client_command "plcol" to_label @Noname_165
0B34: samp register_client_command "ecol" to_label @Noname_165

:Noname_60
wait 0
if
not 1@ == 0
jf @Noname_158
2@ = 0

:Noname_89
if
SAMP.IsPlayerConnected(2@)
jf @Noname_136
3@ = SAMP.GetActorHandleByPlayerID(2@)
if
056D: actor 3@ defined
jf @Noname_136
0619: enable_actor 3@ collision_detection 0

:Noname_136
2@ += 1
2@ > 1000
jf @Noname_89

:Noname_158
goto @Noname_60

:Noname_165
0B12: 1@ = 1@ XOR 1
if
1@ == 1
jf @Noname_250
chatmsg "[Player Collision]{FFFFFF} Активировано." 65280
goto @Noname_297

:Noname_250
chatmsg "[Player Collision]{FFFFFF} Отключено." 65280

:Noname_297
SAMP.CmdRet
Вот сюда,главное чтобы все функционировало,в смысле и коллизия и бот.
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP "Renzzs"

:NONAME_2
wait 0
SAMP.Available()
else_jump @NONAME_2
chatmsg "{0174DF}[DRPBOT] {A3E900}Успешно загружен. Автор: {ff001e}Renzzs" -1
chatmsg "{FFC900}Активация: {66FF00}/drpbotz" 8306926
0B34: samp register_client_command "drpbotz" to_label @cmd
:3
wait 0
if 10@ == 1
jf @3
jump @4

:4
wait 0
0ACC: show_text_lowpriority "~y~DRP BOT ~g~ON" time 2000
jump @1
:1
while true
wait 0
if 10@ == 1
then
Actor.StorePos($PLAYER_ACTOR, 3@, 4@, 5@)
0AB3: var 740 = 2
wait 1000
05D3: AS_actor $PLAYER_ACTOR goto_point 2559.2183 -1287.2196 1044.1250 mode 6 time 2800 ms // versionA
if
00ED: actor $PLAYER_ACTOR sphere 0 near_point 2559.2183 -1287.2196 radius 1044.13 0.5 on_foot
wait 3000
if 10@ == 0
then
goto @90
end
05D3: AS_actor $PLAYER_ACTOR goto_point 2554.5654 -1289.7130 1044.1250 mode 6 time 2800 ms // versionA
if
00ED: actor $PLAYER_ACTOR sphere 0 near_point 2554.5654 -1289.7130 radius 1044.13 0.5 on_foot
wait 1500
if 10@ == 0
then
goto @90
end
05D3: AS_actor $PLAYER_ACTOR goto_point 2550.9854 -1287.2181 1044.1250 mode 6 time 2800 ms // versionA
if
00ED: actor $PLAYER_ACTOR sphere 0 near_point 2550.9854 -1287.2181 radius 1044.13 0.5 on_foot
wait 1500
if 10@ == 0
then
goto @90
end
05D3: AS_actor $PLAYER_ACTOR goto_point 2546.5579 -1290.6818 1044.1250 mode 6 time 2800 ms // versionA
if
00ED: actor $PLAYER_ACTOR sphere 0 near_point 2546.5579 -1290.6818 radius 1044.13 0.5 on_foot
wait 1500
if 10@ == 0
then
goto @90
end
//Стол 1
05D3: AS_actor $PLAYER_ACTOR goto_point 2541.9312 -1291.3306 1044.1250 mode 6 time 2800 ms // versionA
if
00ED: actor $PLAYER_ACTOR sphere 0 near_point 2541.9312 -1291.3306 radius 1044.13 0.5 on_foot
wait 11000
if 10@ == 0
then
goto @90
end
05D3: AS_actor $PLAYER_ACTOR goto_point 2547.8501 -1289.8627 1044.1250 mode 6 time 2800 ms // versionA
if
00ED: actor $PLAYER_ACTOR sphere 0 near_point 2547.8501 -1289.8627 radius 1044.13 0.5 on_foot
wait 1500
if 10@ == 0
then
goto @90
end
05D3: AS_actor $PLAYER_ACTOR goto_point 2560.7476 -1289.8092 1044.1250 mode 6 time 2800 ms // versionA
if
00ED: actor $PLAYER_ACTOR sphere 0 near_point 2560.7476 -1289.8092 radius 1044.13 0.5 on_foot
wait 2300
if 10@ == 0
then
goto @90
end
05D3: AS_actor $PLAYER_ACTOR goto_point 2564.7874 -1293.0221 1044.1250 mode 6 time 2800 ms // versionA
if
00ED: actor $PLAYER_ACTOR sphere 0 near_point 2564.7874 -1293.0221 radius 1044.13 0.5 on_foot
wait 3000
if 10@ == 0
then
goto @90
end
//Путь 2
05D3: AS_actor $PLAYER_ACTOR goto_point 2559.2385 -1299.8881 1044.1250 mode 6 time 2800 ms // versionA
if
00ED: actor $PLAYER_ACTOR sphere 0 near_point 2559.2385 -1299.8881 radius 1044.13 0.5 on_foot
wait 3000
if 10@ == 0
then
goto @90
end
05D3: AS_actor $PLAYER_ACTOR goto_point 2554.9897 -1298.5219 1044.1250 mode 6 time 2800 ms // versionA
if
00ED: actor $PLAYER_ACTOR sphere 0 near_point 2554.9897 -1298.5219 radius 1044.13 0.5 on_foot
wait 2300
if 10@ == 0
then
goto @90
end
05D3: AS_actor $PLAYER_ACTOR goto_point 2551.2195 -1299.9700 1044.1250 mode 6 time 2800 ms // versionA
if
00ED: actor $PLAYER_ACTOR sphere 0 near_point 2551.2195 -1299.9700 radius 1044.13 0.5 on_foot
wait 2300
if 10@ == 0
then
goto @90
end
05D3: AS_actor $PLAYER_ACTOR goto_point 2546.8450 -1298.4668 1044.1250 mode 6 time 2800 ms // versionA
if
00ED: actor $PLAYER_ACTOR sphere 0 near_point 2546.8450 -1298.4668 radius 1044.13 0.5 on_foot
wait 2300
if 10@ == 0
then
goto @90
end
//Стол 2
05D3: AS_actor $PLAYER_ACTOR goto_point 2541.9832 -1295.5941 1044.1250 mode 6 time 2800 ms // versionA
if
00ED: actor $PLAYER_ACTOR sphere 0 near_point 2541.9832 -1295.5941 radius 1044.13 0.5 on_foot
wait 11000
if 10@ == 0
then
goto @90
end
05D3: AS_actor $PLAYER_ACTOR goto_point 2560.2412 -1297.6194 1044.1250 mode 6 time 5000 ms // versionA
if
00ED: actor $PLAYER_ACTOR sphere 0 near_point 2560.2412 -1297.6194 radius 1044.13 0.5 on_foot
wait 5000
if 10@ == 0
then
goto @90
end
05D3: AS_actor $PLAYER_ACTOR goto_point 2564.7886 -1293.1620 1044.1250 mode 6 time 2800 ms // versionA
if
00ED: actor $PLAYER_ACTOR sphere 0 near_point 2564.7886 -1293.1620 radius 1044.13 0.5 on_foot
wait 3000
if 10@ == 0
then
goto @90
end
end
end

:cmd
0B12: 10@ = 10@ XOR 1
//0AB3: var 740 = 0
SAMP.CmdRet

:90
0AB3: var 740 = 0
0ACC: show_text_lowpriority "~y~DRP BOT ~r~OFF" time 1000
0687: clear_actor $PLAYER_ACTOR task
wait 100
goto @3
 
Последнее редактирование:

Vovich

HOT
Проверенный
717
197
Просто вот это помести в бесконечный цикл.
Код:
for 2@ = 0 to 1000
  if SAMP.IsPlayerConnected(2@)
  then
  3@ = SAMP.GetActorHandleByPlayerID(2@)
     if 056D: actor 3@ defined 
     then
     0619: enable_actor 3@ collision_detection 0
     end
   end
end
 
  • Нравится
Реакции: Renzzs
Статус
В этой теме нельзя размещать новые ответы.