You must have SAMPFuncs
Activation:
Type 'FALL' in-game.
Source-code:
Update:
Download at attachment.
Activation:
Type 'FALL' in-game.
Source-code:
Code:
{$CLEO}
0000: binHAX Production
31@ = 0
:1
wait 0
if
0ADC: "FALL"
then
if
31@ == 0
then
31@ = 1
print "Anti ped-fall on~n~~g~by binHAX" 2000
else
31@ = 0
print "Anti ped-fall off~n~~g~by binHAX" 2000
02AB: set_actor $PLAYER_ACTOR immunities BP 0 FP 0 EP 0 CP 0 MP 0
end
end
jump @2
:2
wait 0
if
31@ == 1
then
0B2B: samp 1@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0B57: samp 2@ = player 1@ animation_id
if
0818: actor $PLAYER_ACTOR in_air
then
02AB: set_actor $PLAYER_ACTOR immunities BP 0 FP 0 EP 0 CP 1 MP 0
else
if or
0039: 2@ == 1133
0039: 2@ == 1129
0039: 2@ == 1208
then
0AFD: samp set_special_action 8
0AFD: samp set_special_action 0
end
02AB: set_actor $PLAYER_ACTOR immunities BP 0 FP 0 EP 0 CP 0 MP 0
end
end
jump @1
Update:
Code:
{$CLEO}
0000: binHAX Production
31@ = 0
32@ = 0
:1
wait 0
if
0ADC: "FALL"
then
if
31@ == 0
then
31@ = 1
print "Anti ped-fall on~n~~g~by binHAX" 2000
else
31@ = 0
print "Anti ped-fall off~n~~g~by binHAX" 2000
02AB: set_actor $PLAYER_ACTOR immunities BP 0 FP 0 EP 0 CP 0 MP 0
end
end
jump @2
:2
wait 0
if
31@ == 1
then
0B2B: samp 1@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0B57: samp 2@ = player 1@ animation_id
if
0818: actor $PLAYER_ACTOR in_air
then
32@ = 1
02AB: set_actor $PLAYER_ACTOR immunities BP 0 FP 0 EP 0 CP 1 MP 0
else
if or
0039: 2@ == 1133
0039: 2@ == 1129
0039: 2@ == 1208
then
0AFD: samp set_special_action 8
0AFD: samp set_special_action 0
end
if
32@ == 1
then
wait 100
02AB: set_actor $PLAYER_ACTOR immunities BP 0 FP 0 EP 0 CP 0 MP 0
end
end
end
jump @1
Download at attachment.