Vehicle Damage [weapon-config.inc]
#1

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(playeridclassid); 
Here is the include: https://github.com/oscar-broman/samp...pon-config.inc

Thanks in advance!
Reply
#2

So you mean the vehicle doesnt take any damage or?
Reply
#3

Yeah, thats true. The vehicle doesnt take any damage when has a driver.
Reply
#4

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
Reply
#5

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.
Reply
#6

The problem seems to be fixed with deleting 'EnableVehicleFriendlyFire();'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)