SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 21/06/2014, 07:17 PM   #1
PabLoHenriique
Big Clucker
 
PabLoHenriique's Avatar
 
Join Date: Jan 2014
Location: Brazil
Posts: 129
Reputation: 1
Lightbulb include Anti Cheat - poste sua include!

Olâ, hoje vou realizar um pedido, é o seguinte, estou a procura de uma 'include' Anti Cheat boa e completa pq as que tem na Net e uma porcaria já coloquei varias includes e não adianta, nunca encontro uma firmezinha, se alguem tiver a include que trava este seguinte programa que geral usa: m 0 d_s 0 b e i t_s a, que me enferniza,
aproveitam tambem e postam sua 'include' ou de seu amigo aqui, neste tópico, para ajuda ai na divulgação.
PabLoHenriique is offline   Reply With Quote
Old 21/06/2014, 07:20 PM   #2
MultiKill
High-roller
 
Join Date: Apr 2014
Posts: 1,611
Reputation: 84
Default Re: include Anti Cheat - poste sua include!

Use o search tem varias include Anti Cheat no furum.
MultiKill is online now   Reply With Quote
Old 21/06/2014, 07:22 PM   #3
Samuel300
Huge Clucker
 
Samuel300's Avatar
 
Join Date: Apr 2013
Posts: 388
Reputation: 11
Default Re: include Anti Cheat - poste sua include!

ja penso em procurar também um FS ?

e não existe include que bloqueia o Sorvete ... mas sim você pode colocar códigos para travar cada função que ele tem ...

Como por exemplo o player pegar tal arma e ser kickado, o player atingir uma certa quantidade de $$ e ser kickado e entre outros ...

todo GM na net atualmente tem esses códigos prontos, só baixar 1 depois pegar e aproveitar
__________________
Viva la Vida Jovem !
Samuel300 is offline   Reply With Quote
Old 21/06/2014, 07:28 PM   #4
CrazyHelp
Big Clucker
 
CrazyHelp's Avatar
 
Join Date: Apr 2014
Location: Nenhum
Posts: 140
Reputation: 8
Default Re: include Anti Cheat - poste sua include!

pawn Code:
#if defined ANTICHEAT_PLUGIN_INCLUDED

#else

#define ANTICHEAT_PLUGIN_INCLUDED
#pragma library "AntiCheatPlugin"

#define AC_INCLUDE_VERSION              (25)

#define CHEAT_JETPACK           (1)     // player got jetpack
#define CHEAT_WEAPON            (2)     // player got not allowed/spawned weapon, extraint = weaponid, extraint = type cheat, 1 - weapon not allowed, 0 - spawned weapon
#define CHEAT_SPEED             (4)     // player used speedhack, extraint = vehicleid
#define CHEAT_HEALTHARMOUR      (8)     // needs to be implemented, detected health/armour hack, extraint 0 = health, extraint 1 = armour, extrafloat = amount of current health/armour
#define CHEAT_IPFLOOD           (16)    // too many connections from one ip, extraint = ip in binary format (exploded by '.' 127.0.0.1 <=^=> (1 + (0 << 8) + (0 << 16) + (127 << 24)))
#define CHEAT_PING              (32)    // player has too high ping, default = 65537
#define CHEAT_SPOOFKILL         (64)    // playerid - the one who cheated and died, extraint = the victim, extrafloat - the probability of detection, ranges from 0.0 to 100.0, it's in percentage of success detection, 100.0 = cheater for sure! 0.0 ... 30.0 ~ can be sa-mp bug.
#define CHEAT_SPAWNKILL         (128)   // playerid = killerid, extraint = reason, extraint2 = killedplayerid
#define CHEAT_INACTIVITY        (256)   // player is inactive for too long (default = 3 minutes = 180000 ms), none
#define CHEAT_TELEPORT          (512)   // extraint = percentage as integer (this time ye.. it can only be 50 or 100) of how accurate the detection is, extrafloat - is the calculated speed from XYZ positioning
#define CHEAT_AIRBREAK          (1024)  // extraint = percentage as integer (this time ye.. it can only be 50 or 100) of how accurate the detection is, extrafloat - is the calculated speed from XYZ positioning
#define CHEAT_BACK_FROM_INACTIVITY (2048) // if CHEAT_INACTIVITY is called and then the player is back then this is called.
#define CHEAT_SPECTATE          (4096)  //anti spectate-hack
#define CHEAT_FASTCONNECT       (8192)  //if some playerids connect from one ip very fast twice, or three times (checks if one ip connects in very short delays)
#define CHEAT_REMOTECONTROL     (16384) //extraint = victims playerid, playerid - cheater, detects if playerid manipulated victimids vehicle (eg set super fast speed)
#define CHEAT_MASSCARTELEPORT   (32768) //checks if playerid changed vehicles VERY fast (for teleporting them?)
#define CHEAT_CARJACKHACK       (65536) //check if player uses cheats to steal a car

