You are on page 1of 20

// This file was decompiled using SASCM.

ini published by GTAG


(http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
//__________________GLOBALE VARIABLE ______________________//
wait 3000 // debugger
0af8:"{0000ff}SFPD{0000ff} Cop CMD By {00ff00}Marian{00ff00}{FF0000}05{ff0000}"
99999999
if
0AAB: file_exists "CLEO\config.ini"
then
0AF0: $ActivationKey = get_int_from_ini_file "CLEO\config.ini" section "KeyBinds"
key "ActivationKey"
0AF0: $HPV1000SpeedKey = get_int_from_ini_file "CLEO\config.ini" section "KeyBinds"
key "Key"
0AF0: $HPV1000Speedpoints = get_int_from_ini_file "CLEO\config.ini" section
"KeyBinds" key "Speed"
0AF0: $MSKEY1 = get_int_from_ini_file "CLEO\config.ini" section "KeyBinds" key
"MSKey1"
0AF0: $MSKEY2 = get_int_from_ini_file "CLEO\config.ini" section "KeyBinds" key
"MSKey2"
0AF0: $DrugsKey1 = get_int_from_ini_file "CLEO\config.ini" section "KeyBinds" key
"DrugsKey1"
0AF0: $DrugsKey2 = get_int_from_ini_file "CLEO\config.ini" section "KeyBinds" key
"DrugsKey2"
0AF0: $ControlKey1 = get_int_from_ini_file "CLEO\config.ini" section "KeyBinds" key
"ControlKey1"
0AF0: $ControlKey2 = get_int_from_ini_file "CLEO\config.ini" section "KeyBinds" key
"ControlKey2"
0AF0: $cuffKey1 = get_int_from_ini_file "CLEO\config.ini" section "KeyBinds" key
"CuffKey1"
0AF0: $cuffKey2 = get_int_from_ini_file "CLEO\config.ini" section "KeyBinds" key
"CuffKey2"
end
v$HPV1000Speed = "False"
$IdSuspectKey=9999
//__________________MENU TABLE Start ______________________//
:Menu //meniu principal
while true
wait 0 // debugger
call @HPV100SpeedCode 0 15@

if
0AB0: $ActivationKey // Daca buttonul este apasat 4 = Mouse Middle button sau
Rotita
then
:MenuStart // De aici incepe cand este redirectionat de un meniu secundar.
wait 0 // debugger
if
v$HPV1000Speed == "False"
then
0AC6: 0@ = label @MenuOffsetOff offset
else
0AC6: 0@ = label @MenuOffsetOn offset
end
0B3B: samp show_dialog id 999 caption "SFPD CMD" text 0@ button_1 "Ok"
button_2 "Cancel" style 2
end //end if
if samp.DialogRespond(999,2@,3@,0)
then
if and// 1
2@ == 1 // Button
3@ == 0 // Item selectat 0 = Primul item
then
goto @RoadsTableStart
end //end if and
if and //2
2@ == 1 // Button
3@ == 1 // Item selectat 0 = Primul item
then
goto @SWATTable
end //end if and

if and //2
2@ == 1 // Button
3@ == 2 // Item selectat 0 = Primul item
then
0af9:"/duty"
0af9: "/heal"
end //end if and

if and //2
2@ == 1 // Button
3@ == 3 // Item selectat 0 = Primul item
then
0af9:"/Spawnchange"
end //end if and

if and //3
2@ == 1 // Button
3@ == 4 // Item selectat 0 = Primul item
then
// goto @HPV1000TableStart // Sare la meniul HPV1000YTable
if
v$HPV1000Speed == "False"
then
v$HPV1000Speed = "True"
goto @MenuStart
end
if
v$HPV1000Speed == "True"
then
v$HPV1000Speed = "False"
goto @MenuStart
end

end //end if and


end // end if
End // End while
goto @Menu
:MenuOffsetOff // Textul din Tabel

HEX
">Roads" A
">SWAT" A
">Duty" A
">Spawn Change" A
">HPV1000 Speed: Disabled" 0

END
:MenuOffsetOn // Textul din Tabel

HEX
">Roads" A
">SWAT" A
">Duty" A
">Spawn Change" A
">HPV1000 Speed: Enabled" 0

END
//__________________MENU TABLE END ______________________//

//__________________Roads TABLE Start ______________________//


:RoadsTable
while true
wait 0 // debugger
call @HPV100SpeedCode 0 15@

if
0AB0: $ActivationKey // Daca buttonul este apasat 4 = Mouse Middle button sau
Rotita
then
wait 0 // debugger
:RoadsTableStart // De aici incepe cand este redirectionat de un
meniu.
0AC6: 0@ = label @RoadsTableOffset offset
0B3B: samp show_dialog id 998 caption "Roads Caption" text 0@ button_1
"Ok" button_2 "Cancel" style 2
end
if
samp.DialogRespond(998,2@,3@,0)
then
if and //Activeaza
2@ == 1 // Button
3@ == 0 // Item selectat 0 = Primul item
then
//1
goto @RadarTableStart

end //end if and


if and //Dezactiveaza
2@ == 1 // Button
3@ == 1 // Item selectat 0 = Primul item
then
//2
goto @FaruriTable
end //end if and
if and //Dezactiveaza
2@ == 1 // Button
3@ == 2 // Item selectat 0 = Primul item
then
//2
goto @FaruriSWATTableStart
end //end if and
if and //Meniu Principal
2@ == 1 // Button
3@ == 3 // Item selectat 0 = Primul item
then
//3
jump to @MenuStart
end //end if and

end //end if
END //end while
goto @RoadsTable
:RoadsTableOffset // Textul din Tabel
HEX
">Radar" A
">Faruri/NOS by Find" A
">Faruri/NOS by Closest Player" A
">Meniu Principal" 0

END
//__________________Roads TABLE END ______________________//

//__________________Radar TABLE Start ______________________//


:RadarTable
while true
wait 0 // debugger
call @HPV100SpeedCode 0 15@

wait 0
if
0AB0: $ActivationKey // Daca buttonul este apasat 4 = Mouse Middle button
sau Rotita
then
wait 0 // debugger
:RadarTableStart // De aici incepe cand este redirectionat de un meniu.
0AC6: 0@ = label @RadarTableOffset offset
0B3B: samp show_dialog id 998 caption "Radar Caption" text 0@ button_1 "Ok"
button_2 "Cancel" style 2
end
if
samp.DialogRespond(998,2@,3@,0)
then
if and //Activeaza
2@ == 1 // Button
3@ == 0 // Item selectat 0 = Primul item
then

0af9:"/stopradar"
0af9: "/Find %d" $IdSuspect
SAMP.WriteSAMPMemory(1154236, 1, 1)

end //end if and


if and //Activeaza
2@ == 1 // Button
3@ == 1 // Item selectat 0 = Primul item
then

if or
00EC: actor $PLAYER_ACTOR sphere 0 near_point 1361.2874 -1018.5754
radius 5.0 5.0 //Temple
00EC: actor $PLAYER_ACTOR sphere 0 near_point 370.0159 -1709.3291 radius
5.0 5.0 //SMB
00EC: actor $PLAYER_ACTOR sphere 0 near_point 957.6886 -1786.52 radius
5.0 5.0 //Verona
then

0af9:"/StartRadar 100"
0af8: "{ffff00}Radarul este amplasat.Deschide meniul pentru a pleca[...]"
99999999
0af8: "{ffff00}[...]in urma ultimului suspect" 99999999
goto @RadarTable

else
0af8: "{ff0000}Zona In care te afli nu este inregistrata." 99999999

0af8: "{ff0000}Tasteaza manual limita." 99999999


0B79: samp set_chat_input_enabled 1
0B76: samp set_chat_input_text "/StartRadar "
if
0B21: not samp is_chat_opened
then
0af8: "{ffff00}Radarul este amplasat.Deschide meniul pentru a
pleca[...]" 99999999
0af8: "{ffff00}[...]in urma ultimului suspect" 99999999
goto @RadarTable
end
end

end //end if and

if and //Dezactiveaza
2@ == 1 // Button
3@ == 2 // Item selectat 0 = Primul item
then
//Code
0af9:"/stopradar"
goto @RoadsTableStart
//Code
end //end if and

if and //Meniu Principal


2@ == 1 // Button
3@ == 3 // Item selectat 0 = Primul item
then

1@ = SAMP.GetPlayerNickname($IdSuspect)
0af9: "%s, ai fost surprins dep�sind limita de viteza admisa in orase." 1@
0af9: "Vei primi o amend�."
0af9: "/ticket %d" $IdSuspect
0af9: "/cancel find"

end //end if and

if and //Meniu Principal


2@ == 1 // Button
3@ == 4 // Item selectat 0 = Primul item
then
1@ = SAMP.GetPlayerNickname($IdSuspect)
0af9: "%s, ai fost surprins dep�sind limita de vitez� admisa in oras
150km+." 1@
0af9: "Am s� �ti suspend permisul de conducere si vei primi o amend�."
0af9: "/confiscate %d drivinglic 2" $IdSuspect
0af9: "/ticket %d" $IdSuspect
0af9: "/cancel find"

end //end if and

if and //Meniu Principal


2@ == 1 // Button
3@ == 5 // Item selectat 0 = Primul item
then
jump to @FaruriSWATTableStart
end //end if and

if and //Meniu Principal


2@ == 1 // Button
3@ == 6 // Item selectat 0 = Primul item
then
say "/d LSPD,pot sa pun radar la voi in oras?"
wait 400
SAMP.WriteSAMPMemory(1154236, 1, 1)
end //end if and

if and //Meniu Principal


2@ == 1 // Button
3@ == 7 // Item selectat 0 = Primul item
then
jump to @RoadsTableStart
end //end if and
if and //Meniu Principal
2@ == 1 // Button
3@ == 8 // Item selectat 0 = Primul item
then
jump to @MenuStart
end //end if and
end //end if
END //end while
goto @RadarTable
:RadarTableOffset // Textul din Tabel
HEX
">Urmareste Suspect" A
">StartRadar" A
">Stop Radar" A
">Amenda" A
">Amenda+Carnet" A
">NOS+etc" A
">LS - Anunt" A
">Back" A
">Meniu Principal" 0

END
//__________________Radar TABLE END ______________________//

//__________________Faruri TABLE Start ______________________//


:FaruriTable
while true
wait 0 // debugger
call @HPV100SpeedCode 0 15@

wait 0
if
0B21: samp is_chat_opened
then
0B77: samp get_chat_input_text_to v$Inputext
if or
0AD4: 4@ = scan_string v$Inputext format "/find %d" $IdSuspect //IF and SET
0AD4: 4@ = scan_string v$Inputext format "/Find %d" $IdSuspect //IF and SET
0AD4: 4@ = scan_string v$Inputext format "/FIND %d" $IdSuspect //IF and SET
then
wait 0
end
end
wait 0

if
0AB0: $ActivationKey // Daca buttonul este apasat 4 = Mouse Middle button sau
Rotita
then
wait 0 // debugger
:FaruriTableStart // De aici incepe cand este redirectionat de un
meniu.
0AC6: 0@ = label @FaruriTableOffset offset
0B3B: samp show_dialog id 998 caption "Faruri Caption" text 0@ button_1
"Ok" button_2 "Cancel" style 2
end
if
samp.DialogRespond(998,2@,3@,0)
then
if and //Activeaza
2@ == 1 // Button
3@ == 0 // Item selectat 0 = Primul item
then
//1
1@ = SAMP.GetPlayerNickname($IdSuspect)
0af9: "%s, ai fost surprins cu farurile stinse �n intervalul 20:00-08:00."
1@
0af9: "Vei primi o amend�."
0af9: "/ticket %d" $IdSuspect
0af9: "/cancel find"
end //end if and

if and //Activeaza
2@ == 1 // Button
3@ == 1 // Item selectat 0 = Primul item
then
//2
1@ = SAMP.GetPlayerNickname($IdSuspect)
0af9: "%s, ai fost surprins conduc�nd un autovehicul folosind NOS." 1@
0af9: "Am s� �ti suspend permisul de conducere si vei primi o amend�."
0af9: "/confiscate %d drivinglic 3" $IdSuspect
0af9: "/ticket %d" $IdSuspect
0af9: "/cancel find"
end //end if and

if and //Activeaza
2@ == 1 // Button
3@ == 2 // Item selectat 0 = Primul item
then
//3
1@ = SAMP.GetPlayerNickname($IdSuspect)
0af9: "%s, ai fost surprins conduc�nd un autovehicul folosind NOS." 1@
0af9: "Am s� �ti dau o amend�."
0af9: "/ticket %d" $IdSuspect
0af9: "/cancel find"
end //end if and

if and //Dezactiveaza
2@ == 1 // Button
3@ == 3 // Item selectat 0 = Primul item
then
//4
1@ = SAMP.GetPlayerNickname($IdSuspect)
0af9: "%s, ai fost surprins conduc�nd neregulamentar." 1@
0af9: "Am s� �ti suspend permisul de conducere si vei primi o amend�."
0af9: "/confiscate %d drivinglic 3" $IdSuspect
0af9: "/ticket %d" $IdSuspect
end //end if and

if and //Dezactiveaza
2@ == 1 // Button
3@ == 4 // Item selectat 0 = Primul item
then
//5
1@ = SAMP.GetPlayerNickname($IdSuspect)
0af9: "%s, ai fost surprins conduc�nd neregulamentar." 1@
0af9: "Am s� �ti dau o amend�."
0af9: "/ticket %d" $IdSuspect
end //end if and

if and //Dezactiveaza
2@ == 1 // Button
3@ == 5 // Item selectat 0 = Primul item
then
//6
1@ = SAMP.GetPlayerNickname($IdSuspect)
0af9: "%s, ai fost surprins parcand autovehiculul neregulamentar." 1@
0af9: "Drept urmare am sa-ti suspend permisul de conducere 3 ore si vei
primi o amenda contraventionala."
0af9: "/confiscate %d drivinglic 3" $IdSuspect
0af9: "/ticket %d" $IdSuspect
end //end if and
if and //Dezactiveaza
2@ == 1 // Button
3@ == 6 // Item selectat 0 = Primul item
then
//7
1@ = SAMP.GetPlayerNickname($IdSuspect)
0af9: "%s, ai fost surprins parcand autovehiculul neregulamentar." 1@
0af9: "Drept urmare am sa-ti dau o amenda contraventionala."
0af9: "/ticket %d" $IdSuspect
end //end if and

if and //Dezactiveaza
2@ == 1 // Button
3@ == 7 // Item selectat 0 = Primul item
then
//8
1@ = SAMP.GetPlayerNickname($IdSuspect)
0af9: "%s, ai fost surprins deranjand traficul!" 1@
0af9: "Drept urmare am sa-ti suspend permisul de conducere 3 ore si vei
primi o amenda contraventionala."
0af9: "/confiscate %d drivinglic 3" $IdSuspect
0af9: "/ticket %d" $IdSuspect
end //end if and

if and //Dezactiveaza
2@ == 1 // Button
3@ == 8 // Item selectat 0 = Primul item
then
//9
1@ = SAMP.GetPlayerNickname($IdSuspect)
0af9: "%s, ai fost surprins deranjand traficul!" 1@
0af9: "Drept urmare am sa-ti dau o amenda contraventionala."
0af9: "/ticket %d" $IdSuspect
end //end if and

if and //Dezactiveaza
2@ == 1 // Button
3@ == 9 // Item selectat 0 = Primul item
then
//10
jump to @RoadsTableStart
end //end if and

if and //Meniu Principal


2@ == 1 // Button
3@ == 10 // Item selectat 0 = Primul item
then
//11
jump to @MenuStart
end //end if and

end //end if
END //end while
goto @FaruriTable
:FaruriTableOffset // Textul din Tabel
HEX
">Faruri[Text+/Ticket]" A
">NOS [Text+Confiscate+/Ticket]" A
">NOS [Text+/Ticket]" A
">Contrasens [Text+Confiscate+/Ticket]" A
">Contrasens [Text+/Ticket]" A
">Parcare [Text+Confiscate+/Ticket]" A
">Parcare [Text+/Ticket]" A
">Deranj [Text+Confiscate+/Ticket]" A
">Deranj [Text+/Ticket]" A
">Back" A
">Meniu Principal" 0

END
//__________________Faruri TABLE END ______________________//

//__________________FaruriSWAT TABLE Start ______________________//


:FaruriSWATTable
while true
wait 0 // debugger
call @HPV100SpeedCode 0 15@
CALL @GetClosestPed 0 12@
0B2B: samp $IdSuspect = get_player_id_by_actor_handle 12@
$Nume=samp.GetPlayerNickname($IdSuspect)
if
0AB0: $ActivationKey // Daca buttonul este apasat 4 = Mouse Middle button sau
Rotita
then
wait 0 // debugger
:FaruriSWATTableStart // De aici incepe cand este redirectionat de un
meniu.
0AC6: 0@ = label @FaruriSWATTableOffset offset
0B3B: samp show_dialog id 998 caption "FaruriSWAT Caption" text 0@
button_1 "Ok" button_2 "Cancel" style 2
end
0AD0: show_formatted_text_highpriority "%s(%d)" time 300 $Nume $IdSuspect
if
samp.DialogRespond(998,2@,3@,0)
then
if and //Activeaza
2@ == 1 // Button
3@ == 0 // Item selectat 0 = Primul item
then
//1
1@ = SAMP.GetPlayerNickname($IdSuspect)
0af9: "%s, ai fost surprins cu FaruriSWATle stinse �n intervalul 20:00-
08:00." 1@
0af9: "Vei primi o amend�."
0af9: "/ticket %d" $IdSuspect
0af9: "/cancel find"
end //end if and

if and //Activeaza
2@ == 1 // Button
3@ == 1 // Item selectat 0 = Primul item
then
//2
1@ = SAMP.GetPlayerNickname($IdSuspect)
0af9: "%s, ai fost surprins conduc�nd un autovehicul folosind NOS." 1@
0af9: "Am s� �ti suspend permisul de conducere si vei primi o amend�."
0af9: "/confiscate %d drivinglic 3" $IdSuspect
0af9: "/ticket %d" $IdSuspect
0af9: "/cancel find"
end //end if and

if and //Activeaza
2@ == 1 // Button
3@ == 2 // Item selectat 0 = Primul item
then
//3
1@ = SAMP.GetPlayerNickname($IdSuspect)
0af9: "%s, ai fost surprins conduc�nd un autovehicul folosind NOS." 1@
0af9: "Am s� �ti dau o amend�."
0af9: "/ticket %d" $IdSuspect
0af9: "/cancel find"
end //end if and

if and //Dezactiveaza
2@ == 1 // Button
3@ == 3 // Item selectat 0 = Primul item
then
//4
1@ = SAMP.GetPlayerNickname($IdSuspect)
0af9: "%s, ai fost surprins conduc�nd neregulamentar." 1@
0af9: "Am s� �ti suspend permisul de conducere si vei primi o amend�."
0af9: "/confiscate %d drivinglic 3" $IdSuspect
0af9: "/ticket %d" $IdSuspect
end //end if and

if and //Dezactiveaza
2@ == 1 // Button
3@ == 4 // Item selectat 0 = Primul item
then
//5
1@ = SAMP.GetPlayerNickname($IdSuspect)
0af9: "%s, ai fost surprins conduc�nd neregulamentar." 1@
0af9: "Am s� �ti dau o amend�."
0af9: "/ticket %d" $IdSuspect
end //end if and

if and //Dezactiveaza
2@ == 1 // Button
3@ == 5 // Item selectat 0 = Primul item
then
//6
1@ = SAMP.GetPlayerNickname($IdSuspect)
0af9: "%s, ai fost surprins parcand autovehiculul neregulamentar." 1@
0af9: "Drept urmare am sa-ti suspend permisul de conducere 3 ore si vei
primi o amenda contraventionala."
0af9: "/confiscate %d drivinglic 3" $IdSuspect
0af9: "/ticket %d" $IdSuspect
end //end if and

if and //Dezactiveaza
2@ == 1 // Button
3@ == 6 // Item selectat 0 = Primul item
then
//7
1@ = SAMP.GetPlayerNickname($IdSuspect)
0af9: "%s, ai fost surprins parcand autovehiculul neregulamentar." 1@
0af9: "Drept urmare am sa-ti dau o amenda contraventionala."
0af9: "/ticket %d" $IdSuspect
end //end if and

if and //Dezactiveaza
2@ == 1 // Button
3@ == 7 // Item selectat 0 = Primul item
then
//8
1@ = SAMP.GetPlayerNickname($IdSuspect)
0af9: "%s, ai fost surprins deranjand traficul!" 1@
0af9: "Drept urmare am sa-ti suspend permisul de conducere 3 ore si vei
primi o amenda contraventionala."
0af9: "/confiscate %d drivinglic 3" $IdSuspect
0af9: "/ticket %d" $IdSuspect
end //end if and

if and //Dezactiveaza
2@ == 1 // Button
3@ == 8 // Item selectat 0 = Primul item
then
//9
1@ = SAMP.GetPlayerNickname($IdSuspect)
0af9: "%s, ai fost surprins deranjand traficul!" 1@
0af9: "Drept urmare am sa-ti dau o amenda contraventionala."
0af9: "/ticket %d" $IdSuspect
end //end if and

if and //Dezactiveaza
2@ == 1 // Button
3@ == 9 // Item selectat 0 = Primul item
then
//10
jump to @SWATTableStart
end //end if and
if and //Dezactiveaza
2@ == 1 // Button
3@ == 10 // Item selectat 0 = Primul item
then
//10
jump to @RoadsTableStart
end //end if and
if and //Dezactiveaza
2@ == 1 // Button
3@ == 11 // Item selectat 0 = Primul item
then
//10
jump to @RadarTableStart
end //end if and

if and //Meniu Principal


2@ == 1 // Button
3@ == 12 // Item selectat 0 = Primul item
then
//11
jump to @MenuStart
end //end if and

end //end if
END //end while
goto @FaruriSWATTable
:FaruriSWATTableOffset // Textul din Tabel
HEX
">Faruri[Text+/Ticket]" A
">NOS [Text+Confiscate+/Ticket]" A
">NOS [Text+/Ticket]" A
">Contrasens [Text+Confiscate+/Ticket]" A
">Contrasens [Text+/Ticket]" A
">Parcare [Text+Confiscate+/Ticket]" A
">Parcare [Text+/Ticket]" A
">Deranj [Text+Confiscate+/Ticket]" A
">Deranj [Text+/Ticket]" A
">Back-Swat" A
">Back-Roads" A
">Back-Radar" A
">Meniu Principal" 0

END
//__________________FaruriSWAT TABLE END ______________________//

//__________________SWAT TABLE Start ______________________//


:SWATTable
while true
wait 0 // debugger
CALL @HPV100SpeedCode 0 15@
CALL @GetClosestPed 0 12@
0B2B: samp $IdSuspect = get_player_id_by_actor_handle 12@
$Nume=samp.GetPlayerNickname($IdSuspect)

wait 0
if
0AB0: $ActivationKey // Daca buttonul este apasat 4 = Mouse Middle button sau
Rotita
then
wait 0 // debugger
:SWATTableStart // De aici incepe cand este redirectionat de un meniu.
0AC6: 0@ = label @SWATTableOffset offset
0B3B: samp show_dialog id 998 caption "SWAT Caption" text 0@ button_1
"Ok" button_2 "Cancel" style 2
end
0AD0: show_formatted_text_highpriority "%s(%d)" time 300 $Nume $IdSuspect

if
samp.DialogRespond(998,2@,3@,0)
then

if and //Dezactiveaza
2@ == 1 // Button
3@ == 0 // Item selectat 0 = Primul item
then
//Code
1@ = SAMP.GetPlayerNickname($IdSuspect)
0af9: "%s, acesta este un control de rutina." 1@
0af9: "Daca nu vei coopera va trebui sa-ti dau Wanted 2 - Neconformare
ordin."
0af9: "/find %d" $IdSuspect
0af9: "/id %d" $IdSuspect
//Code
end //end if and

if and //Dezactiveaza
2@ == 1 // Button
3@ == 1 // Item selectat 0 = Primul item
then
//Code
1@ = SAMP.GetPlayerNickname($IdSuspect)
0af9: "/frisk %d" $IdSuspect
0af9: "/confiscate %d drugs" $IdSuspect
0af9: "/su %d" $IdSuspect

//Code
end //end if and

if and //Activeaza
2@ == 1 // Button
3@ == 2 // Item selectat 0 = Primul item
then
//Code
1@ = SAMP.GetPlayerNickname($IdSuspect)
0af9: "/id %d" $IdSuspect
0af9: "/confiscate %d weapons" $IdSuspect
//Code
end //end if and

if and //Dezactiveaza
2@ == 1 // Button
3@ == 3 // Item selectat 0 = Primul item
then
//Code
1@ = SAMP.GetPlayerNickname($IdSuspect)
0af9: "/id %d" $IdSuspect
0af9: "/confiscate %d materials" $IdSuspect
//Code
end //end if and

if and //Meniu Principal


2@ == 1 // Button
3@ == 4 // Item selectat 0 = Primul item
then
jump to @FaruriSWATTableStart
end //end if and

if and //Meniu Principal


2@ == 1 // Button
3@ == 5 // Item selectat 0 = Primul item
then
jump to @MenuStart
end //end if and
end //end if
END //end while
goto @SWATTable
:SWATTableOffset // Textul din Tabel
HEX
">Control" A
">Droguri" A
">Arme" A
">Materiale" A
">Faruri.etc-SWAT" A
">Meniu Principal" 0

END
//__________________SWAT TABLE END ______________________//

//__________________HPV SPEED CODE ______________________//

:HPV100SpeedCode
if or // Daca una din conditi este adevarata va execut codul.
0AB0: key_pressed 87 // Tasta 87 = W apasata
0AB0: key_pressed 38 //Tasta 38 = ^ apasata
then
if and
047A: actor $PLAYER_ACTOR driving_bike // Daca este pe un motor
actor.DrivingPoliceVehicle($PLAYER_ACTOR)
v$HPV1000Speed == "True"
then

0C72: set_virtual_key $HPV1000SpeedKey down true //Apasa sageata de


la tastatura
wait $HPV1000Speedpoints
0C72: set_virtual_key $HPV1000SpeedKey false //Ii da drumul sageti de
la tastatura
wait $HPV1000Speedpoints
end //end if
end

//__________________Binds ______________________//
//MS
if and
$MSKEY1 == -1
$MSKEY2 > -1
then
if
0AB0: $MSKEY2
then
0af9: "/ms"
wait 3000
end
else
if and
$MSKEY2 == -1
$MSKEY1 > -1
then
if
0AB0: $MSKEY1
then
0af9: "/ms"
wait 3000
end
else
if and
0AB0: $MSKEY1
0AB0: $MSKEY2
then
0af9: "/ms"
wait 3000
end
end
end
//MS

//DRUGS
if and
$DrugsKey1 == -1
$DrugsKey2 > -1
then
if
0AB0: $DrugsKey2
then
CALL @GetClosestPed 0 12@
0B2B: samp $IdSuspect = get_player_id_by_actor_handle 12@
$NumeKey=samp.GetPlayerNickname($IdSuspect)
0af9: " /frisk %d" $IdSuspect
0af9: " /confiscate %d drugs" $IdSuspect
0af9: " /su %d" $IdSuspect
wait 3000
end
else
if and
$DrugsKey2 == -1
$DrugsKey1 > -1
then
if
0AB0: $DrugsKey1
then
CALL @GetClosestPed 0 12@
0B2B: samp $IdSuspect = get_player_id_by_actor_handle 12@
$NumeKey=samp.GetPlayerNickname($IdSuspect)
0af9: " /frisk %d" $IdSuspect
0af9: " /confiscate %d drugs" $IdSuspect
0af9: " /su %d" $IdSuspect
wait 3000
end
else
if and
0AB0: $DrugsKey1
0AB0: $DrugsKey2
then
CALL @GetClosestPed 0 12@
0B2B: samp $IdSuspect = get_player_id_by_actor_handle 12@
$NumeKey=samp.GetPlayerNickname($IdSuspect)
0af9: " /frisk %d" $IdSuspect
0af9: " /confiscate %d drugs" $IdSuspect
0af9: " /su %d" $IdSuspect
wait 3000
end
end
end
//DRUGS

//CONTROL
if and
$ControlKey1 == -1
$ControlKey2 > -1
then
if
0AB0: $ControlKey2
then
CALL @GetClosestPed 0 12@
0B2B: samp $IdSuspect = get_player_id_by_actor_handle 12@
1@=samp.GetPlayerNickname($IdSuspect)
0af9: "%s, acesta este un control de rutina." 1@
0af9: "Daca nu vei coopera va trebui sa-ti dau Wanted 2 -
Neconformare ordin."
0af9: " /find %d" $IdSuspect
0af9: " /id %d" $IdSuspect
wait 3000
end
else
if and
$ControlKey2 == -1
$ControlKey1 > -1
then
if
0AB0: $ControlKey1
then
CALL @GetClosestPed 0 12@
0B2B: samp $IdSuspect = get_player_id_by_actor_handle 12@
1@=samp.GetPlayerNickname($IdSuspect)
0af9: "%s, acesta este un control de rutina." 1@
0af9: " Daca nu vei coopera va trebui sa-ti dau Wanted 2 -
Neconformare ordin."
0af9: " /find %d" $IdSuspect
0af9: " /id %d" $IdSuspect
wait 3000
end
else
if and
0AB0: $ControlKey1
0AB0: $ControlKey2
then
CALL @GetClosestPed 0 12@
0B2B: samp $IdSuspect = get_player_id_by_actor_handle 12@
1@=samp.GetPlayerNickname($IdSuspect)
0af9: "%s, acesta este un control de rutina." 1@
0af9: "Daca nu vei coopera va trebui sa-ti dau Wanted 2 -
Neconformare ordin."
0af9: " /find %d" $IdSuspect
0af9: " /id %d" $IdSuspect
wait 3000
end
end
end
//CONTROL

//CUFF
if and
$cuffKey1 == -1
$cuffKey2 > -1
then
if
0AB0: $cuffKey2
then
CALL @GetClosestPed 0 12@
0B2B: samp $IdSuspect = get_player_id_by_actor_handle 12@
1@=samp.GetPlayerNickname($IdSuspect)
0af9:" /Cuff %d" $IdSuspect
wait 3000
end
else
if and
$cuffKey2 == -1
$cuffKey1 > -1
then
if
0AB0: $cuffKey1
then
CALL @GetClosestPed 0 12@
0B2B: samp $IdSuspect = get_player_id_by_actor_handle 12@
1@=samp.GetPlayerNickname($IdSuspect)
0af9:" /Cuff %d" $IdSuspect
wait 3000
end
else
if and
0AB0: $cuffKey1
0AB0: $cuffKey2
then
CALL @GetClosestPed 0 12@
0B2B: samp $IdSuspect = get_player_id_by_actor_handle 12@
1@=samp.GetPlayerNickname($IdSuspect)
0af9:" /Cuff %d" $IdSuspect
wait 3000
end
end
end
//CUFF

//__________________Binds ______________________//

//__________________AutoAccept ______________________//

wait 0
alloc 0@ 512
0B75: samp get_chat_string 99 text_to 0@ prefix_to $neversed color_to $nused
prefix_color_to $nouse
wait 0
if
0AD4: $Not_used = scan_string 0@ format "%s [ID:%d, N:%d] conduce cu %d km/h,
Limita de viteza: %d km/h!" 5@v $IdSuspect 1@ 3@ 4@ //IF and SET
then
free 0@
end // if 0AD4: $Not_used = scan_string 0@ format "* %s (nivel %d) a solicitat un
instructor (RO). Pentru a ii accepta cererea, scrie (/accept needlicense %d)"
$notused $notused2 1@
//__________________AutoAccept ______________________//

ret 1 0@
//__________________HPV SPEED CODE ______________________//

:GetClosestPed
var
0@ : float
5@ : float
end
0@ = 600.0
1@ = -1

00A0: $PLAYER_ACTOR 2@ 3@ 4@

0A8D: 29@ = read_memory 0xB74490 size 4 virtual_protect 0


000A: 29@ += 0x4
0A8D: 29@ = read_memory 29@ size 4 virtual_protect 0
for 30@ = 0 to 35584 step 0x100
0A8D: 31@ = read_memory 29@ size 1 virtual_protect 0
000A: 29@ += 0x1
if and
0029: 31@ >= 0x00
001B: 0x80 > 31@
then
005A: 31@ += 30@

if 003B: 31@ == $PLAYER_ACTOR


then continue
end

00A0: 31@ 6@ 7@ 8@
0509: 5@ = distance_between_XY 2@ 3@ 6@ 7@

if 5@ < 0@
then
0087: 0@ = 5@
0085: 1@ = 31@
end
end
end

0AB2: ret 1 1@

You might also like