SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 14/01/2020, 03:23 PM   #1
SmileyGOD
Little Clucker
 
Join Date: Jan 2020
Posts: 2
Reputation: 0
Question How can i block on foot damage to vehicle? (Fist damage)

Hello!
I need to detect player on foot damage from fists to vehicle. How can i detect it? I don't want to use the include weapon-config. OnPlayerVehicleDamage not detect fist damage on foot from other players.

Here is a video: https://streamable.com/e08bj

My target: Blocking the destruction of vehicles with only fists.

Have any ideas?
SmileyGOD is offline   Reply With Quote
Old 15/01/2020, 08:31 AM   #2
Mugala
High-roller
 
Mugala's Avatar
 
Join Date: Nov 2012
Location: Georgia, Tbilisi
Posts: 1,162
Reputation: 73
Default Re: How can i block on foot damage to vehicle? (Fist damage)

You can create this by checking KEYs, State, WeaponID, Target of Player and Distance from nearest vehicle in OnPlayerUpdate callback (will take a time for processing) but this will work.
__________________
Coding in 8 languages including Pawn, C#, C++ and SQL.
Available for hiring.

If you have a coding question or need an assistance in a code, just PM me.
If you want me to create something for you, here is a Discord Mugala#5651

Currently helping Community members in a coding.
Mugala is offline   Reply With Quote
Old 17/01/2020, 09:20 PM   #3
SmileyGOD
Little Clucker
 
Join Date: Jan 2020
Posts: 2
Reputation: 0
Default Re: How can i block on foot damage to vehicle? (Fist damage)

Thanks for the answer, bro!

Anyone have any other idea?
SmileyGOD is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
weapon-config self damage and weaponized vehicle damage Chyakka Scripting Help 6 13/12/2018 04:28 PM
fist damage players while they're frozen? Killa[DGZ] Scripting Help 4 16/06/2017 02:29 AM
Fist damage broke? (rep) Matical Scripting Help 1 09/09/2015 11:12 PM
how much damage is one fist hit RedWolfX Scripting Help 1 18/10/2013 11:45 PM
Sniper, fist and satchels doesn't damage.. rbN. Help Archive 10 09/02/2011 07:00 PM


All times are GMT. The time now is 05:53 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.