- 3
- 1
Нужно сделать, чтобы клео искало груз, узнавало id и писало /tsave id
CLEO:
// This file was decompiled using SASCM.ini published by GTAG ([URL]http://gtag.gtagaming.com/opcode-database[/URL]) on 14.6.2013
{$CLEO .cs}
//-------------MAIN---------------
wait 0
:NONAME_5
not SAMP.Available
else_jump @NONAME_26
wait 1337
jump @NONAME_5
:NONAME_26
0B34: samp register_client_command "tun" to_label [USER=151047]@cmd[/USER]
0BDE: pause_thread 0
while true
wait 0
if
30@ == 1
then
0AC8: 3@ = allocate_memory_size 128
0AC8: 5@ = allocate_memory_size 64
Actor.StorePos($PLAYER_ACTOR, 4@ 5@ 6@)
if
0AE2: 0@ = random_vehicle_near_point 4@ 5@ 6@ in_radius 200.0 find_next 0 pass_wrecked 1
then
repeat
wait 0
if or
car.Model(0@) == 584
car.Model(0@) == 450
car.Model(0@) == 420
then
0B2C: samp 2@ = get_vehicle_id_by_car_handle 0@
wait 100
0AD3: string 4@ format "tsave %d" 2@
printf "Trailer saved[%d]" 3333 2@
end
until 8AE2: not 0@ = random_vehicle_near_point 4@ 5@ 6@ in_radius 200.0 find_next 0 pass_wrecked 1
end
end
0ac9: 3@
0ac9: 5@
end
:cmd
0b12: 30@ = 30@ xor 1
samp.CmdRet
Последнее редактирование модератором: