CLEO Help Auto Arrest Need Help :)

CLEO related
Status
Not open for further replies.

chainnade

Active member
Joined
Dec 7, 2013
Messages
62
Reaction score
0
//-------------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
This is the script
I want that it should not stop when i taze some1 or cuff and I want to change the seconds Like Taze,cuff & arrest in 2 seconds only.
Thanks a lot ugbase My Life <3 :ugbase: :ugbase: :ugbase: :ugbase:
 

chainnade

Active member
Joined
Dec 7, 2013
Messages
62
Reaction score
0
Bro Thermal I got a problem
//-------------MAIN---------------
thread "Taze"

:Taze_8
wait 2000
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 2000
0AF9: samp say_msg "/taze %d" 2@ 
wait 2000
Player.CanMove($PLAYER_CHAR) = False
wait 2000
Player.CanMove($PLAYER_CHAR) = False
0AF9: samp say_msg "/cuff %d" 2@ 
wait 2000
Player.CanMove($PLAYER_CHAR) = False
wait 2000
Player.CanMove($PLAYER_CHAR) = False
0AF9: samp say_msg "/arrest %d" 2@
wait 2000
Player.CanMove($PLAYER_CHAR) = False 

:Taze_127
wait 2000
goto @Taze_8
I am not able to compile it will you please do it for me ? thanks :)
 

chainnade

Active member
Joined
Dec 7, 2013
Messages
62
Reaction score
0
{$CLEO}
0000:

:MAIN
wait 0
if and
056D:  actor $PLAYER_ACTOR defined
key_down 49
jf @MAIN
0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to 1@
if
056D:  actor 1@ defined
jf @MAIN
2@ = SAMP.GetSAMPPlayerIDByActorHandle(1@)
wait 2000
0AF9: samp say_msg "/taze %d" 2@ 
wait 2000
0AF9: samp say_msg "/cuff %d" 2@ 
wait 2000
0AF9: samp say_msg "/arrest %d" 2@
wait 500
goto @MAIN
Its taking too long to arrest a player reduce the timing or tell me please thermal :)
 

iAnthony

Moderator
Moderator
Joined
Nov 15, 2013
Messages
590
Reaction score
3
if you change
Player.CanMove($PLAYER_CHAR) = False
to
Player.CanMove($PLAYER_CHAR) = True

your player will be able to move?
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
iAnthony link said:
if you change
Player.CanMove($PLAYER_CHAR) = False
to
Player.CanMove($PLAYER_CHAR) = True

your player will be able to move?
Yes, even if it's already freezed.
 
Status
Not open for further replies.
Top