// 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
0662: printstring "Farm babla for Pears Project"
0662: printstring "Автор скрипта: Ded_Fedot"
0662: printstring "Контакты: vk.com/idedfedot"
:Label00006B
wait 0
SAMP.Available
jf @Label00006B
0B34: samp register_client_command "pognali" to_label @Label0002D8
0B34: samp register_client_command "zabablom" to_label @Label00038C
0B34: samp register_client_command "prodat" to_label @Label000395
SAMP.ReadSAMPMemory(6@, 104848, 2)
SAMP.ReadSAMPMemory(8@, 85104, 2)
SAMP.ReadSAMPMemory(9@, 94112, 2)
SAMP.ReadSAMPMemory(10@, 52144, 2)
:Label0000D8
wait 0
if
1@ == 1
jf @Label0001BA
SAMP.WriteSAMPMemory(104848, 50064, 2)
SAMP.WriteSAMPMemory(85104, 50064, 2)
SAMP.WriteSAMPMemory(94112, 50064, 2)
SAMP.WriteSAMPMemory(52144, 50064, 2)
0BCA: samp send_click_textdraw 159
wait 5
0AF0: 7@ = get_int_from_ini_file "CLEO\FarmBabla.ini" section "Ded_Fedot" key "KeyOff"
if
key_down 7@
jf @Label0001BA
1@ = 0
SAMP.WriteSAMPMemory(104848, 6@, 2)
SAMP.WriteSAMPMemory(85104, 8@, 2)
SAMP.WriteSAMPMemory(94112, 9@, 2)
SAMP.WriteSAMPMemory(52144, 10@, 2)
0ACF: show_formatted_styled_text "~w~FARM ~r~OFF" time 1000 style 2
:Label0001BA
if
2@ == 1
jf @Label000239
Actor.StorePos($PLAYER_ACTOR, 3@, 4@, 5@)
wait 500
Actor.PutAt($PLAYER_ACTOR, 13.3314, 1865.868, 17.6476)
0C72: set_virtual_key 89 down 1
wait 200
0C72: set_virtual_key 89 down 0
wait 100
SAMP.SetDialogListItem(1)
SAMP.CloseDialog(1)
Actor.PutAt($PLAYER_ACTOR, 3@, 4@, 5@)
018C: play_sound 1139 at 0.0 0.0 0.0
2@ = 0
:Label000239
if
11@ == 1
jf @Label0002D1
Actor.StorePos($PLAYER_ACTOR, 3@, 4@, 5@)
wait 500
Actor.PutAt($PLAYER_ACTOR, 1370.983, -1345.305, 895.964)
0C72: set_virtual_key 89 down 1
wait 200
0C72: set_virtual_key 89 down 0
wait 100
SAMP.SetDialogListItem(0)
wait 500
SAMP.CloseDialog(1)
wait 1000
SAMP.CloseDialog(1)
Actor.PutAt($PLAYER_ACTOR, 3@, 4@, 5@)
0BC9: samp send_dialog_response dialog 669 button 1 listitem 0 input ""
018C: play_sound 1139 at 0.0 0.0 0.0
11@ = 0
:Label0002D1
goto @Label0000D8
:Label0002D8
wait 0
if
1@ == 0
jf @Label000327
1@ = 1
018C: play_sound 1139 at 0.0 0.0 0.0
0ACF: show_formatted_styled_text "~w~FARM ~g~ON" time 1000 style 2
goto @Label00038A
:Label000327
SAMP.WriteSAMPMemory(104848, 6@, 2)
SAMP.WriteSAMPMemory(85104, 8@, 2)
SAMP.WriteSAMPMemory(94112, 9@, 2)
SAMP.WriteSAMPMemory(52144, 10@, 2)
0ACF: show_formatted_styled_text "~w~FARM ~r~OFF" time 1000 style 2
018C: play_sound 1138 at 0.0 0.0 0.0
1@ = 0
:Label00038A
SAMP.CmdRet
:Label00038C
2@ = 1
SAMP.CmdRet
:Label000395
11@ = 1
SAMP.CmdRet