SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 02/05/2018, 07:24 PM   #1
Lokii
Huge Clucker
 
Join Date: Sep 2017
Posts: 279
Reputation: 72
Default VDMG (damage vehicles with no driver!)


VDMG



This include allows player to damage vehicle when there is no driver or passangers.



HOW TO USE

Just include it (after a_samp)

PHP Code:
#include <a_samp>
#include <VDMG> 

FUNCTIONS

0 - vehicle will get damage

any other number than 0 vehicle will not get damage


PHP Code:
ToggleVehicleDamageable(vehicleidstatus); 
NOTICE: melee weapons, grenades, molotov and rockets are not supported!









VIDEO

[img]https://s17.postimg.cc/83btpgkhb/*******-256.png[/img]



DOWNLOAD




CREDITS
SA-MP TEAM for a_samp
Lokii for VDMG

Last edited by Lokii; 06/05/2018 at 01:14 PM.
Lokii is offline   Reply With Quote
Old 03/05/2018, 12:48 AM   #2
Kar
High-roller
 
Kar's Avatar
 
Join Date: May 2010
Location: Black Asylum
Posts: 3,184
Reputation: 506
Default Re: VDMG (damage vehicles with no driver!)

This has a potential race condition sync bug. Also u are deducting damage even if they is a driver
Kar is offline   Reply With Quote
Old 03/05/2018, 12:16 PM   #3
Lokii
Huge Clucker
 
Join Date: Sep 2017
Posts: 279
Reputation: 72
Default Re: VDMG (damage vehicles with no driver!)

Quote:
Originally Posted by Kar View Post
This has a potential race condition sync bug. Also u are deducting damage even if they is a driver
UPDATED!

updated this:
Quote:
Also u are deducting damage even if they is a driver

but i dont know what is this:
Quote:
This has a potential race condition sync bug
Lokii 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
driver door damage GoldenLion Scripting Help 3 24/06/2017 03:29 AM
[FilterScript] Damage the vehicle without driver | FS/INC Markonisha Filterscripts 2 06/07/2014 02:02 PM
Car take damage without a passenger/driver. Unri Scripting Help 4 26/09/2013 10:39 PM
[Include] Car damage system - Damage a car without a driver! The_Moddler Includes 68 30/03/2012 01:38 AM
Car Damage without driver ricardo178 Help Archive 5 17/03/2011 07:37 PM


All times are GMT. The time now is 10:25 PM.


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