How to Block Action 42

Started by PLAYER, Jun 24, 2025, 07:15 AM

Previous topic - Next topic

PLAYER

Is There any Way to Block Action 42 ?
"Feared by many. Matched by none."
✦ Born from the shadows ✦

☯ Silent • Deadly • Untouchable
⫷ Elite ✦ Ghost ✦ Player ⫸

PLAYER

I am talking about The Action that apply when a player shoots other player with Shotgun and the player falls on Ground
"Feared by many. Matched by none."
✦ Born from the shadows ✦

☯ Silent • Deadly • Untouchable
⫷ Elite ✦ Ghost ✦ Player ⫸

Gulk

#2
Make all players same team, and enable friendly fire damage.

I think that's how I did it in the past, not sure if it still works.

Oh nvm, there is a per player immunity setting: https://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/Player.Immunity
32 = immune to falling down

ToyDragon

Quote from: PLAYER on Jun 25, 2025, 09:33 AMI am talking about The Action that apply when a player shoots other player with Shotgun and the player falls on Ground
Hello, I am from China and my English maybe a little bad.
We can use that event "onPlayerActionChange(player,oldAction,newAction)"  and add code "if (newAction == 42) { player.Action = xx ; return 0;},
sorry for i don't test it , maybe it just can run in my brain , haha.