Hello There, Guest! Login or Register


Poll: Agree / Disagree to my suggestion
You do not have permission to vote in this poll.
Yes
40.00%
4 40.00%
No
60.00%
6 60.00%
Total 10 vote(s) 100%
* You voted for this item. [Show Results]

Anti-Cheat System / logout cmd [EDIT POST]
#9
(12-05-2016, 06:16 AM)Overdosed Wrote: Any idea how much work it is to create said "Anti-Cheat"?

If you know how to code, please share! :P
Try This this may work
Code:
#include <a_samp>

new shotTime[MAX_PLAYERS];
new shot[MAX_PLAYERS];

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Anti Rapid Fire");
    print("--------------------------------------\n");
    return 1;
}

public OnPlayerConnect(playerid)
{
    shotTime[playerid] = 0;
    shot[playerid] = 0;
    return 1;
}

public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
    if(weaponid != 38)
    {
        if((gettime() - shotTime[playerid]) < 1)
        {
            shot[playerid]+=1;
        }
        else
        {
            shot[playerid]=0;
        }
        if(shot[playerid] > 10)
        {
            Kick(playerid);
        }
        shotTime[playerid] = gettime();
    }
   return 1;
}
Reply


Messages In This Thread
RE: Anti-Cheat System - by Batata45 - 12-04-2016, 02:27 PM
RE: Anti-Cheat System - by zeXo_ - 12-04-2016, 03:52 PM
RE: Anti-Cheat System - by LukaZ - 12-04-2016, 07:12 PM
RE: Anti-Cheat System - by [PK]Ignatius - 12-05-2016, 12:50 AM
RE: Anti-Cheat System / logout cmd [EDIT POST] - by [PK]Ignatius - 12-05-2016, 09:33 AM