CLEO Help Help SpasSwitch

CLEO related
Status
Not open for further replies.

Vubey

Member
Joined
Jan 10, 2018
Messages
5
Reaction score
0
Can somone make an activation and deactivation key? Activation would be ,, + '' And Deactivation ,, - ''
 

Attachments

  • SpasSwitch.cs
    18.6 KB · Views: 18

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
936
Location
Lithuania
PHP:
{$CLEO .cs}

//-------------MAIN---------------
thread "QUICKSWAP" 
0662: printstring "MADE BY NERDY GAMER" 
0662: printstring "WWW.YOUTUBE.COM/MRSAMPHACKS" 

0B34: samp register_client_command "qs" to_label @cmd

:Test_0
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
else_jump @Test_0 
jump @TEST

:TEST_01
wait 0
0A96: 7@ = actor $PLAYER_ACTOR struct //cPED
7@ += 0x600 //shotgun ammo total
0A8D: 8@ = read_memory 7@ size 4 virtual_protect 0
if and
31@ == 1 // activated
 8@ == 1 // If Ammo total equals 1
 jump @Test_0
 else_jump @TEST

:TEST
wait 0
if
02E0:   actor $PLAYER_ACTOR aggressive
else_jump @TEST
jump @TEST_02

:TEST_02
wait 0 
0A96: 7@ = actor $PLAYER_ACTOR struct //cPED
7@ += 0x5FC //shotgun ammo in clip
0A8D: 8@ = read_memory 7@ size 4 virtual_protect 0
if
 8@ == 1 // If AmmoClip is smaller than 2 bullets
 then
wait 0
0470: 12@ = actor $PLAYER_ACTOR current_weapon
wait 0
0812: AS_actor $PLAYER_ACTOR perform_animation "BUDDY_RELOAD" IFP_file "BUDDY" 10.0 loopA 0 lockX 0 lockY 0 lockF 0 time 1 // versionB
wait 30
01B9: set_actor $PLAYER_ACTOR armed_weapon_to 0
wait 300
01B9: set_actor $PLAYER_ACTOR armed_weapon_to 12@
end
jump @TEST

:cmd
if
31@ == false
then
    chatmsg "+" -1
    31@ = true
else
    chatmsg "+" -1
    31@ = false
end
0B43: samp cmd_ret
 

Attachments

  • SpasSwitch.cs
    18.8 KB · Views: 23
Status
Not open for further replies.
Top