khalidahmedshalabi/SAMPBulletproof

IsACEnabled bug

Closed this issue · 4 comments

6:41PM

Hi man
Cant see vehicles on minimap (radar)
As defender
/config and Defender can see vehicles blips [Disable]
its green
but when I click on it its giving ERROR and write - Anticheat is not enabled
But is enabled.. unsure emoticon

I could confirm this. There seems to be a problem with IsACEnabled. Here's code from gamemode:

if(!IsACPluginLoaded())
{
    SendErrorMessage(playerid, "Anticheat plugin is not loaded.", MSGBOX_TYPE_BOTTOM);
    ShowConfigDialog(playerid);
}
else if(!IsACEnabled())
{
    SendErrorMessage(playerid, "Anticheat is not enabled.", MSGBOX_TYPE_BOTTOM);
    ShowConfigDialog(playerid);
}
else
{
    if(DefendersSeeVehiclesBlips == false)
    {
        DefendersSeeVehiclesBlips = true;
        format(iString, sizeof(iString), "{FFFFFF}%s "COL_PRIM"has {FFFFFF}enabled "COL_PRIM"defenders see vehicle blips{FFFFFF} option.", Player[playerid][Name]);
        SendClientMessageToAll(-1, iString);
    }
    else
    {
        DefendersSeeVehiclesBlips = false;
        format(iString, sizeof(iString), "{FFFFFF}%s "COL_PRIM"has {FFFFFF}disabled "COL_PRIM"defenders see vehicle blips{FFFFFF} option.", Player[playerid][Name]);
        SendClientMessageToAll(-1, iString);
    }
}

Screenshot: sa-mp-009

Odd, are you sure it's enabled in ac_config.ini?

Check the screenshot; it's enabled.

Try to work out this problem (perhaps by the end of this month) because I have a few plans for AC on future versions of this gamemode and that's gonna disturb.

Fixed it myself check the ac repo @Whitetigerswt