Is it possible to make something that stops player from performing that animation when another player sprays on them with a spray can or a fire extinguisher?
Actor.Immunities($PLAYER_ACTOR, 0, 0, 0, 0, 1) (not sure if the last param was for Melee, but you can set Melee-Damage to 0. That should work. Check documentation for the exact parameters.
1. 02AB: set_actor $PLAYER_ACTOR immunities BP 0 FP 0 EP 0 CP 0 MP 1
Like Safa sad probably last param should be 1
2. Get anim name then if anim == your anim , then reset / stop anim
:1
wait 0
if
0ADC: "LOLL"
then
if
31@ == 0
then
31@ = 1
print "ON" 2000
else
31@ = 0
print "OFF" 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 0 MP 1
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
this what i tried doesnt work at all someone make one for me please
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.