Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: PLAYER on Jun 24, 2025, 07:15 AM

Title: How to Block Action 42
Post by: PLAYER on Jun 24, 2025, 07:15 AM
Is There any Way to Block Action 42 ?
Title: Re: How to Block Action 42
Post by: PLAYER on Jun 25, 2025, 09:33 AM
I am talking about The Action that apply when a player shoots other player with Shotgun and the player falls on Ground
Title: Re: How to Block Action 42
Post by: Gulk on Jun 25, 2025, 12:47 PM
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
Title: Re: How to Block Action 42
Post by: ToyDragon on Jun 30, 2025, 01:49 PM
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.
Title: Re: How to Block Action 42
Post by: ℛḝξ☂ on Jul 01, 2025, 09:17 AM
Or you can use SetFallTimer( ) to disable the action or decrease the time to stand up for all.
Title: Re: How to Block Action 42
Post by: PLAYER on Jul 14, 2025, 09:26 AM
Thanks You Guys For Helping I Appreciate It