khalidahmedshalabi / SAMPBulletproof

Bulletproof Gamemode is a SA-MP gamemode which is believed to take A/D and TDM to a new level.
http://khalidahmedshalabi.github.io/BulletproofGamemodeWebsite/
Apache License 2.0
16 stars 20 forks source link

IsACEnabled bug #57

Closed khalidahmedshalabi closed 8 years ago

khalidahmedshalabi commented 8 years ago

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

Whitetigerswt commented 8 years ago

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

khalidahmedshalabi commented 8 years ago

Check the screenshot; it's enabled.

khalidahmedshalabi commented 8 years ago

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.

khalidahmedshalabi commented 8 years ago

Fixed it myself check the ac repo @Whitetigerswt