Vehicle Damage [weapon-config.inc] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Vehicle Damage [weapon-config.inc] (
/showthread.php?tid=609685)
Vehicle Damage [weapon-config.inc] -
Freedom. - 15.06.2016
Hey,
I got a problem with weapon-config include. Here is the problem: When you drive a car, somebody shoots at your car (Team's are different) and you dont get any damage from them. My friend has that problem too.
I got something like that.
Under the OnGameModeInit()
PHP код:
EnableVehicleFriendlyFire();
Under the OnPlayerRequestClass(playerid, classid)
PHP код:
SetPlayerTeam(playerid, classid);
Here is the include:
https://github.com/oscar-broman/samp...pon-config.inc
Thanks in advance!
Re: Vehicle Damage [weapon-config.inc] -
TwinkiDaBoss - 15.06.2016
So you mean the vehicle doesnt take any damage or?
Re: Vehicle Damage [weapon-config.inc] -
Freedom. - 15.06.2016
Yeah, thats true. The vehicle doesnt take any damage when has a driver.
Re: Vehicle Damage [weapon-config.inc] -
TwinkiDaBoss - 15.06.2016
Hmm I don't see any issues..
But does the damage work when no one is inside vehicle? Since I see that you have that also
Re: Vehicle Damage [weapon-config.inc] -
Freedom. - 15.06.2016
Quote:
Originally Posted by TwinkiDaBoss
Hmm I don't see any issues..
But does the damage work when no one is inside vehicle? Since I see that you have that also
|
What you said is optional.
Re: Vehicle Damage [weapon-config.inc] -
Freedom. - 15.06.2016
The problem seems to be fixed with deleting 'EnableVehicleFriendlyFire();'