//note that enabling anti teleport will enable anti airbreak and vice-versa

native FixSet(Fix,bool:enabled=true);//No fixes to enable/disable yet... All included fixes are auto enabled, sorry for that but that's for now the best way imho.
//example - enable color fix - FixSet(FIX_GETPLAYERCOLOR,true);
native CheckSet(ToCheck,playerid = (-1), bool:check=true);//enable/disable checking for jetpack, -1 for all players, -1 overides normal player settins so -1,true will enable normal checking again.
//example - disable speedhack checking for player 5: CheckSet(CHEAT_SPEED,5,false);
native SetMaxPing(ping=65537);//sets the max ping a player can have before being reported
native SetWeaponAllowed(playerid=(-1),weaponid=0,bool:allowed=true);//sets the weaponid to allowed/disallowed, -1 overides all players, no matter what you set to individual players after and before the function
native SetSpawnKillDelay(delay=2000);//Set the delay in miliseconds which will count as spawnkill, if killerid kills playerid within 'delay' miliseconds, a spawnkill will be reported.
native SetInactivityDelay(delay=180000);//Set the delay after how many miliseconds INACTIVITY will be detected.
native UseChatForInactivityMeasurement(bool:use=true);//if false and player sends a message he still will be counted as inactive
native AntiCheatSetUpdateDelay(ticks=200);//anti airbreak and anti teleport breaks if ticks is not 200....
native SetIPConnectDelay(delay=100);//if any ip connects twice faster than 'delay' miliseconds then the OnCheatDetected callback will be called
native SetMaxMassTPDelay(delay=150);//if player changes vehicles within 'delay' miliseconds report him to OnCheatDetected.

forward AC_OnCheatDetected(playerid, type, extraint, Float:extrafloat, extraint2);
/*
    playerid - the id of the player who cheated
    type - the type of cheat, CHEAT_JETPACK,CHEAT_WEAPON,etc...
    extraint - an extra integer variable
    extrafloat - an extra float variable

    NOTE:
    if CHEAT_IPFLOOD (and all other ip checks) is detected, then AC_OnCheatDetected is called BEFORE OnPlayerConnect
    ANY OnPlayerConnect from ANY script,
    the OnPLayerConnect from the plugin is executing, so do not use global player variables which you assign in OnPlayerConnect yourself!

    example of doing it wrong:


    /////////////WRONG SCRIPT//////////////
    #include <a_samp>
    #include <AntiCheat>

    new GlobalPlayerIP[MAX_PLAYERS][17];
    new GlobalPlayerName[MAX_PLAYERS][33];

    public OnPlayerConnect(playerid)
    {
        GetPlayerName(playerid,GlobalPlayerName,33);
        GetPlayerIP(playerid,GlobalPlayerIP,17);
        return 1;
    }

    //THE WRONG WAY
    public AC_OnCheatDetected(playerid, type, extraint, Float:extrafloat)
    {
        switch(type)
        {
            case CHEAT_IPFLOOD:
            {
                MyBanIP(GlobalPlayerIP);//your custom banip function
                AddNameToBans(GlobalPlayerName);//your custom function to add name to banlist
            }
        }
        return 1;
    }

    //This code will do:
    BanIP("");
    AddNameToBans("");


    doing it right:

    /////////////GOOD SCRIPT//////////////
    #include <a_samp>
    #include <AntiCheat>

    new GlobalPlayerIP[MAX_PLAYERS][17];
    new GlobalPlayerName[MAX_PLAYERS][33];

    public OnPlayerConnect(playerid)
    {
        GetPlayerName(playerid,GlobalPlayerName,33);
        GetPlayerIP(playerid,GlobalPlayerIP,17);
        return 1;
    }

    //THE GOOD WAY
    public AC_OnCheatDetected(playerid, type, extraint, Float:extrafloat)
    {
        switch(type)
        {
            case CHEAT_IPFLOOD:
            {
                GetPlayerName(playerid,GlobalPlayerName,33);
                GetPlayerIP(playerid,GlobalPlayerIP,17);
                MyBanIP(GlobalPlayerIP);//your custom banip function
                MyAddNameToBans(GlobalPlayerName);//your custom function to add name to banlist
            }
        }
        return 1;
    }
*/

