CLEO Help [RE]Cuff n' Arrest

CLEO related
Status
Not open for further replies.

trops10

Active member
Joined
Mar 7, 2014
Messages
35
Reaction score
0
http://ugbase.eu/releases-6/cnr-pack/

Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
thread "Taze" 

:Taze_8
wait 0 
if and
056D:   actor $PLAYER_ACTOR defined 
key_down 49 
else_jump @Taze_8 
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@ 
if 
056D:   actor 1@ defined 
else_jump @Taze_127 
2@ = SAMP.GetSAMPPlayerIDByActorHandle(1@)
Player.CanMove($PLAYER_CHAR) = False
wait 100
0AF9: samp say_msg "/taze %d" 2@  
wait 1650
Player.CanMove($PLAYER_CHAR) = True
wait 100
Player.CanMove($PLAYER_CHAR) = False
0AF9: samp say_msg "/cuff %d" 2@  
wait 1450 
Player.CanMove($PLAYER_CHAR) = True
wait 100
Player.CanMove($PLAYER_CHAR) = False
0AF9: samp say_msg "/arrest %d" 2@
wait 0
Player.CanMove($PLAYER_CHAR) = True  

:Taze_127
wait 1000 
goto @Taze_8


As U see all this do taze then cuff then arrest

1st-I Want It For Cuff And Areest Only No Tase -

2nd-i want another one for cuff only

And Thanks.. :urtheman:
 

DzkAy

Well-known member
Joined
Feb 20, 2014
Messages
472
Reaction score
1
trops10 link said:
ANYONE  :red_eyes:
Try to compile it yourself.
Cuff 'n' Arrest only:
Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
thread "Cuff n Arrest" 

:Taze_8
wait 0 
if and
056D:   actor $PLAYER_ACTOR defined 
key_down 49 
else_jump @Taze_8 
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@ 
if 
056D:   actor 1@ defined 
else_jump @Taze_127 
2@ = SAMP.GetSAMPPlayerIDByActorHandle(1@) 
wait 50
Player.CanMove($PLAYER_CHAR) = True
wait 100
Player.CanMove($PLAYER_CHAR) = False
0AF9: samp say_msg "/cuff %d" 2@  
wait 1450 
Player.CanMove($PLAYER_CHAR) = True
wait 100
Player.CanMove($PLAYER_CHAR) = False
0AF9: samp say_msg "/arrest %d" 2@
wait 0
Player.CanMove($PLAYER_CHAR) = True  

:Taze_127
wait 1000 
goto @Taze_8

Cuff Only:
Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
thread "Cuff Only" 

:Taze_8
wait 0 
if and
056D:   actor $PLAYER_ACTOR defined 
key_down 49 
else_jump @Taze_8 
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@ 
if 
056D:   actor 1@ defined 
else_jump @Taze_127 
2@ = SAMP.GetSAMPPlayerIDByActorHandle(1@) 
wait 50
Player.CanMove($PLAYER_CHAR) = True
wait 100
Player.CanMove($PLAYER_CHAR) = False
0AF9: samp say_msg "/cuff %d" 2@  
Player.CanMove($PLAYER_ACTOR) = TRUE

:Taze_127
wait 1000 
goto @Taze_8
 

trops10

Active member
Joined
Mar 7, 2014
Messages
35
Reaction score
0
D.Kay link said:
Try to compile it yourself.
Cuff 'n' Arrest only:
Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
thread "Cuff n Arrest" 

:Taze_8
wait 0 
if and
056D:   actor $PLAYER_ACTOR defined 
key_down 49 
else_jump @Taze_8 
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@ 
if 
056D:   actor 1@ defined 
else_jump @Taze_127 
2@ = SAMP.GetSAMPPlayerIDByActorHandle(1@) 
wait 50
Player.CanMove($PLAYER_CHAR) = True
wait 100
Player.CanMove($PLAYER_CHAR) = False
0AF9: samp say_msg "/cuff %d" 2@  
wait 1450 
Player.CanMove($PLAYER_CHAR) = True
wait 100
Player.CanMove($PLAYER_CHAR) = False
0AF9: samp say_msg "/arrest %d" 2@
wait 0
Player.CanMove($PLAYER_CHAR) = True  

:Taze_127
wait 1000 
goto @Taze_8

Cuff Only:
Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
thread "Cuff Only" 

:Taze_8
wait 0 
if and
056D:   actor $PLAYER_ACTOR defined 
key_down 49 
else_jump @Taze_8 
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@ 
if 
056D:   actor 1@ defined 
else_jump @Taze_127 
2@ = SAMP.GetSAMPPlayerIDByActorHandle(1@) 
wait 50
Player.CanMove($PLAYER_CHAR) = True
wait 100
Player.CanMove($PLAYER_CHAR) = False
0AF9: samp say_msg "/cuff %d" 2@  
Player.CanMove($PLAYER_ACTOR) = TRUE

:Taze_127
wait 1000 
goto @Taze_8


Thanks But Just Can U Compile them , or tell me how , sorry i am noob so i cant do it when i try to compile wis sanny builder is says error key_down 49
 

trops10

Active member
Joined
Mar 7, 2014
Messages
35
Reaction score
0
D.Kay link said:
Replace key_down 49 with
0AB0:  key_pressed 49


Thanks , But

Incorrect expression 2@ = SAMP.GetSAMPPlayerIDByActorHandle(1@).
One of the variables has unknown type, or operands are incompatible.
 

DzkAy

Well-known member
Joined
Feb 20, 2014
Messages
472
Reaction score
1
You need SB Data - Put it in sannybuilder/data/sa From SAMPFUNCS for it to compile succesfully.
Here I've already compiled those for you.
 

Attachments

  • Cuff N Arrest.cs
    18.1 KB · Views: 93
  • Cuff Only.cs
    17.9 KB · Views: 67

trops10

Active member
Joined
Mar 7, 2014
Messages
35
Reaction score
0
D.Kay link said:
You need SB Data - Put it in sannybuilder/data/sa From SAMPFUNCS for it to compile succesfully.
Here I've already compiled those for you.
Thanks But Cuff Only when i do it it cuffs but it freezes and gives error
Warning(s007): Exception 0xC0000005 at 0x609560
 

Leo

Member
Joined
Sep 3, 2014
Messages
7
Reaction score
0
What actually does it do? Will it work for COD5 CNR? Does it automatically /cuff's and /ar people in-front of you?
Reply fast please.
 
Status
Not open for further replies.
Top