// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
{$USE CLEO+}
0000: NOP
if
8AAB: not file_exists "CLEO\Auto Trem.cs"
jf -4047
0A93: end_custom_thread
0662: printstring ""
0300:
000F: 16@ -= '' // Note: the incorrect math opcode was used here
hex
8F CA F4 C4 06 CD 6C 8E C3 03
end
0017: '' /= s$8265 // Note: the incorrect math opcode was used here
0644:
hex
48 B1 2B 45 03 19
end
0900: clear_object 3587 last_weapon_damage
0300:
000F: 2802.94 -= 1616.45 // Note: the incorrect math opcode was used here
hex
03 1B
end
0900: clear_object 3587 last_weapon_damage
0300:
000F: 2198.6 -= -1898.56 // Note: the incorrect math opcode was used here
hex
03 1D 00 D6
end
0400: store_coords_to
Actor.Driving($PLAYER_ACTOR)
jf -2630
Player.CanMove($PLAYER_CHAR, True)
Actor.LockInCurrentPosition($PLAYER_ACTOR, False)
if
not 23@ >= 1.0
jf -840
wait 0
if
21@ == 1
jf -696
4@ += 1
if
4@ >= 2000
jf -625
4@ = 0
chatmsg "{FF8C00}R{FFFFFF}ippzy {FF8C00}C{FFFFFF}heats - {FFFF00}Aviso{FFFFFF}:" -1
chatmsg "Verificamos que o seu trem está andando a muito tempo de ré! voltando para a HQ..." -1
jump -3248
Actor.StorePos($PLAYER_ACTOR, 14@, 15@, 16@)
0509: 24@ = distance_between_XY 14@ 15@ and_XY -1943.7 148.59
19@ = 12006488
19@ += 28
0A8C: write_memory 19@ size 1 value 255 virtual_protect 0
jump -703
jump -97
not 24@ >= 5.0
jf -397
4@ = 0
chatmsg "{FFFFFF}| {FF8C00}R{FFFFFF}ippzy | O trem foi descarregado na estação Cranberry Station" -1
:NONAME_861
8@ = 1
wait 5000
8@ = 0
if
not 25@ >= 1.0
jf -1304
wait 0
if
21@ == 1
jf -1160
4@ += 1
if
4@ >= 2000
jf -1089
4@ = 0
chatmsg "{FF8C00}R{FFFFFF}ippzy {FF8C00}C{FFFFFF}heats - {FFFF00}Aviso{FFFFFF}:" -1
chatmsg "Verificamos que o seu trem está andando a muito tempo de ré! voltando para a HQ..." -1
jump -3248
Actor.StorePos($PLAYER_ACTOR, 14@, 15@, 16@)
0509: 26@ = distance_between_XY 14@ 15@ and_XY 1431.46 2632.25
19@ = 12006488
19@ += 28
0A8C: write_memory 19@ size 1 value 255 virtual_protect 0
jump -1167
jump -97
not 26@ >= 5.0
jf @NONAME_861
4@ = 0
chatmsg "{FFFFFF}| {FF8C00}R{FFFFFF}ippzy | O trem foi descarregado na estação Sobell Rail Yards" -1
:NONAME_1325
8@ = 1
wait 5000
8@ = 0
if
not 27@ >= 1.0
jf -1900
wait 0
if
21@ == 1
jf -1624
4@ += 1
if
4@ >= 2000
jf -1553
4@ = 0
chatmsg "{FF8C00}R{FFFFFF}ippzy {FF8C00}C{FFFFFF}heats - {FFFF00}Aviso{FFFFFF}:" -1
chatmsg "Verificamos que o seu trem está andando a muito tempo de ré! voltando para a HQ..." -1
jump -3248
Actor.StorePos($PLAYER_ACTOR, 14@, 15@, 16@)
0509: 28@ = distance_between_XY 14@ 15@ and_XY 2864.75 1293.32
19@ = 12006488
19@ += 28
0A8C: write_memory 19@ size 1 value 255 virtual_protect 0
jump -1631
jump -97
not 28@ >= 5.0
jf @NONAME_1325
4@ = 0
chatmsg "{FFFFFF}| {FF8C00}R{FFFFFF}ippzy | O trem foi descarregado na estação de {3ADF00}Liden Station" -1
chatmsg "{FFFFFF}| {FF8C00}R{FFFFFF}ippzy | Trem totalmente descarregado, retornando à {3ADF00}HQ{FFFFFF} de maquinista!" -1
8@ = 1
20@ = 1
wait 5000
8@ = 0
if
20@ == 1
jf -2576
if
not 29@ >= 1.0
jf -2576
wait 0
if
21@ == 1
jf -2013
2@ = Actor.CurrentCar($PLAYER_ACTOR)
02E3: 7@ = car 2@ speed
19@ = 12006488
19@ += 28
0A8C: write_memory 19@ size 1 value 255 virtual_protect 0
jump -2020
jump -97
7@ == 0
jf -1939
8@ = 1
say "/carregar"
alloc 30@ 60
0C5A: samp textdraw 11@ get_string_to 30@
0AD4: $4 = scan_string 30@ format "~g~~h~Diesel ~w~%fL" 31@
if
not 31@ >= 54.9
jf -2429
chatmsg "{FFFFFF}| {FF8C00}R{FFFFFF}ippzy | Abastecendo o trem, Aguarde alguns minutos!" -1
chatmsg "{FFFFFF}| {FF8C00}R{FFFFFF}ippzy | Retornando ao trabalho em {00FF33}4 Minutos{FFFFFF}!" -1
wait 5000
say "/partida"
wait 5000
say "/abastecer"
wait 200
alloc 30@ 60
0C5A: samp textdraw 11@ get_string_to 30@
0AD4: $4 = scan_string 30@ format "~g~~h~Diesel ~w~%fL" 31@
free 30@
31@ == 300.0
jf -2341
say "/partida"
free 31@
wait 3000
8@ = 0
chatmsg "{FFFFFF}| {FF8C00}R{FFFFFF}ippzy | Descarregando Script" -1
chatmsg "{FFFFFF}| {FF8C00}R{FFFFFF}ippzy | Voltando ao Serviço" -1
20@ = 0
if
8@ == 0
jf -2623
18@ = 12006488
18@ += 32
0A8C: write_memory 18@ size 1 value 255 virtual_protect 0
jump -2797
21@ = 0
chatmsg "{FF8C00}R{FFFFFF}ippzy {FF8C00}C{FFFFFF}heats - {FFFF00}Aviso{FFFFFF}:" -1
chatmsg "Você não está dirigindo um trem, portanto o Auto-Trem foi {FF0000}desativado" -1
jump -97
if
Actor.DrivingVehicleType($PLAYER_ACTOR, #FREIGHT)
jf -3171
if
21@ == 0
jf -3067
if
00EE: actor $PLAYER_ACTOR sphere 0 near_point 1155154089 -990627656 radius 100.0 100.0 in_car
jf -2989
21@ = 1
say "/carregar"
chatmsg "{FFFFFF}| {FF8C00}R{FFFFFF}ippzy | Auto-Trem: {00FF33}Ativado" -1
SAMP.WriteSAMPMemory(83680, 50064, 2)
jump -3060
chatmsg "{FFFFFF}| {FF8C00}R{FFFFFF}ippzy | {FFFF00}Você não está na HQ!!" -1
jump -3164
21@ = 0
8@ = 0
chatmsg "{FFFFFF}| {FF8C00}R{FFFFFF}ippzy | Auto-Trem: {FF0000}Desativado" -1
SAMP.WriteSAMPMemory(83680, 28@, 2)
jump -3246
chatmsg "{FFFFFF}| {FF8C00}R{FFFFFF}ippzy | {FFFF00}Você não está em um trem!" -1
SAMP.CmdRet
wait 0
Actor.StorePos($PLAYER_ACTOR, 14@, 15@, 16@)
0509: 29@ = distance_between_XY 14@ 15@ and_XY 2198.6 -1898.56
if
not 29@ >= 1.0
jf -3942
wait 0
if
21@ == 1
jf -3382
2@ = Actor.CurrentCar($PLAYER_ACTOR)
02E3: 7@ = car 2@ speed
19@ = 12006488
19@ += 28
0A8C: write_memory 19@ size 1 value 255 virtual_protect 0
jump -3389
jump -97
7@ == 0
jf -3308
8@ = 1
say "/carregar"
alloc 30@ 60
0C5A: samp textdraw 11@ get_string_to 30@
0AD4: $4 = scan_string 30@ format "~g~~h~Diesel ~w~%fL" 31@
if
not 31@ >= 54.9
jf -3788
free 31@
chatmsg "{FFFFFF}| {FF8C00}R{FFFFFF}ippzy | Abastecendo o trem, Aguarde alguns minutos!" -1
chatmsg "{FFFFFF}| {FF8C00}R{FFFFFF}ippzy | Retornando ao trabalho em {00FF33}4 Minutos{FFFFFF}!" -1
wait 5000
say "/partida"
wait 5000
wait 200
alloc 30@ 60
0C5A: samp textdraw 11@ get_string_to 30@
0AD4: $4 = scan_string 30@ format "~g~~h~Diesel ~w~%fL" 31@
free 30@
31@ == 300.0
jf -3700
say "/partida"
free 31@
wait 3000
8@ = 0
chatmsg "{FFFFFF}| {FF8C00}R{FFFFFF}ippzy | Descarregando Script" -1
chatmsg "{FFFFFF}| {FF8C00}R{FFFFFF}ippzy | Voltando ao Serviço" -1
20@ = 0
jump -97
if
8@ == 0
jf -3989
18@ = 12006488
18@ += 32
0A8C: write_memory 18@ size 1 value 255 virtual_protect 0
jump -3248
0000: NOP
hex
00 5F 5F 53 42 46 54 52
end
0600: actor stopped_on_foot
0103: actor stopped_in_car
hex
06 A7
end
2@ = 0
:NONAME_4064
0A9F: 0@ = current_thread_pointer
0@ += 16
0A8D: 0@ = read_memory 0@ size 4 virtual_protect 1
005A: 2@ += 0@ // (int)
0A8E: 5@ = 2@ + 5.605194E-44 // int
0A8D: 3@ = read_memory 5@ size 1 virtual_protect 1
0A8C: write_memory 2@ size 1 value 3@ virtual_protect 1
0062: 2@ -= 0@ // (int)
2@ += 1
001D: 2@ > 1@ // (int)
jf @NONAME_4064
5@ = 0
4@ = 0
3@ = 0
2@ = 0
0A9F: 0@ = current_thread_pointer
0@ += 16
0A8D: 1@ = read_memory 0@ size 4 virtual_protect 1
0@ += 4
0A8C: write_memory 0@ size 4 value 1@ virtual_protect 1
hex
4A 31 E3 A7 78 2F D0 98 71 0C FB B6 79
end