#endif

/*
    -Makes your Money functions safe, in all script, even in script which don't have this include included.
    -Anti Jetpack
    -Anti Weapon hack

    NOTE:
    1) For fully compatible anti weapon hack make sure you don't have pickups which give weapons automticly, instead script the pickups to give weapons using the sa-mp natives.
    2) All veding machines will be removed if you use this plugin (for anti health hack to work)
    3) This plugin uses some Y_Less's fixes from [url]http://forum.sa-mp.com/showthread.php?t=292813[/url]
*/
Tem varias funções que estão desativadas, exemplo Anti Jetpack -Anti Weapon hack entre outras, caso queria ativar tire os /* */

Fiz um pack, baixa aqui . BAIXA AQUI BY CRAZY HELP
__________________
NÃO JULGUE ANTES DE SABER
CrazyHelp is offline   Reply With Quote
Old 21/06/2014, 07:33 PM   #5
PabLoHenriique
Big Clucker
 
PabLoHenriique's Avatar
 
Join Date: Jan 2014
Location: Brazil
Posts: 129
Reputation: 1
Default Re: include Anti Cheat - poste sua include!

Valeu a todos por postar, vou tentar...
PabLoHenriique is offline   Reply With Quote
Old 21/06/2014, 07:41 PM   #6
CrazyHelp
Big Clucker
 
CrazyHelp's Avatar
 
Join Date: Apr 2014
Location: Nenhum
Posts: 140
Reputation: 8
Default Re: include Anti Cheat - poste sua include!

Quote:
Originally Posted by PabLoHenriique View Post
Valeu a todos por postar, vou tentar...
Pablo tinha esquecido das plugins, editei o poste olha lá, fiz um pack dos arquivos.
__________________
NÃO JULGUE ANTES DE SABER
CrazyHelp is offline   Reply With Quote
Old 21/06/2014, 07:51 PM   #7
PabLoHenriique
Big Clucker
 
PabLoHenriique's Avatar
 
Join Date: Jan 2014
Location: Brazil
Posts: 129
Reputation: 1
Default Re: include Anti Cheat - poste sua include!

Valeu, +rep
PabLoHenriique is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] Include anti hack do Ips Bruno avisando falso :/ SonicPaintballer Português/Portuguese 3 04/03/2013 05:12 AM
[Pedido] Uma boa include anti hack? SonicPaintballer Português/Portuguese 3 03/03/2013 07:59 PM
[Include] Anti-Camp Include BlackBank Includes 2 15/01/2013 08:33 PM
Anti Steal System Include richardcor91 Scripting Help 2 12/05/2012 06:03 PM
Making an OnFilterScriptInit in an include without adding anything in the .pwn exepct the #include r3k1lLz_ Help Archive 6 06/01/2011 07:49 AM


All times are GMT. The time now is 04:28 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.