SA-MP Forums Archive
EnableVehicleFriendlyFire( ) - Does not work? - 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: EnableVehicleFriendlyFire( ) - Does not work? (/showthread.php?tid=432201)



EnableVehicleFriendlyFire( ) - Does not work? - RedFusion - 21.04.2013

I have set all the players team to the same, blocking regular damage. (Within OnPlayerConnect)
And i've enabled friendly fire on vehicles, (within OnGameModeInit)

But still, the vehicles take no damage from other players, only from collisions etc.
Have i done anything wrong? Is there any fix for this or is the function EnableVehicleFriendlyFire( ) just broken?


Re: EnableVehicleFriendlyFire( ) - Does not work? - Faisal_khan - 21.04.2013

This:
Enable friendly fire for team vehicles. Players will be unable to damage teammates' vehicles (SetPlayerTeam must be used!).


Re: EnableVehicleFriendlyFire( ) - Does not work? - RedFusion - 21.04.2013

Seems like i didn't read it carefully, thought the purpose of this function was the other way around.
Thanks!