alliedmodders / amxmodx

AMX Mod X - Half-Life 1 Scripting and Administration
http://www.amxmodx.org/
496 stars 197 forks source link

How can I disable "friendly fire" on my server (TFC)? #1097

Open Dimmi64 opened 5 months ago

Dimmi64 commented 5 months ago

Hello. I just started a new TFC server, and properly installed the amxmodx. However, even if I open the tfc\server.cfg file and set the "mp_friendlyfire" as "0", friendly is still active. Also, if I type "ff" during the chat, it shows that it's supposedly "disabled", but it's not what it's actually going on. From what I can see, the amxmodx almost completely disables the vanilla server files, but I just can't find the file that controls this function.

Nextra commented 5 months ago

This is not an AMXX issue. TFC has a non-standard system for team damage and ignores mp_friendlyfire. You need to manipulate the mp_teamplay variable instead.

The standard AMXX plugin that provides the say ff command has no knowledge of this, but I would recommend matching mp_friendlyfire to whatever you configure via mp_teamplay for your players' convenience.

Dimmi64 commented 5 months ago

Thank you! It was fixed thanks to your help!